rsync 3.0.4 under cygwin: problems with --exclude
Alessandro Toso
alessandro.toso at gmail.com
Wed Aug 19 01:02:56 MDT 2009
Paul,
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't copied in the mail. That is
also confirmed from the output of rsync that I've attached.
# ---------------------------------------------------------------- #
[client] parse_filter_file(/cygdrive/f/.bak_exclude,0,3)
<------------------ here it's reading the file with the folder that I want
to exclude
[client] add_rule(-s /cygdrive/d/Software/)
<------------------ here I don't know exactly the meaning of -s (is the
rsync option --protect-args????)
[client] add_rule(-s /cygdrive/d/Intel/)
[client] add_rule(-s /cygdrive/d/Sysprep2003/)
[client] add_rule(-s /cygdrive/d/RECYCLER/)
sending incremental file list
[sender] make_file(.,*,0)
[sender] make_file(Documents,*,2)
[sender] make_file(Downloads,*,2)
[sender] make_file(Intel,*,2)
[sender] make_file(Matlab_Fuctions,*,2)
[sender] make_file(Personal,*,2)
[sender] make_file(RECYCLER,*,2)
[sender] make_file(Scripts,*,2)
[sender] make_file(Software,*,2)
[sender] make_file(Sysprep2003,*,2)
[sender] make_file(System Volume Information,*,2)
# ---------------------------------------------------------------- #
Cheers,
Alessandro
On Tue, Aug 18, 2009 at 5:26 PM, Paul Slootman
<paul+rsync at wurtel.net<paul%2Brsync at wurtel.net>
> wrote:
> On Tue 18 Aug 2009, Alessandro Toso wrote:
> >
> > rsync -auv --progress --delete --delete-excluded --log-file=$LOGDIR/`date
> > +%Y%m%d`.log --exclude from='/cygdrive/f/.bak_exclude' $SRCDIR/ $BCKDIR
>
> If this is your exact command, then you're excluding the file
> "from='/cygdrive/f/.bak_exclude'"
>
> You probably meant --exclude-from='/cygdrive/f/.bak_exclude'
> (note the dash between --exclude and from).
>
> > # ---------------------------------------------------------------- #
> >
> > and my file where there is the list of excluded folders looks like:
> >
> > # ---------------------------------------------------------------- #
> > - /cygdrive/d/Software/
> > - /cygdrive/d/Intel/
>
> As you're specifying this file for --exclude-from, the '-' at the
> beginning is not needed.
>
>
> Paul
> --
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.samba.org/pipermail/rsync/attachments/20090819/c8286c0f/attachment.html>
More information about the rsync
mailing list