On 31-10-2010 18:07, edac...@gmail.com wrote:
On 10/31/2010 06:52 PM, Vahsen Beheer wrote:
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?

"-n" means "dry-run", no real action will be performed :).

Hope found one-line solution:
rsync -ndivv -f 'R /daily.20101030-0155/**' -f '-!r
/daily.20101030-0155' --del  /tmp/empty_dir/ remote-host::Backups/


:-) I know that it is a dry run...  The thing is however that all your latter solutions work perfectly on the root of the module.
However i need to delete directories which are in subdirectories of this module...
I guess the problem is the anchoring of the module in combination with the filter-rules.
Reading the manual about 'anchoring include/exclude patterns' and checking out the filter-rules did not help me.

Can you get your last example to work with a subdirectory of a directory in the module its-self ?

The thing i tried below (with the added "SUBDIR/") does not work:
( i try to remove the tree: "remote-host::Backups/SUBDIR/daily.20101030-0155")
rsync -divvv -f 'R /SUBDIR/daily.20101030-0155/**' -f '-!r
/daily.20101030-0155' --del  /tmp/empty_dir/ remote-host::Backups/SUBDIR/
A final hint? ;)

-- 
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