In the rsync Faq-O-Matic, [EMAIL PROTECTED] wrote:
> Does rsync offer a switch comparable to mirror.pl's local_ignore
> option? I've got a _large_ rsync mirror, with one sizeable directory
> that needs to reside in the same local directory but is mirrored from
> a different outside source. It seems kind of convoluted to move all
> these gigs of content and then make them look normal again by
> symlinking back into the "advertised" directory. I can't find
> anything about this on rsync's web site or the greater web... am I
> overlooking something? Thanks! 2001-May-18 8:08pm
> [EMAIL PROTECTED]
Presumably you've already looked at the --exclude option, but from a
brief glance at the mirror.pl manual I can't see why it's not
sufficient.
We use shell patterns rather than regexps, by the way.
You can give this on the command line of the client:
rsync -avz --exclude "binaries" --exclude README.local \
samba.org::rsyncftp /srv/ftp/pub/rsync
or in the server's configuration file:
[sambawww]
path = /home/www/samba/
exclude = .htaccess "*,v" "*~"
read only = yes
So, basically, if when you mirror using rsync you just give the name
of the locally-mirrored directory to --exclude, then rsync will just
leave it alone. It doesn't delete it unless you specify
--delete-excluded.
--
Martin
PGP signature