rsync walks through excluded directories...
jc.guillain at gmail.com
Tue Mar 15 08:41:18 MDT 2011
In the INCLUDE/EXCLUDE PATTERN RULES section of the rsync man page I read
that "the exclude patterns actually short-circuit the directory traversal
stage when rsync finds the files to send" wich is actually the behaviour I
But it seems that rsync actually descend through all section of the
hierarchy of some folders I excluded.
The command I used :
$ rsync -aH --del --ignore-errors --filter="- /lost+found/*" --filter="-
/.snapshot/*" /data/orig_disks/vol-opt/ /data/bckp_disks/vol-opt/
The problem :
$ lsof | grep rsync | grep snapshot
rsync 1599 root 3r DIR 0,25 12288
rsync does not transfer files from this directory as expected, but it take
hours to visit it...
OS : Debian GNU/Linux Squeeze 6.0 amd64
rsync version : rsync version 3.0.7 protocol version 30
I don't know if it's a bug, an error in the man page, or just me :-)
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rsync