Go to file
Fábio D. Batista ade7679b1e Added a new configuration option, BACKUP_INTERVAL 2015-09-10 16:46:45 -03:00
.gitignore initial commit 2014-08-30 12:16:23 -07:00
Dockerfile Added bash package 2015-07-24 14:08:19 -03:00
Makefile Changed Makefile 2015-07-25 23:31:27 -03:00
README.md Added a new configuration option, BACKUP_INTERVAL 2015-09-10 16:46:45 -03:00
s3cfg initial commit 2014-08-30 12:16:23 -07:00
watch Added a new configuration option, BACKUP_INTERVAL 2015-09-10 16:46:45 -03:00

README.md

docker-s3-volume

Creates a Docker container that is restored and backed up to a directory on s3. You could use this to run short lived processes that work with and persist data to and from S3.

Usage:

docker run -it --rm \
  -e AWS_ACCESS_KEY_ID=... -e AWS_SECRET_ACCESS_KEY=... -e BACKUP_INTERVAL=... \
  whatupdave/s3-volume s3://<BUCKET>/<PATH>

This pulls down the contents of a directory on S3. If the container is stopped or sent a USR1 signal, it will backup the modified local contents to S3.

If you supply a BACKUP_INTERVAL environment variable, a backup will be issued each interval. The value can be specified in seconds, minutes, hours or days (adding s, m, h or d as suffix).