Menu

#24 Resume sync of a crashed session delete files in both dirs

open-fixed
nobody
None
9
2011-01-05
2010-01-28
No

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.

Discussion

  • Andrea Rimicci

    Andrea Rimicci - 2010-01-28
    • priority: 5 --> 9
     
  • Florent Chabaud

    Florent Chabaud - 2010-12-29

    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.

     
  • Matus Tomlein

    Matus Tomlein - 2011-01-05

    Fixed in SVN, soon will release an update to Synkron.

    Thanks for the bug report,
    Matus

     
  • Matus Tomlein

    Matus Tomlein - 2011-01-05
    • status: open --> open-fixed
     

Log in to post a comment.