rsync snapshot problem deleting files

Mark L. Chang marklchang at
Thu Dec 12 04:32:01 EST 2002

Well, I followed this link:

and implemented it (with a bit of tweaking) on my home network. It is 
used to make snapshots of two Windows PC's over samba. On one of the 
machines (and not the other, from what I can tell) it deletes files from 
the target machine for no good reason (ie. they still exist on the 
source machine). Then, if I run it again right away, it gets the files anew.

Most is the same as Mike's script, here is the relevant rsync:
$RSYNC -va --delete --delete-excluded
   --exclude-from="$EXCLUDES" --stats $BACKUPMOUNT/ \
   $SNAPSHOTDIR/$SHARE/snap.0 > $BACKUPDIR/${BACKUPHOST}.output 2>&1 ;

: excludes :
System Volume Information/

: mounted drive ($BACKUPMOUNT) is :
username=$USERPASS ;

And here, from my log of the output, from two back-to-back runs without 
modifying the source drive:
[first run]
deleting code/research/octave-2.0.16/kpathsea/kpsewhich.c
   -- deletes the file, and doesn't re-get it, leaving that snapshot 
without this file

[second run]
   -- fetched the file, as it really exists on the source drive but not 
in my snapshot system

What is going on? Obviously, this type of deleting stuff randomly is not 
good for my hot backup scheme.


More information about the rsync mailing list