Skip to content

edouard-lopez/backup-docker-to-ftp

Repository files navigation

Build Status

Easily backup your docker container to a FTP server.

Usage

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

Install

Requirements: docker17.03, curl.

$ git clone https://github.com/edouard-lopez/backup-docker-to-ftp.git

Test

Requirements: bats.

$ bats ./test_backup.bats

⚠️Note: busybox and panubo/vsftpd images will be –silently– pulled if missing (takes a few minutes).

Test FTP

You can test by configuring your credentials in .netrc and overriding $HOME to point to it (see video):

About

Easily backup your docker container data to a FTP server.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages