rsync specified directory(ies)

Wayne Davison wayned at samba.org
Sun Jun 22 10:30:06 MDT 2014


On Wed, Jun 18, 2014 at 12:52 AM, Pletter Thomas <T.Pletter at rewe-group.at>
wrote:

> this command doesn't  do nothing:
> rsync  -aviz --include='*/' --include='*/00' --include='*/00/**'
> --exclude='*' --prune-empty-dirs . remote_host:/tmp
>

I'd imagine that you tried that after the -R command and there were no new
files to transfer, so it output nothing (since the command is fine).  You
can use an extra -i option to see all the files it matched but didn't
transfer.  Also, your includes should really all be anchored to the top of
the transfer (i.e. --include='/*/' --include='/*/00' --include='/*/00/**')
but that doesn't affect them working with your desired directories, it just
makes sure that they don't match other things that you don't want.  Also
note that the latter 2 includes can be specified as 1:
--include='/*/00/***' (the triple star matches both the dir and all its
contents).

..wayne..
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.samba.org/pipermail/rsync/attachments/20140622/a3853272/attachment.html>


More information about the rsync mailing list