2
0
mirror of https://github.com/deajan/osync synced 2024-11-11 07:10:40 +00:00

Updated Readme

This commit is contained in:
deajan 2014-11-26 11:28:35 +01:00
parent 3bf66be267
commit abb74412a1

View File

@ -80,6 +80,19 @@ Once you're confident about your fist runs, you may add osync as cron task like
*/5 * * * * root /usr/local/bin/osync.sh /path/to/your.conf --silent */5 * * * * root /usr/local/bin/osync.sh /path/to/your.conf --silent
Batch mode
----------
You may want to sequentially run multiple sync sets between the same servers. In that case, osync-batch.sh is a nice tool that will run every osync conf file, and, if a task fails,
run it again if there's still some time left.
The following example will run all .conf files found in /etc/osync, and retry 3 times every configuration that fails, if the whole sequential run took less than 2 hours.
$ ./osync-batch.sh --path=/etc/osync --max-retries=3 --max-exec-time=7200
Having multiple conf files can then be run in a single cron command like
00 00 * * * root /usr/local/bin/osync-batch.sh --path=/etc/osync --silent
Daemon mode Daemon mode
----------- -----------
Additionnaly, you may run osync in monitor mode, which means it will perform a sync upon file operations on master replica. Additionnaly, you may run osync in monitor mode, which means it will perform a sync upon file operations on master replica.