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
-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Reply via email to