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: 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?

1
David Miller

David Miller

Executive Financial & Market Analyst

David Miller brings 15 years of experience in global economics, personal finance strategy, and market dynamics. He specializes in turning complex economic trends into actionable insights for everyday readers.

Share this article