Easily backup your docker container to a FTP server.
Configure your credentials.conf:
# credentials.conf
export FTP_USER="my-user"
export FTP_PASSWORD="my-password"
export FTP_HOST="backup.server.org"Edit dockers-to-backup.txt
Add the containers' name or id you want to backup.
my_project_nginx_1
my_project_frontend_1
1e52f28bb583
💡 protip: prefer the name as it will make the archive's filename more explicit).
Launch
$ ./backup-list.bash
For more control check out
$ ./backup.bash --help
Requirements: docker ≥ 17.03, curl.
$ git clone https://github.com/edouard-lopez/backup-docker-to-ftp.git
Requirements: bats.
$ bats ./test_backup.bats
busybox and panubo/vsftpd images will be –silently– pulled if missing (takes a few minutes).
You can test by configuring your credentials in .netrc and overriding $HOME to point to it (see video):