Docker Volume Backup to S3
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore Initial commit May 28, 2015
Dockerfile Add Dockerfile with run script May 28, 2015
LICENSE Initial commit May 28, 2015
README.md Update README May 28, 2015
run.sh Add Dockerfile with run script May 28, 2015

README.md

vbackup

Docker Volume Files Backup to S3

How to use

docker build -t vbackup:latest .
docker run -it \
  -e AWS_ACCESS_KEY_ID=your-aws-key-id \
  -e AWS_SECRET_ACCESS_KEY=your-aws-secret-access-key \
  -e AWS_BACKUP_BUCKET=your-bucket \
  -e DIRECTORY_TARGET=/foo \
  -e SLEEP_TIME=10 \
  -v /foo:/foo \
  --name vbackup \
  vbackup:latest

By default, it runs backup and sleeps for $SLEEP_TIME seconds. If you need to restore, you should append /run.sh restore to the command above to override the default CMD.