cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Learn to manage BIM workflows and create professional Archicad templates with the BIM Manager Program.

Collaboration with other software
About model and data exchange with 3rd party solutions: Revit, Solibri, dRofus, Bluebeam, structural analysis solutions, and IFC, BCF and DXF/DWG-based exchange, etc.

Automating the backup schedule

Anonymous
Not applicable
Having read and re-read the Archicadwiki on Teamwork backup I still need a bit of help.

Here's our setup:

We are 100% Mac
We have a RAID protected NAS file server where we traditionally store all project files.
I have BIM Server running on my Mac Pro which is Time Machine protected.

I would like to be able to automate a cold database backup (i.e. the only guaranteed backup) to the NAS. We have Retrospect which I could automate to run the backup daily to the NAS, only replacing amended files.
However, I know almost nothing about automating scripts and I'm not sure how to get the recommended scripts to run at a scheduled time, i.e. stop the BIM server, retrospect does its thing, restart the BIM server.

Any thoughts appreciated.
6 REPLIES 6
Eduardo Rolon
Moderator
Check SuperDuper!

http://www.shirt-pocket.com/SuperDuper/SuperDuperDescription.html

Easy to setup and schedule.
Eduardo Rolón AIA NCARB
AC28 US/INT -> AC08

Macbook Pro M1 Max 64GB ram, OS X 10.XX latest
another Moderator

Anonymous
Not applicable
We already have a backup software, Retrospect.
It is the script automation that I need.
Eduardo Rolon
Moderator
Sorry, then I cannot help you since I use Superduper not Retrospect for my backups since I never could trust it.
Eduardo Rolón AIA NCARB
AC28 US/INT -> AC08

Macbook Pro M1 Max 64GB ram, OS X 10.XX latest
another Moderator

Anonymous
Not applicable
Hello,

I recommend Cronnix, I use it for sending scheduled MySQL backup emails. Should work for BIM Server purposes too.

CronniX is a Aqua frontend to the powerful Unix tool "cron".

Cron is a Unix system service that allows scheduled execution of scripts, programs, applications - in short anything that can be started from the command line. This includes OSX applications and AppleScripts.

Shell scripts for stopping and starting the BIM Server can be found here;
http://www.archicadwiki.com/Teamwork/Backup#A_cold_database_backup



Hope this helps.
Anonymous
Not applicable
Many thanks.
Do I just copy and paste the script shown on the wiki into the command section of Cronnix or do I need to make a text file with the file name shown in the wiki and then load that into Cronnix?
Anonymous
Not applicable
As an update I have now managed to solve the problem

The script needs to be run as the root user.
Using Cronnix I changed the current user to 'root' by typing it in. Do NOT use the system crontab.
I pasted the script text into a text file and saved as BIMStop.sh and BIMStart.sh

In finder I made the files executable in Terminal
I then enetred in the script box of Cronnix the following:

sudo sh /route/to/BIMStop.sh

This works a treat and stops the BIM Server. 15 minutes later, after a scheduled backup has run,

sudo sh /route/to/BIMstart.sh

restarts the server.

It should be noted that I could not get the script to properly shutdown the BIM server without the root/sudo element.