|Using Syncrify client from console without GUI
|1/5/12 8:50 AM
|Last modified on:
|1/5/12 8:51 AM
$INTSTALL_DIR/jre/bin/java to ensure a file exists. Otherwise, download java from http://java.com
java -jar SyncrifyClient.jar ...TO
java -jar Loader.jar ...
java -jar SyncrifyClient.jar -console ProfileName.syncrify Preferred method
The above command will run a backup.
java -jar SyncrifyClient.jar -console -createProfile
|Name of the profile. We recommend you use a one word name without spaces. Assume you use MyBackup for this value, you can issue the following command to run a backup
java -jar SyncrifyClient.jar MyBackup.syncrify
|Refers to the URL where your server is running. For example:
|Email address used for user's login
|Refers to the path that you want to backup. For example:
|Specify a filter string. Refer to this document for more information
|Specify additional folders/files to backup. You can specify as many paths as you like. Hit ENTER without typing any path when done.
|Enter the path that you want to exclude from the list
|Type Y for yes and N for no. When set to Y, client will compress data before sending it to the server
|Type Y for yes and N for no. When set to Y, server will delete files if they are deleted from the client.
|Backup locked files
|Type Y for yes and N for no. When set to Y, VSS services are used on Windows. This parameter is only meaningful on Windows. It has no effect on other operating systems.
|Versioning is enabled if set to Y
|An email is sent with a backup log
|Address that gets the email. If blank, login email is used for the recipient's address
|Password used for encryption
|This option makes Syncrify client run in console mode. If this is missing every other option will be ignore and Syncrify client will run in its default GUI or web mode
|Selected Folder. Specifies one folder location that you want to backup or restore. This parameter must be accompanied by -tF
|Top Level Folder. Specifies the top-level folder where the selected folder is located. This parameter must be accompanied by -sF.
The -sF and -tF parameters are only valid if you are running backup/restore on an existing profile and just want to run a backup on a specific folder. This is
equivalent of backing up a selected folder specified here using console.
Refer to example 2 below.
|Backup Direction. This specifies the direction for backup and will overwrite the values specified in the profile. Possible values are:
|Runs in interactive mode, allowing users to:
|By default, messages sent to STDOUT and STDERR are sent to files in the $DATA_FOLDER\logs directory. Use -skipRedir to send console messages to screen instead of redirecting them to files.
java -jar SyncrifyClient.jar -console myProfile.syncrifyThe above example assume you have a pre-created profile called myProfile and want to run it through command line.
java -jar SyncrifyClient.jar -console myProfile.syncrify -tF /user/home/jack/Desktop -sF /user/home/jack/Desktop/Pictures/NewYorkThis example runs a profile called myProfile and will only backup files in /user/home/jack/Desktop/Pictures/NewYork folder.
java -Djava.io.tmpdir=/opt/ATempFolder -jar SyncrifyClient.jar -console myProfile.syncrifyThe above example a backup is run against myProfile and the client will use /opt/ATempFolder to store temporary files.
java -jar SyncrifyClient.jar -console -itools
java -jar SyncrifyClient.jar -console myProfile.syncrify -oD s2c -tF /user/home/jack/Desktop -sF /user/home/jack/Desktop/Pictures/NewYorkThis example runs a profile called myProfile and will only restore files in /user/home/jack/Desktop/Pictures/NewYork folder.
A service constantly runs in the background on machines where Syncrify Client is installed. Staring v5.2 of Syncrify, you can communicate with that service using command line.
Following table lists the commands available to communicate with the server
java -jar SyncrifyClient.jar -talkToService
Connects to the service interactively as if you're connecting from a
telnet client. Once connected, type
Using this method you could also communicate with a running instance of
Syncrify Client. This is done by specifying a different TCP/IP port using the
java -jar SyncrifyClient -findPermissionIssues ProfileName.syncrify
|Connects to the service, which traverses every top-level folder for the given profile to see if
there are any permission problems in the profile. By default, this method only checks folder access.
-includeFiles as an argument to check file-level permissions.
On Windows use
Do you have a helpful tip related to this document that you'd like to share with other users?