You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Zhong Huiwen
fb38f788d2
|
7 years ago | |
---|---|---|
.. | ||
Dockerfile | 7 years ago | |
README.md | 7 years ago | |
backup.sh | 7 years ago | |
install.sh | 7 years ago | |
run.sh | 7 years ago |
README.md
folder-backup-s3
Backup a folder in a docker container to S3
Basic usuage
$ docker run -e S3_ACCESS_KEY_ID=key -e S3_SECRET_ACCESS_KEY=secret -e S3_BUCKET=my-bucket -e S3_PREFIX=backup -e MYSQL_USER=user -e MYSQL_PASSWORD=password -e MYSQL_HOST=localhost gameboy1990/folder-backup-s3
Environment variables
DATA_PATH
your data folder to backup requiredS3_ACCESS_KEY_ID
your AWS access key requiredS3_SECRET_ACCESS_KEY
your AWS secret key requiredS3_BUCKET
your AWS S3 bucket path requiredS3_PREFIX
path prefix in your bucket (default: 'folder-backup')S3_REGION
the AWS S3 bucket region (default: us-west-1)S3_ENDPOINT
the AWS Endpoint URL, for S3 Compliant APIs such as minio (default: none)S3_S3V4
set toyes
to enable AWS Signature Version 4, required for minio servers (default: no)SCHEDULE
backup schedule time, see explainatons belowDELETE_OLDER_THAN
delete files older than e.g. "30 days" reference arguments from date