Sync existing docker volume between different hosts
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: A645YG2WBR4DJI7J67ZK2EKD7XT44SYJ6Server 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 hereI 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?
1 Reset to default