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? The manpage's explanation is following: --exclude "/foo" would exclude a file in the base directory called 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) 2) "/home/gregor" itself, 'cause it is the _base_ of my synchronisation, for I used /home/gregor as my starting-point (starting-directory). Sorry for that question, but it is a little bit mistakeable (or I am so stupid). :-) -- Greetings, Gregor
-----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 fooSo 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-----
On Sun, Oct 06, 2002 at 12:41:55AM +0200, 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? > The manpage's explanation is following: --exclude "/foo" would exclude a file > in the base directory called 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) > 2) "/home/gregor" itself, 'cause it is the _base_ of my synchronisation, for I > used /home/gregor as my starting-point (starting-directory). > > Sorry for that question, but it is a little bit mistakeable (or I am so > stupid). :-)No. 2. Using your example the source base directory is /home/gregor and the destination base directory is notebook:/home/gregor No. 1 wouldn't make much sense because then /foo could never match anything in /home/gregor and we would have difficulty handling --delete-excludeed where the base directories differed. -- ________________________________________________________________ J.W. Schultz Pegasystems Technologies email address: jw@pegasys.ws Remember Cernan and Schmitt