problem with exclude

Geoffrey Leach geoff at hughes.net
Fri Aug 22 13:37:34 MDT 2014


I've tried all of the permutations of exclude I can think of, so presumably I have some fundamental misunderstanding. The goal here is to exclude the file tv11.html in the ftp directory.


rsync -avvvv -n --verbose --one-file-system -exclude='ftp/tv1.html' /usr/local/src /Media/sata/usr/local > /tmp/rsync
(Server) Protocol versions: remote=30, negotiated=30

cmd=xclude=ftp/tv1.html machine=<NULL> user=<NULL> path=/Media/sata/usr/local
[sender] make_file(src/ftp/tv1.html,*,2)
[sender] i=1046 /usr/local src/ftp/tv1.html mode=0100644 len=130204 uid=1000 gid=1000 flags=0
[generator] i=1046 3 src/ftp/tv1.html mode=0100644 len=130204 uid=1000 gid=1000 flags=0
recv_generator(src/ftp/tv1.html,1046)
send_files(1046, /usr/local/src/ftp/tv1.html)
src/ftp/tv1.html
recv_files(src/ftp/tv1.html)

file /usr/local/src/ftp/tv1.html
/usr/local/src/ftp/tv1.html: HTML document, UTF-8 Unicode text, with very long lines

One additional piece of data. If I attempt to exclude "*swp"after the ftp exclude, that fails as well. Before the exclude of ftp, it works as intended.

BTW, this is the smallest command that reproduces the problem. What I _really_ want to do is to exclude ftp/tv*



More information about the rsync mailing list