On 11/14/2011 2:29 AM, Voelker, Bernhard wrote:
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
Ahhh much better than what I did thank you!
And I even already use dynamically generated temp include/exclude files
all the time too, not even like it's something I'm unfamiliar with.
Thanks again.
--
bkw
--
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