Paul,<div><br></div><div>thanks for the reply. In the real script that I use the dash between exclude and from was there and for some reason I didn&#39;t copied in the mail. That is also confirmed from the output of rsync that I&#39;ve attached.</div>
<div><br></div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "><div># ---------------------------------------------------------------- #</div><div><div>
[client] parse_filter_file(/cygdrive/f/.bak_exclude,0,3)                &lt;------------------ here it&#39;s reading the file with the folder that I want to exclude</div><div>[client] add_rule(-s /cygdrive/d/Software/)                                &lt;------------------ here I don&#39;t know exactly the meaning of -s (is the rsync option --protect-args????)</div>
<div>[client] add_rule(-s /cygdrive/d/Intel/)</div><div>[client] add_rule(-s /cygdrive/d/Sysprep2003/)</div><div>[client] add_rule(-s /cygdrive/d/RECYCLER/)</div><div>sending incremental file list</div><div>[sender] make_file(.,*,0)</div>
<div>[sender] make_file(Documents,*,2)</div><div>[sender] make_file(Downloads,*,2)</div><div>[sender] make_file(Intel,*,2)</div><div>[sender] make_file(Matlab_Fuctions,*,2)</div><div>[sender] make_file(Personal,*,2)</div>
<div>[sender] make_file(RECYCLER,*,2)</div><div>[sender] make_file(Scripts,*,2)</div><div>[sender] make_file(Software,*,2)</div><div>[sender] make_file(Sysprep2003,*,2)</div><div>[sender] make_file(System Volume Information,*,2)</div>
<div># ---------------------------------------------------------------- #</div><div><br></div><div>Cheers,</div><div>Alessandro</div></div></span><br><div class="gmail_quote">On Tue, Aug 18, 2009 at 5:26 PM, Paul Slootman <span dir="ltr">&lt;<a href="mailto:paul%2Brsync@wurtel.net">paul+rsync@wurtel.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 18 Aug 2009, Alessandro Toso wrote:<br>
&gt;<br>
&gt; rsync -auv --progress --delete --delete-excluded --log-file=$LOGDIR/`date<br>
&gt; +%Y%m%d`.log --exclude from=&#39;/cygdrive/f/.bak_exclude&#39; $SRCDIR/ $BCKDIR<br>
<br>
</div>If this is your exact command, then you&#39;re excluding the file<br>
<div class="im">&quot;from=&#39;/cygdrive/f/.bak_exclude&#39;&quot;<br>
<br>
</div>You probably meant --exclude-from=&#39;/cygdrive/f/.bak_exclude&#39;<br>
(note the dash between --exclude and from).<br>
<div class="im"><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>
<br>
</div>As you&#39;re specifying this file for --exclude-from, the &#39;-&#39; at the<br>
beginning is not needed.<br>
<br>
<br>
Paul<br>
<font color="#888888">--<br>
Please use reply-all for most replies to avoid omitting the mailing list.<br>
To unsubscribe or change options: <a href="https://lists.samba.org/mailman/listinfo/rsync" target="_blank">https://lists.samba.org/mailman/listinfo/rsync</a><br>
Before posting, read: <a href="http://www.catb.org/~esr/faqs/smart-questions.html" target="_blank">http://www.catb.org/~esr/faqs/smart-questions.html</a><br>
</font></blockquote></div><br></div>