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.
|
|
8 years ago | |
|---|---|---|
| .. | ||
| Dockerfile | 8 years ago | |
| README.md | 8 years ago | |
| backup.sh | 8 years ago | |
| install.sh | 8 years ago | |
| run.sh | 8 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_PATHyour data folder to backup requiredS3_ACCESS_KEY_IDyour AWS access key requiredS3_SECRET_ACCESS_KEYyour AWS secret key requiredS3_BUCKETyour AWS S3 bucket path requiredS3_PREFIXpath prefix in your bucket (default: 'folder-backup')S3_REGIONthe AWS S3 bucket region (default: us-west-1)S3_ENDPOINTthe AWS Endpoint URL, for S3 Compliant APIs such as minio (default: none)S3_S3V4set toyesto enable AWS Signature Version 4, required for minio servers (default: no)SCHEDULEbackup schedule time, see explainatons belowDELETE_OLDER_THANdelete files older than e.g. "30 days" reference arguments from date