Rsync sequence
Paul Slootman
paul+rsync at wurtel.net
Tue Jul 20 03:18:42 MDT 2010
On Mon 19 Jul 2010, dschuett wrote:
> allow for a more efficient backup. I know I could just run them at different
> times in the same night, but I don't want to chance one not completing
> before the other starts. Can I just list them one after the other like so in
> crontab -e:
>
> # m h dom mon dow command
> 00 4 * * 7 rsync -auv --delete /Godfather/Music /Backup
> rsync -auv --delete /Godfather/Documents /Backup
> rsync -auv --delete /Godfather/Setups /Backup
> rsync -auv --delete /Godfather/Pictures /Backup
> rsync -auv --delete /Godfather/Backups /Backup
> rsync -auv --delete /Godfather/Videos /Backup
This is hardly an rsync question...
I would put the commands in a separate shell script file:
#!/bin/sh
rsync -auv --delete /Godfather/Music /Backup
rsync -auv --delete /Godfather/Documents /Backup
rsync -auv --delete /Godfather/Setups /Backup
rsync -auv --delete /Godfather/Pictures /Backup
rsync -auv --delete /Godfather/Backups /Backup
rsync -auv --delete /Godfather/Videos /Backup
Then make the file executable (chmod +x) and then put the name of the
script in the crontab.
Paul
More information about the rsync
mailing list