delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/02/03/13:36:29

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <20020203123708.24309@pat.net>
Date: Sun, 3 Feb 2002 12:37:08 -0600
From: Pat <pat AT pat DOT net>
To: cygwin AT cygwin DOT com
Subject: 1.3.9: rsync daemon 2.5.1 broken
Reply-To: pat AT pat DOT net
Mime-Version: 1.0
X-Mailer: Mutt 0.89.1

--vkogqOf2sHV7VnPd
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=mutt6YaGsJ

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


--vkogqOf2sHV7VnPd
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="RsyncNightly.sh"

#!/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



--vkogqOf2sHV7VnPd
Content-Type: text/plain; charset=us-ascii

--
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/
--vkogqOf2sHV7VnPd--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019