rsync 3.0.4 under cygwin: problems with --exclude

Alessandro Toso alessandro.toso at gmail.com
Tue Aug 18 08:58:02 MDT 2009


Hi all,
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.
The script that I use is:

# ---------------------------------------------------------------- #
SRCDIR=/cygdrive/d
LOGDIR=/cygdrive/f
BCKDIR=/cygdrive/f/Backup

rsync -auv --progress --delete --delete-excluded --log-file=$LOGDIR/`date
+%Y%m%d`.log --exclude from='/cygdrive/f/.bak_exclude' $SRCDIR/ $BCKDIR
# ---------------------------------------------------------------- #

and my file where there is the list of excluded folders looks like:

# ---------------------------------------------------------------- #
- /cygdrive/d/Software/
- /cygdrive/d/Intel/
- /cygdrive/d/Sysprep2003/
- /cygdrive/d/RECYCLER/
# ---------------------------------------------------------------- #

The problem is that rsync is not skipping these folders. If I increase the
verbosity level this is the output

# ---------------------------------------------------------------- #
[client] parse_filter_file(/cygdrive/f/.bak_exclude,0,3)
[client] add_rule(-s /cygdrive/d/Software/)
[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)
# ---------------------------------------------------------------- #

Am I doing something wrong?

Thanks for any help.
Cheers
Ale
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.samba.org/pipermail/rsync/attachments/20090818/a813f40e/attachment.html>


More information about the rsync mailing list