Bitorrent Sync and rsync


Recommended Posts

Hi,

I am creating a setup with a central linux server so theres always at least 1 peer online. I am currently backing up the shared folders on the linux box with rsync with the --link-dest option ( the same way as OSX Time Machine works) so that deleted files are not present in the latest backup, but remain present in older backups.

The problem is, when Bitorrent Sync is synching a file, it appends .!sync to the filename. BTSync then thinks the original file is removed, and another file (with .!sync) is added.

I can ignore files ending with .!sync, so that new files will be backed up on the next backup, but I don't want changed files to be removed by rsync when BTSync is busy synchronizing the file.

I think there are 2 possibilities:

  1. Find a way to tell rsync that it should not remove this file ( don't know how)
  2. Detect on one way or another that BTSync is busy or idle, and when idle, stop the process (otherwise wait with backup), and after the backup restart BTSync.

Option 1 is maybe a question for a rsync forum, but maybe there are some people here with the same problem, so I try here ;-)

Is option 2 possible? The setup will be used by just a few people, so I am sure there is idle time enough, just wondering if I can detect this.

Any ideas?

Link to comment
Share on other sites

It's always very risky running two different backup/synchronization tools on the same set of files - I'd suggest using one or the other, but not both!

There was a very active discussion on rsync recently that may be of some interest to you in helping you decide whether BitTorrent Sync or rsync is more suited to your particular needs

Link to comment
Share on other sites

The main reason to backup the BTSync folders, is to provide functionality which is not (yet) present in BTSync, and to circumvent a bug in BTSync.

  1. I want some kind of versioning, where I don't need easy access to the old versions, but want them to be present ( also in case if someone accidently deletes a file).
  2. I am synching to a usb drive on a raspberry pi, and when this drive is disconnected, BTSync thinks the folders are removed, and deletes them on the other clients.

The reason to use BTSync is because it is easy to use and setup on the client pc's. It will be used by people which now use dropbox.

Link to comment
Share on other sites

I want some kind of versioning, where I don't need easy access to the old versions, but want them to be present ( also in case if someone accidently deletes a file).

"versioning" is planned for BitTorrent Sync!

I am synching to a usb drive on a raspberry pi, and when this drive is disconnected, BTSync thinks the folders are removed, and deletes them on the other clients.

Yes, this has been raised a few times now in the forum (for example, here)... hopefully this will be addressed shortly!

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.