Score:0

Sync existing docker volume between different hosts

au flag

I would like to sync a docker volume (ncdata) between different hosts. There is a nice article here, but I am not sure how to adapt it. I would try to do the following:

Server 1

$ docker run -d --name -v ncdata:/data btsync ctlc/btsync
90ecd4
$ docker logs 90ecd4
Starting btsync with secret: A645YG2WBR4DJI7J67ZK2EKD7XT44SYJ6

Server 2

$ docker run -d --name btsync-client ctlc/btsync
A645YG2WBR4DJI7J67ZK2EKD7XT44SYJ6
16e0e4
$ docker logs 16e0e4
Starting btsync with secret: A645YG2WBR4DJI7J67ZK2EKD7XT44SYJ6
$ docker run -i -t -v ncdata:/data btsync-client ubuntu bash
root@3053efa3c41f:/# ls /data/
The directories in the volume should appear here

I am asking before trying as this is meant as backup and I do not want to break something without a backup. Can someone confirm is this works this way?

Artur Meinild avatar
vn flag
I'm not familiar with the container you're trying to run (`btsync`), expect it's [6 years old, and based on Ubuntu 14.04](https://github.com/CenturyLinkLabs/ctlc-docker-btsync). I wouldn't recommend using this. You could use `rsync` instead, and create a cron job that copies the volume path from **server 1** to **server 2**.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.