Bootstrapping Folder Sync With Existing Data

Recommended Posts

Is it possible (and safe) to bootstrap a large folder sync via outside channels (like sneakernet)?




- Large folder exists on A

- Folder is shared from A to B

- Sync starts, trickles along

- Sync agent is stopped on B

- Original folder data is copied via backchannel from A to B

- Sync agent is re-started on B


It's easy to imagine that B's sync process will simply reindex the contents of the folder upon restarting, discover that everything is identical (or very nearly so), and quickly complete without sending much more of the original contents over the network. But it's also easy to imagine that this could tickle subtle bugs or strange behavior by being outside the expected interactions with a partially-synced directory.


Is this type of setup safe? Have other people done this?

Share this post

Link to post
Share on other sites

That type of setup is indeed safe, due to the fact that you're dealing with identical data.

What will happen is that both devices will continue to index. As they index, they will exchange information on the files they've indexed. Those files will then be checked against each other and the one with the newer modified timestamp will be used.

Share this post

Link to post
Share on other sites

The one difficulty with this is that if you delete a bunch of files on the "master" copy while the sneakernet flash disk is still on its way to the destination, these files will show up again. This is because there is no way to run the initial sync in any mode other than "merge".

Another scenario where specifying one copy as a master would help: you wipe your laptop's software and reinstall everything. Your data partition is still there, with a copy of the synced folders that is now out of date. You cannot realistically just install BTSync and add that folder, because again, this will obliterate deletions that happened in the meantime. The best option is to wipe and start from scratch, unless you know the two to definitely be in sync.

Here's a suggestion I've made about this a long time ago: http://forum.bittorrent.com/topic/16462-re-sync-previously-synced-folders/?p=42364

Share this post

Link to post
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.

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.