<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
On 31-10-2010 18:07, <a class="moz-txt-link-abbreviated" href="mailto:edacval@gmail.com">edacval@gmail.com</a> wrote:
<blockquote cite="mid:4CCDA244.1050404@gmail.com" type="cite">
<pre wrap="">On 10/31/2010 06:52 PM, Vahsen Beheer wrote:
</pre>
<blockquote type="cite">
<pre wrap="">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?
</pre>
</blockquote>
<pre wrap="">
"-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/
</pre>
</blockquote>
<br>
:-) 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.<br>
However i need to delete directories which are in subdirectories of
this module...<br>
I guess the problem is the anchoring of the module in combination
with the filter-rules.<br>
Reading the manual about 'anchoring include/exclude patterns' and
checking out the filter-rules did not help me.<br>
<br>
Can you get your last example to work with a subdirectory of a
directory in the module its-self ?<br>
<br>
The thing i tried below (with the added "SUBDIR/") does not work:<br>
( i try to remove the tree:
"remote-host::Backups/SUBDIR/daily.20101030-0155")
<pre wrap="">rsync -divvv -f 'R /<b>SUBDIR/</b>daily.20101030-0155/**' -f '-!r
/daily.20101030-0155' --del /tmp/empty_dir/ remote-host::Backups/<b>SUBDIR/</b></pre>
A final hint? ;)<br>
<br>
</body>
</html>