rsync 3.0.4 under cygwin: problems with --exclude
Paul Slootman
paul+rsync at wurtel.net
Tue Aug 18 09:26:04 MDT 2009
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
More information about the rsync
mailing list