How to sync dir "/"


seventh

Recommended Posts

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 see

Error while adding folder /: Can't open the destination folder.

How can I do it with btsync?

Link to comment
Share on other sites

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 /BackUp
cd /BackUp
mkdir opt var
mount -o bind /opt /BackUp/opt
mount -o bind /var /BackUp/var

Not 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.

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.