I've installed the latest cygwin 1.3.9 in order to use the rsync daemon. I have a setup that works fine under Solaris and basic mirroring works to my cyginw box. However when I use the rsync "-backup" option (which tells rsync to save copies of modified files, necessary for incremental backups) rsync backs up all of the files every time...
When I remove the "-backup" option rsync properly transfers only the updates, but when I use it rsycn makes a full copy of the file tree into the backup dir every time, regardless. So, the effect is that you can't really use rsync for incremental backups with cygwin. I'm using Win98se and the client is a solaris box. I'll attach the client rsync command I use... I believe it's just like the example at the rsync site. Thanks, Pat
#!/bin/sh # Dirs to back up # These dirs will appear in the module root dir on the backup host. BDIRS="/home/pat/Mail /home/pat/lib" # excludes file - this contains a wildcard pattern per line of files to exclude EXCLUDES=/pkg/Flatland/rsync/Excludes # the name of the backup machine BSERVER=pcpat #BSERVER=localhost MODULE=FlatlandBackup #MODULE=flatback PORT=1236 BACKUPDIR="`date +%A`$$" OPTS="--verbose --port $PORT --force --ignore-errors --delete-excluded --exclude-from=$EXCLUDES --delete --backup --backup-dir=/$BACKUPDIR -a" #OPTS="--verbose --port $PORT --force --ignore-errors --delete-excluded # --exclude-from=$EXCLUDES --delete -a" PATH=$PATH:/pkg/rsync # the following line clears the last weeks incremental directory [ -d /tmp/emptydir ] || mkdir /tmp/emptydir #rsync --port $PORT --delete -a /tmp/emptydir/ $BSERVER::$MODULE/$BACKUPDIR/ rmdir /tmp/emptydir # now the actual transfer rsync $OPTS $BDIRS $BSERVER::$MODULE/Current
-- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/