Public Repository

Last pushed: 9 months ago
Short Description
Docker container that periodically backups files to Amazon S3 using s3cmd sync and cron.
Full Description

Project URL : https://github.com/amitdaniel86/docker-backup-s3

Docker container that periodically backups files to Amazon S3 using s3cmd sync and cron.

Usage

docker run -d [OPTIONS] amitdaniel/backup-to-s3

Parameters:

-e ACCESS_KEY=<AWS_KEY>: Your AWS key.
-e SECRET_KEY=<AWS_SECRET>: Your AWS secret.
-e S3_PATH=s3://<BUCKET_NAME>/<PATH>/: S3 Bucket name and path. Should end with trailing-slash.
-v /path/to/backup:/data:ro: mount target local folder to container's data folder. Content of this folder will be synced with S3 bucket.
Optional parameters:

-e PARAMS="--dry-run": parameters to pass to the sync command (full list here).
-e DATA_PATH=/data/: container's data folder. Default is /data/. Should end with trailing-slash.
-e 'CRON_SCHEDULE=0 1 ': specifies when cron job starts (details). Default is 0 1 (runs every day at 1:00 am).
no-cron: run container once and exit (no cron scheduling).

Docker Pull Command
Owner
amitdaniel