Matt,<div><br></div><div>thanks a lot for your comment. As a matter of fact that was the problem. My fault that I haven&#39;t read through the whole man page!</div><div>Cheers</div><div>Alessandro</div><div><br><br><div class="gmail_quote">
On Fri, Aug 21, 2009 at 8:06 AM, Matt McCutchen <span dir="ltr">&lt;<a href="mailto:matt@mattmccutchen.net">matt@mattmccutchen.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Tue, 2009-08-18 at 16:58 +0200, Alessandro Toso wrote:<br>
&gt; I&#39;m trying to backup a disk using rsync but I need to exclude some folder. I&#39;m using rsync 3.0.4 under cygwin on a winxp machine.<br>
&gt; The script that I use is:<br>
&gt;<br>
&gt; # ---------------------------------------------------------------- #<br>
&gt; SRCDIR=/cygdrive/d<br>
&gt; LOGDIR=/cygdrive/f<br>
&gt; BCKDIR=/cygdrive/f/Backup<br>
&gt;<br>
&gt; rsync -auv --progress --delete --delete-excluded --log-file=$LOGDIR/`date +%Y%m%d`.log --exclude from=&#39;/cygdrive/f/.bak_exclude&#39; $SRCDIR/ $BCKDIR<br>
&gt; # ---------------------------------------------------------------- #<br>
&gt;<br>
&gt; and my file where there is the list of excluded folders looks like:<br>
&gt;<br>
&gt; # ---------------------------------------------------------------- #<br>
&gt; - /cygdrive/d/Software/<br>
&gt; - /cygdrive/d/Intel/<br>
&gt; - /cygdrive/d/Sysprep2003/<br>
&gt; - /cygdrive/d/RECYCLER/<br>
&gt; # ---------------------------------------------------------------- #<br>
&gt;<br>
&gt; The problem is that rsync is not skipping these folders.<br>
<br>
</div>Exclude patterns with a leading slash are interpreted from the root of<br>
the transfer, in this case /cygdrive/d/ .  So you should not include<br>
that prefix in your patterns.  See &quot;ANCHORING INCLUDE/EXCLUDE PATTERNS&quot;<br>
in the rsync man page for more details.<br>
<br>
--<br>
<font color="#888888">Matt<br>
<br>
</font></blockquote></div><br></div>