Well, I followed this link: http://www.mikerubel.org/computers/rsync_snapshots/ 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 : RECYCLER/ System Volume Information/ : mounted drive ($BACKUPMOUNT) is : $MOUNT -o ro -t smbfs //$BACKUPHOST/$SHARE $BACKUPMOUNT -o 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] code/research/octave-2.0.16/kpathsea/kpsewhich.c -- 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. Mark
> Well, I followed this link: > http://www.mikerubel.org/computers/rsync_snapshots/ > > 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.Hi Mark, I'm glad you were able to get the snapshot trick going on your home network, though I'm sorry to hear about this trouble with the deletes. I studied the situation under Samba for quite a while on my system before proclaming it working, so this is interesting and a bit worrying. The only irregularity I noticed on my systems was that sometimes files would get sent over even if they hadn't changed, which I assumed was a peculiarity of Samba, since it never happened from my Linux machines. It was only an extra file-send or two every few sync's, so I didn't worry about it too much at the time. Has anyone else tried what Mark describes here? Are there any suggestions or comments? I'll stay tuned for a couple of days, and then make a note on the website, since this is something other potential implementers will need to know about. Mike Rubel
> Well, I followed this link: > http://www.mikerubel.org/computers/rsync_snapshots/ > > 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.Hi again all, Has anyone else seen Mark's problem, which sounds like a weird interaction issue between samba and rsync? Mark, I will add a note about your experience here to the web page; so far it's the only report I've seen though, and I'd really like to get more data. Is anyone else running the rsync-snapshot trick from windows machines via Samba? Can we get more debugging information to determine the source of the problem? Thanks, Mike