On Thu, Apr 01, 2004 at 07:42:29AM -0500, Rafael E. Herrera wrote:
rsync -auvr --delete --delete-after --exclude="proc" \ --exclude="mnt" / /mnt
Though it's not pretty, using the long switches will make your script more self-documenting, which might be especially nice if you're looking at this thing long in the future and have not memorized all the rsync options. So, the above would become: rsync --archive --update --verbose --recursive \ --delete --delete-after \ --exclude="proc" --exclude="mnt" / /mnt And, --archive implies --recursive, so you can eliminate it, leaving just: rsync --archive --update --verbose \ --delete --delete-after \ --exclude="proc" --exclude="mnt" / /mnt Once you get the script working the way you want, you might want to leave out the --verbose, so that rsync will work silently unless it encounters problems, in which case its output can be read by cron and sent to you. Part of the Unix way of doing things is having commands, by default, only report errors, so no news is good news. -- Phil Mocek