Scheduling backup on Linux using cron
Unfortunately, Scheduling backups on Linux as not as simple as Windows or Mac (at least in the current version of Syncrify). In order to schedule a backup you must:
- Create a shell script to execute Syncrify client
- Schedule that script using cron
Below is an example of a sample script.
/opt/jdk1.6.0/bin/java -Dsyncrify.custom.home=/home/eric/.syncrify -jar /home/eric/SyncrifyClient/SyncrifyClient.jar -console backupProfile.syncrify
The following table explains the elements in this command:
||Location of Java JRE
||Specify the location of the Data Folder. Since cron jobs are run as root, you must specify this parameter so that the profile file is located at runtime. This value typically refers to the the home directory of the user.
||Location of SyncrifyClient.jar file
||Parameter to make Syncrify run in console mode
||Name of the profile that gets executed
Once the script file is created, use cron
to schedule it.