On Mon, Jun 01, 2009 at 10:17:07PM -0700, Bruce KIlpatrick wrote:
> #!bin/bash
>   sudo rsync -av --progress --delete 
> --log-file=/home/bruce/Desktop/$(date +%Y%m%d)_moose_rsync.log 
> [email protected]:/home/robin /media/disk/MooseBackup

I usually include "-x", which instructs rsync to not cross file system
boundarys when reading from the source. This likely won't be an issue
for you if you're sticking to your homedir, but it's handy if you're
backing up your root partition and have other filesystems mounted
(/home, etc.). Also, if it's your homedir, you probably don't need to
use sudo. The fewer privileges, the better.

It's usually a good idea to make a dry run prior to the real copy, via
the "-n" flag. If you're creating a fresh copy of your source file
system, then you likely don't have to worry about trashing anything on
the destination, but you never know. A dry run also often leads me to
include a few "--exclude" arguments.

-- 
Paul
_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug

Reply via email to