Docker image for simple volumes backup over FTP.
Image with a simple script that archives the data from the Docker volume and uploads the archive to an FTP server.
Uses user provided archive name prefix + unix timestamp as suffix for the filename.
I. e. volume_container-123456789.tar.bz2
.
Image accepts following environment variables:
VOLUME_MOUNT_POINT
- path where volume is mounted. Default is/data
ARCHIVE_NAME_PREFIX
- prefix for archive file name. Default isvolume_container
FTP_PATH
- full path to FTP folder. I. e.ftp://example.com/path/to/storage/
FTP_USER
- FTP username. Default isanonymous
FTP_PASSWORD
- FTP password for authentication
docker run --rm -v my_shiny_volume:/data -e ARCHIVE_NAME_PREFIX='my_shiny_backup' -e FTP_PATH='ftp://example.com/backups/shiny_folder/' -e FTP_USER='user' -e FTP_PASSWORD='secret' vit1/volume-ftp-backup