Transfer Docker Volumes with DAT
If you have a Docker Volume on one server, and you'd like to get it onto another you can use the following guide:
I have published a Docker image allowing a user to share a volume over DAT.
docker run -it --rm -v {volume}:/backup -p 3282:3282 moritonal/dat-create-backup-itallows you to start and stop it--rmdeletes the container after your're finished-v {volume}:/backupmaps the target volume to the/backupdir in the container-p 3282:3282maps the port so DAT can receive communicationsmoritonal/dat-create-backupis the image name
When ran this will output a DAT url (yes, in tricky-to-see dark-blue) and start syncing it. You can then pass this into the next Docker image, which allows a user to pull a DAT into a Docker Volume.
docker run -it --rm -v {volume}:/backup moritonal/dat-pull-backup dat://{dat}-itlets you watch the progress--rmdelete image after you're finished-v {volume}:/backupmaps the volume to/backupmoritonal/dat-pull-backupis the image namedat://{dat}is the name of the DAT outputted by the counterpartdat-create-backupcommand
I also apologise for the massively too fat images, I should really slim them down at some point.