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'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"><<a href="mailto:matt@mattmccutchen.net">matt@mattmccutchen.net</a>></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>
> I'm trying to backup a disk using rsync but I need to exclude some folder. I'm using rsync 3.0.4 under cygwin on a winxp machine.<br>
> The script that I use is:<br>
><br>
> # ---------------------------------------------------------------- #<br>
> SRCDIR=/cygdrive/d<br>
> LOGDIR=/cygdrive/f<br>
> BCKDIR=/cygdrive/f/Backup<br>
><br>
> rsync -auv --progress --delete --delete-excluded --log-file=$LOGDIR/`date +%Y%m%d`.log --exclude from='/cygdrive/f/.bak_exclude' $SRCDIR/ $BCKDIR<br>
> # ---------------------------------------------------------------- #<br>
><br>
> and my file where there is the list of excluded folders looks like:<br>
><br>
> # ---------------------------------------------------------------- #<br>
> - /cygdrive/d/Software/<br>
> - /cygdrive/d/Intel/<br>
> - /cygdrive/d/Sysprep2003/<br>
> - /cygdrive/d/RECYCLER/<br>
> # ---------------------------------------------------------------- #<br>
><br>
> 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 "ANCHORING INCLUDE/EXCLUDE PATTERNS"<br>
in the rsync man page for more details.<br>
<br>
--<br>
<font color="#888888">Matt<br>
<br>
</font></blockquote></div><br></div>