[Linux-disciples] Rsync includes and excludes

Stephen R Laniel steve at laniels.org
Tue Sep 27 12:11:46 EDT 2005


The answer is here:
http://lists.samba.org/archive/rsync/2004-May/009440.html

	Always include ALL the parent dirs when excluding '*'.  Also, consider
	using a less powerful trailing exclusion.  In the following example,
	I've put the include and exclude rules into a single file named "excl":
	
	% cat excl
	+ /usr/
	- /*
	+ /usr/etc/
	- /usr/*

In my case, I'd do

	+ /home
	- /*
	+ /home/slaniel
	- /home/*
	+ /home/slaniel/private
	- /home/slaniel/*
	+ /home/slaniel/private/consulting_gigs
	- /home/slaniel/private/*

which is annoying, but straightforward. I thought I could
just do

	+ /home/slaniel/private/consulting_gigs
	- **

but that's not the case.

-- 
Stephen R. Laniel
steve at laniels.org
+(617) 308-5571
http://laniels.org/
PGP key: http://laniels.org/slaniel.key
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.bostoncoop.net/pipermail/linux-disciples/attachments/20050927/5186ba6e/attachment.pgp


More information about the Linux-disciples mailing list