Questions about rsync
Walter Dnes
waltdnes-SLHPyeZ9y/tg9hUCZPvPmw at public.gmane.org
Wed Apr 26 03:22:21 UTC 2006
On Mon, Apr 24, 2006 at 09:40:29AM -0400, Daniel Armstrong wrote
> I use rsync to mirror my home directory to an external USB drive. To
> ensure that deleted files are also removed on your backup drive
> requires the "--delete" option. For example, to mirror my home
> directory to my backup drive mounted at "/media/backup" I execute:
>
> rsync -av --delete /home/daniel/ /media/backup/daniel/
>
> Be careful using the delete option. Before running this command, its
> good to do a test run using the "-n" option:
>
> rsync -avn --delete /home/daniel/ /media/backup/daniel/ | less
>
> ...and just page through the output to ensure that rsync is doing what
> you want it to do. Some things like the cache directory in Firefox you
> might want to exclude to save time:
After much banging of head against brick wall, accompanied by a
certain amount of squishy sounds, I finally got it to do what I want it
to do. It seems that while you can specify full pathnames for source
and destination directories, exclude patterns are chrooted. E.g.
"/home/waltdnes/spoolastra/slrnpull/news/" does *NOT* work as an exclude
pattern, but "spoolastra/slrnpull/news/" does work. Is this related to
"use chroot = yes" in rsyncd.conf? I don't intend to change that line,
but I did waste quite a bit of time figuring this one out.
--
Walter Dnes <waltdnes-SLHPyeZ9y/tg9hUCZPvPmw at public.gmane.org> In linux /sbin/init is Job #1
My musings on technology and security at http://tech_sec.blog.ca
--
The Toronto Linux Users Group. Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml
More information about the Legacy
mailing list