Handles a safe backup of a single source folder recursively on Aws S3.
1.2K
This docker repository handles a safe backup of a single source folder recursively on Aws S3.
If you need to backup different folders you may run multiple containers :).
stg-s3sync:
image: 'liuggio/s3sync:latest'
autoredeploy: true
environment:
- ACCESS_KEY=YOURKEY
- SECRET_KEY=YOURSECRET
- SOURCE_DIR=/files
- S3_PATH=s3://YOURBUCKET
- LOOP_DELAY=12h
restart: on-failure
volumes:
- '/node_files:/files'
On S3 you can configure the bucket with the versioning flag.
S3_CMD_FLAGS eg. "--dry-run" or "--exclude ... " more at http://s3tools.org/s3cmd-sync
LOOP_DELAY is the delay between the next sync, default is 200s you can change to 3m or 10h or 3d for days.
BUCKET_LOCATION=US You can set different bucket location.
MIME_TYPE If empty it uses the default mime type using python-magic (suggest to not add this env)
You can play with the run.sh with your local docker repo.
MIT LICENSE
Content type
Image
Digest
sha256:ca30161ae…
Size
154.5 MB
Last updated
almost 11 years ago
docker pull liuggio/s3sync