[PLUG] rsync in a cron job
Rich Shepard
rshepard at appl-ecosys.com
Thu Nov 15 15:53:07 UTC 2018
I want to update ~/ on the new desktop with changes made in ~/ on the old
desktop using rsync in a daily cron job. The old desktop has a directory
~/data while the newdesktop has a /data partition separate from /home.
There is an --exclude option to rsync and I'm not sure where it should go
in the command line. Is this correct if run from my crontab?
rsync salmo: --exclude=data .
Would a separate rsync command be needed to copy changes from salmo:data/
to baetis:/data or could both be accomplished with the same command?
TIA,
Rich
More information about the PLUG
mailing list