sbrattla Posted June 16, 2014 Report Share Posted June 16, 2014 Hi, I'm currently using csync2 + lsyncd to keep a few webservers synchronized. The way this works is that lsyncd keeps track of events on the filesystem, and invokes csync2 (rsync variant) to cascade changes to other servers. Even though this works fairly well, I'm curious as to whether BitTorrent Sync would be a better fit. However, I've got a couple of questions which I can't figure out for BT Sync: (1) When synchronizing directories and files between systems, how does BT Sync handle ownership and permissions?(2) If a file is changed on node A and also on node B, how does BT Sync handle conflicts?(3) Have I understood it correctly when I say that BT Sync operates more in a "star"-like fashion than in a "circle"-like fashion, meaning that system A may sync to system B and C, and B subsequently updates D and C updates E and F? Looking forward to anyone's insight on this. Quote Link to comment Share on other sites More sharing options...
ChrisH Posted June 16, 2014 Report Share Posted June 16, 2014 (1) no idea(2) last change wins(3) depends on your configuration - you can have circle, star or full-mesh setups Quote Link to comment Share on other sites More sharing options...
RomanZ Posted June 16, 2014 Report Share Posted June 16, 2014 @sbrattla1) Win&Mac: BTSync runs as current user, so all files it creates when syncing have default permissions for current user. Linux - it applies umask to newly created files.2) Indeed. Last change (including direct copy of an older file to sync directory) wins.3) It targets to be a mesh structure, i.e. by default all peers try to connect to all peers. Quote Link to comment Share on other sites More sharing options...
sbrattla Posted June 18, 2014 Author Report Share Posted June 18, 2014 @RomanZAd. 1 : does this mean that it is not capable of applying ownership + permissions as it was on the originating system? Quote Link to comment Share on other sites More sharing options...
RomanZ Posted June 18, 2014 Report Share Posted June 18, 2014 @sbrattla It is out of btsync functionality. It does not sync ownership and permissions - only filename, content and some properties like mtime and xattrs. Quote Link to comment Share on other sites More sharing options...
b0rman Posted June 20, 2014 Report Share Posted June 20, 2014 @RomanZAd. 1 : does this mean that it is not capable of applying ownership + permissions as it was on the originating system? Actually You can do it by crontab every minute (for example):chown -R nobody:nobody /sync_path/chmod -R g=u /sync_path/ Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.