Brian K. White wrote:

> Is there any way to specify a file to be deleted on the remote side 
> explicitly by name?

yes :-)

user@host1:~/deltest> ls -a1
.
..
a
b
c
file
user@host1:~/deltest> ssh host2 ls -a1 deltest
.
..
a
b
c
file
user@host1:~/deltest> rm file
user@host1:~/deltest> rsync -avx --delete --include=/file --exclude='*' . 
host2:deltest/.
building file list ... done
deleting file
./

sent 96 bytes  received 26 bytes  244.00 bytes/sec
total size is 0  speedup is 0.00
user@host1:~/deltest> ssh host2 ls -a1 deltest
.
..
a
b
c
user@host1:~/deltest>


Have fun,
Berny
-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Reply via email to