Koozali.org: home of the SME Server
Legacy Forums => Experienced User Forum => Topic started by: Mjohnson on January 21, 2005, 07:14:15 PM
-
I have been using Rsync to backup windows file shares (W2K Server). I set this up using the Rsync obtained via these forums which referenced the Tech Geeks HowTo (http://www.tech-geeks.org/contrib/loveless/SMEServer/howtos/rsync_backup/SME_BackupServer.html)
The problem I was experiencing was that Rsync did not Delete the files in the daily snapshot folders, thus it really was not giving me a snapshot at all. Added or Changed files seem to show up fine, it was just that deleted files and folders were never deleted. UGH!!!
Based upon another reference in the forums, I checked out the following webpage: http://www.mikerubel.org/computers/rsync_snapshots/ which referenced a similar issue:
Windows-related problems
I have recently received a few reports of what appear to be interaction issues between Windows and rsync.
One report came from a user who mounts a windows share via Samba, much as I do, and had files mysteriously being deleted from the backup even when they weren't deleted from the source. Tim Burt also used this technique, and was seeing files copied even when they hadn't changed. He determined that the problem was modification time precision; adding --modify-window=10 caused rsync to behave correctly in both cases. If you are rsync'ing from a SAMBA share, you must add --modify-window=10 or you may get inconsistent results. Update: --modify-window=1 should be sufficient. Yet another update: the problem appears to still be there. Please let me know if you use this method and files which should not be deleted are deleted.
I implemented this change...and my problem was solved.
Thought I would pass this along, not a big problem I am sure, but was just bugging the heck out of me.