Skip to content

vit-/docker-volume-ftp-backup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

volume-ftp-backup

Docker image for simple volumes backup over FTP.

Description

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.

Usage

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 is volume_container
  • FTP_PATH - full path to FTP folder. I. e. ftp://example.com/path/to/storage/
  • FTP_USER - FTP username. Default is anonymous
  • FTP_PASSWORD - FTP password for authentication

Example

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

About

Docker image for simple volumes backup over FTP

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages