include/exclude patterns to copy just certain files?
jbglaw at lug-owl.de
Thu Jul 8 07:25:41 GMT 2004
On Wed, 2004-07-07 23:31:05 -0600, Bob Proulx <bob at proulx.com>
wrote in message <20040708053105.GA7868 at misery.proulx.com>:
> > The easiest way around this is to switch from include/exclude to using
> > the --files-from option, like this:
> > find . -name foo | rsync -a --files-from=- . example.com:/tmp/
> As an enhancement I would really like it even more if the --from0
> option could be combined with --files-from to be --files-from0. It is
> more compact and has a similar style to find's --print0 option.
> Although I will probably use -av0 with this more often than anything
> else so this is not a big deal.
ACK:) That's just the same I thought about it when I saw it first. There
*are* b0rk3d filenames out there (starts off with \n in the name and
finishes with unicode-capable filesystems).
Jan-Benedict Glaw jbglaw at lug-owl.de . +49-172-7608481
"Eine Freie Meinung in einem Freien Kopf | Gegen Zensur | Gegen Krieg
fuer einen Freien Staat voll Freier Bürger" | im Internet! | im Irak!
ret = do_actions((curr | FREE_SPEECH) & ~(NEW_COPYRIGHT_LAW | DRM | TCPA));
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: Digital signature
Url : http://lists.samba.org/archive/rsync/attachments/20040708/99e1ef7f/attachment.bin
More information about the rsync