Rsync Minimalist: --include

Wayne Davison wayned at samba.org
Mon Jan 17 07:22:06 GMT 2005


On Sun, Jan 16, 2005 at 08:45:39PM -0800, Mike Todd wrote:
> + /aBackup/
> - /*

You didn't mention what rsync command you're running, but if nothing is
transferring, it is obvious that /aBackup/ isn't matching a directory in
your transfer, possibly because the /aBackup/ dir is above the dirs that
are sent, or more likely because it is one level lower than you think.

The rsync manpage mentions that you can figure out what excludes to use
by just looking at the verbose output for the same command without
excludes (possibly with --dry-run) and adding a '/' in front of the name
that is output.  Alternately, using two -v options on the command _with_
excludes will tell you what names are being excluded by what patterns,
so you can see exactly what rsync is doing.

For full details, go to the rsync man page and search for the phrase
"transfer-root":

    http://rsync.samba.org/ftp/rsync/rsync.html

That section gives you several examples of how excludes are anchored and
how different options (such as --relative) affect this.

..wayne..


More information about the rsync mailing list