DirSync Pro saves its settings (dirsyncpro.properties) in the program folder by default. If the program folder is not writable, DirSync Pro uses either the value of the dirsyncpro.home system property, it defined, or XXX/.DirSyncPro in which XXX stands for the user.home system property. You may define the dirsyncpro.home system property when running DirSync Pro. To do so you should use something like:
java -Xmx512M -Ddirsyncpro.home=”D:\\Sync\\” -jar dirsyncpro.jar. Characters like '\' must be escaped.
DirSync Pro saves the logs (if enabled) by default in the folder where the program settings are saved (see 5.1). You can change this default directory by defining a new default directory through the options window in the GUI.
When you want to open a configuration or when you are about to save one, the file choosing dialog starts in the directory where the program settings are saved (see 5.1). You can change this default directory by defining a new default directory through the options window in the GUI.
DirSync Pro lets you create a log file for the synchronization (configuration) and for each individual Directory Profile. The log file for the synchronization is by default enabled. You may disable this log file in the Default Settings tab, if you wish. The log file name is initially set to the Synchronization name (this is the file name of your configuration). You may change the log file name or path in the same tab.
If a Directory Profile is set to default settings, it'll log into the Synchronization log, if the log is enabled. If it is not set to default, it's log file is disabled initially. You may enable the log in the Directory Settings tab. The log file name is initially set to the Directory Profile name. You may change the log file name or path in the same tab.
DirSync Pro is a
synchronization utility. It's power is synchronizing directories.
There are many other tools which synchronize tasks, like cron
in Linux and Windows
Task Scheduler in Microsoft Windows)
which could be used to setup scheduled tasks. You can use the system
task scheduler (e.g. cron
in Linux and Windows
Task Scheduler in Microsoft Windows) to
run a setup synchronization with DirSync Pro. This is how you can do
it:
Use DirSync Pro Gui to setup your synchronization.
Save your configuration file, e.g. named ConfigFile.dsc.
Use the command line mode to start DirSync Pro:
java -jar dirsyncpro.jar /sync /quit ConfigFile.dsc
Use the system task scheduler (Windows Task Scheduler or cron) to run the command above.
Please note that you may need to mention the full path to the java command, the dirsyncpro.jar or the ConfigFile.dsc file according to your system setup.
You may want DirSync Pro to
start automatically when you plug a USB drive under MS Windows. To do
so, create a file called autorun.inf
with the following content:
[AutoRun]
ACTION=Backup
Open=java
-jar dirsyncpro\dirsyncpro.jar ConfigFile.dsc /sync /quit
In
which the ConfigFile.dsc
is your corresponding preconfigured and saved sync
config file. Please note that you may need to mention the full path
to the java command, the dirsyncpro.jar
or the ConfigFile.dsc
file according to your system setup.
If you run DirSync Pro through the command line, you may need to allocate more memory for example when synchronizing massive number of files. If you want to allocate more memory to DirSyncPro, use the following command to run DirSync Pro with 512MB (adjust to own will):
java -Xmx512M -jar dirsyncpro.jar
If you start DirSync Pro through the wrapper DirSyncPro.exe under MS Windows, the wrapper DirSyncPro.exe itself already uses 512MB memory.