-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sun, 6 Oct 2002 08:41, Gregor Waluga wrote: > Hi, > > I've read the manpage, but I got a simple question on the expression "base > directory" used in the "exclude patterns"-section. > When I synchronize ie: > > rsync -avzu /home/gregor/ notebook:/home/gregor/ > > and want to use an exclude-pattern: --exclude "/foo", what is the base > directory? /home/gregor/ > The manpage's explanation is following: --exclude "/foo" would exclude a > file in the base directory called foo So this will exclude /home/gregor/foo
> Is the so called "base directory": > 1) "/" the Root-directory, so that I have to use "/home/gregor/foo/" as the > correct exclude-pattern (if I do not want to synchronise /home/gregor/foo > on both machines) No, he way rysnc works is to chroot() to the specified directory, and then to start work. > 2) "/home/gregor" itself, 'cause it is the _base_ of my synchronisation, > for I used /home/gregor as my starting-point (starting-directory). Yes. Brad - -- http://conf.linux.org.au. 22-25Jan2003. Perth, Aust. Tickets booked. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE9n3D9W6pHgIdAuOMRAmbEAKCPK5QhbYqx95/L2gVPC3v0gHcXrQCdHbv7 pWWDWkk9glxmixHN53AU0nQ= =Ullp -----END PGP SIGNATURE----- -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html