File Conflicts When Setting Up New Peer (Via Usb Drive)


jkellendonk

Recommended Posts

Hi. I was wondering: If I'm setting up another peer for a sync folder, leveraging a USB drive to copy most of the files over initially, how does Sync decide which file on which peer has the most up to date files? Does it choose the file that has the newest last-modified date?

 

What if someone modifies a file on the new peer before it is done indexing/synchronizing?

Link to comment
Share on other sites

@jkellendonk

When sync decides which file is the latest, it relies on it's own "Change time". Change time is stored in database. In majority of cases it is same as mtime of a file, but in some cases it differs. Here are cases which make change time different from mtime (note, that list is not complete and serves only as a sample):

1) Sync is running and user moves file to Sync folder. Change time = move time.

2) Sync is starting up and user changed file in sync folder when Sync was off. Change time = Sync startup time.

3) Sync is running and user deletes file. Change time = delete time (yes, deletion time is also recored in DB and will be distributed to other peers).

4) Sync is starting up and user deleted file. Change time = Sync startup time.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.