tony at servasoftware.com
Wed Dec 16 09:41:56 MST 2009
Gary Montalbine wrote:
> I am trying to backup my /home directory. A friend helped me with this
> #backup friday
> #"Spinning up backup drive and mounting it .."
> cd /
> mount /mnt/hd2
> #"Starting backup procedures"
> rsync -avx --exclude="/home/gary/.thumbnails/"
> --exclude="/home/gary/tmp/" --delete --ignore-errors /home/gary
> umount /mnt/hd2
> It backs up /home OK. However it does not exclude .thumbnails or tmp. I
> have read the manual and am confused on the use of --exclude. I am
> strictly a user. I am using rsync supplied by ML2010.
> Help would be greatly appreciated.
from man page
--exclude=PATTERN exclude files matching PATTERN
Seems like you are excluding
you probably want something like
to match where /home/gary/ leaves off.
More information about the rsync