Resume sync of a crashed session delete files in both dirs
Status: Inactive
Brought to you by:
matus_tomlein
Got a crash while syncing 2 directories. Syncron was creating his own db files. Resumed Synckon and asking a sync, the program deleted all files in both directories. The expected behaviour was don't touch files who are already sync, not to delete them.
I can confirm this bug and give an even more annoying scenario.
While synchronizing on an usb external device, I accidentally removed the usb device. The synchronization continues by removing all synchronized files on the computer. As the usb stick was set as slave and the "propagate deletions" was activated, the files were also deleted on it after resynchronisation.
The more annoying scenario is when you use a network filesystem and the share disappears for any network reason. Together with automatic synchronization, this can lead to huge data loss.
A suggestion: double check deletion of file. For instance make a stat call, and verify the ENOENT/ENOTDIR error return.
Fixed in SVN, soon will release an update to Synkron.
Thanks for the bug report,
Matus