Question on "base directory"
bhards at bigpond.net.au
Sat Oct 5 23:17:00 EST 2002
-----BEGIN PGP SIGNED MESSAGE-----
On Sun, 6 Oct 2002 08:41, Gregor Waluga wrote:
> 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
> The manpage's explanation is following: --exclude "/foo" would exclude a
> file in the base directory called foo
So this will exclude
> 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
> 2) "/home/gregor" itself, 'cause it is the _base_ of my synchronisation,
> for I used /home/gregor as my starting-point (starting-directory).
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
-----END PGP SIGNATURE-----
More information about the rsync