What Synchronization Scheme Does Btsync Use?


GreenLED

Recommended Posts

I'm implementing BTsync in a business setting. I'd like to schedule BTsync to start at a specific time. This is not a problem. The issue I'm running into is understanding how "Pausing" works. If I tell BTsync to "Pause", what happens to the file once the sync is "Un"paused? For example ...

 

PC 1 = Sync Online

 

PC 2 = Sync Online

 

=======================

 

File Sync in progress on a particular file (let's assume it's a large file)

 

When BTsync is told to "Pause", does it complete the current file and then stop syncing?

 

If it stops in the middle of a file, what happens if that file is somehow altered while the sync is paused. Then after the sync is unpaused, does BTsync just overwrite the file?

 

Can you say "Turn off after a complete sync"? I need a graceful way to turn off BTsync. In this way, it does not cause congestion on my network.

Link to comment
Share on other sites

GreenLED,

 

From BTSync POV doing something with the file while paused is the same as doing something with the file when it is being synced. In this case the seeding peer which detected file change will have to recall file metadata and let other peers know. 

 

If changes are massive (more than 90% of the file or more than max_file_size_diff_for_patching) - file will be downloaded from scratch. Otherwise it will keep already-downloaded part.

 

Even paused, BTSync still merges trees, messages and other service information.

 

Can you say "Turn off after a complete sync"? I need a graceful way to turn off BTsync. In this way, it does not cause congestion on my network.

 

I suggest checking API. You can determine folder status and if upload and download are "0" it means that folder is fully synced and you can gracefully shut BTSync down.

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.