[Linux-disciples] Rsync includes and excludes

Stephen R Laniel steve at laniels.org
Tue Sep 27 11:04:43 EDT 2005


Rsync includes and excludes have always confused me, for
some reason; maybe it's because I don't write rsync command
lines very often. In any case, here's what I want to do:
include only the directory ~/private/consulting gigs, and
exclude everything else. I thought that

rsync -r --exclude '**' --include ~/private/consulting_gigs / remoteUser at domain.com

would do the trick, but it doesn't: no files get backed up.
I'm sure that it's because of the "--exclude '**'",
obviously, but how do I get what I want? I'm sure it's
simple.

-- 
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/30e5e11c/attachment.pgp


More information about the Linux-disciples mailing list