include/exclude - how to transfer /etc and /home/users from /?

Wayne Davison wayned at samba.org
Mon Jun 27 16:32:45 GMT 2005


On Mon, Jun 27, 2005 at 04:05:47PM +0200, Tomasz Chmielewski wrote:
> I'm trying to copy recursively only /etc, /home/samba/profiles and 
> /home/samba/shared.

The manpage explains how you need to include all directories on the way
down to the file/dir in the recursive descent.  Or just use --files-from
and it is usually much easier than trying to get the include/exclude
rules right.  Some examples of both the include/exclude syntax and the
--files-from syntax are in this recent email on the subject:

    http://lists.samba.org/archive/rsync/2005-June/012846.html

..wayne..


More information about the rsync mailing list