2015-09-10 21:46:45 +02:00
|
|
|
# docker-s3-volume
|
2014-08-30 21:16:23 +02:00
|
|
|
|
2015-09-10 21:46:45 +02:00
|
|
|
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.
|
2014-08-30 21:16:23 +02:00
|
|
|
|
|
|
|
Usage:
|
|
|
|
|
2015-09-10 21:46:45 +02:00
|
|
|
docker run -it --rm \
|
|
|
|
-e AWS_ACCESS_KEY_ID=... -e AWS_SECRET_ACCESS_KEY=... -e BACKUP_INTERVAL=... \
|
2017-06-06 03:26:11 +02:00
|
|
|
elementar/s3-volume s3://<BUCKET>/<PATH>
|
2014-08-30 21:16:23 +02:00
|
|
|
|
2015-09-10 21:46:45 +02:00
|
|
|
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).
|