On 31-10-2010 17:23, Edvinas Valatka wrote:
Hi Vansen :)
The 'p' in '-!pr' only needed, if directory
remote-host::Backups/daily.20101030-0155 is not empty.
Workaround:
rsync -d --del /tmp/empty-dir/ remote-host::Backups/daily.20101030-0155/
rsync -ndv -f '-!r /daily.20101030-0155' --del /tmp/empty_dir/
remote-host::Backups/
Hi again Edvinas, and thanks a lot!!!
I finally managed to delete a remote empty directory now!
I simplified my request a bit though, and need to delete a subdirectory
of the module.
Analogue to the above I tried:
rsync -ndv -f '-!r /subdir/daily.20101030-0155' --del /tmp/empty_dir/
remote-host::Backups/subdir
This however does not delete anything.
What am i missing?
--
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