A tool that can be used to automate and schedule regular backups of UCP and DTR.
Run this tool on a UCP controller. It will take both UCP and DTR backups sequentially and then save the backups to the current working directory of the UCP controller.
USERNAME=admin
PASSWORD=password
UCP_URL=1.1.1.1
DTR_URL=2.2.2.2
docker run --rm -it \
-v /var/run/docker.sock:/var/run/docker.sock \
-v "$(pwd)":/var/docker-backup \
--env-file conf.env \
chrch/docker-backup:latest
Tested on:
- UCP 2.1, 2.2
- DTR 2.1, 2.2, 2.3
- Engine 17.06