seventh Posted August 13, 2013 Report Share Posted August 13, 2013 I want to sync all data from my Ubuntu server except directories with .SyncIgnore. But nothing happens when I write in config:"shared_folders" :[{"secret" : "blablabla","dir" : "/",etc...In log I seeError while adding folder /: Can't open the destination folder.How can I do it with btsync? Quote Link to comment Share on other sites More sharing options...
Disappointed Cat Posted August 13, 2013 Report Share Posted August 13, 2013 Are you running it as root?Anyway, syncing "/" can backfire badly, even if you exclude /proc and whatnot.For instance, your permissions and ownerships will be messed up. Quote Link to comment Share on other sites More sharing options...
seventh Posted August 13, 2013 Author Report Share Posted August 13, 2013 Are you running it as root?Anyway, syncing "/" can backfire badly, even if you exclude /proc and whatnot.For instance, your permissions and ownerships will be messed up.Yes, as root. I want to ignore this folders with .SyncIgnore. Quote Link to comment Share on other sites More sharing options...
Disappointed Cat Posted August 13, 2013 Report Share Posted August 13, 2013 Then it's probably an app limitation, for good reason. Seriously, don't do it.New files in the home directories will belong to root, sensitive files could become readable for everyone and I can go on.Of course you could try and mitigate this with ACLs but good luck with that on a system wide scale. Quote Link to comment Share on other sites More sharing options...
dmason Posted August 13, 2013 Report Share Posted August 13, 2013 Seriously, don't do it.Double serious. Don't do it. Quote Link to comment Share on other sites More sharing options...
seventh Posted August 13, 2013 Author Report Share Posted August 13, 2013 I just want to backup maksimum files from my server and don't want to add each folder separately. Well, if so I'll add separately folders... Quote Link to comment Share on other sites More sharing options...
LazyWolf Posted August 13, 2013 Report Share Posted August 13, 2013 One method you could use is to make a backup folder /BackUp and bind the folders you want to have backups to into that folder, then sync that folder...Example...mkdir /BackUpcd /BackUpmkdir opt varmount -o bind /opt /BackUp/optmount -o bind /var /BackUp/varNot sure if this would work as I have not tested it myself but it should be one option -- also if it does work and you do like how it turns out -- you just need to edit /etc/fstab to make the folders bind on boot. Again you will run into permission issues if another computer adds files.So another option would be to have a cronjob to archive the files you want to protect and have the outputted archive go to the BackUp folder. Quote Link to comment Share on other sites More sharing options...
Disappointed Cat Posted August 13, 2013 Report Share Posted August 13, 2013 If you only want backup and not synchronization you should use a backup/archiving program like unison or duplicity, either directly to a remote location or to a local directory and you can sync that. This also gives you the option to restore symlinks, permissions, ownerships or even ACLs. 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.