simple image backup cron to s3 wasabi
929
The container is configured via a set of required environment variables in ."env.example":
# The access credentials to the S3 bucket
AWS_ACCESS_KEY_ID=XXXXXXXXXXXX
AWS_SECRET_ACCESS_KEY=XXXXXXXXXXXXX
# Region, Endpoint and Bucket
S3_BUCKET_URL=s3://itmp-bucket
AWS_DEFAULT_REGION=us-west-1
S3_ENDPOINT_URL=https://s3.us-west-1.wasabisys.com
# Interval in Cron-Style
CRON_SCHEDULE=* * * * *
# The system timezone
TZ=America/Fortaleza
# The name of the backup
BACKUP_NAME=backup
# The path of the backup (volume name or filesystem mount)
BACKUP_PATH=/home/tux/
# TARGET default /data
#TARGET="/var/log/*.log /var/lib/mysql/*.dmp"
version: "2"
services:
backup:
image: itmpsolutions/docker-cron-backup:latest
env_file:
- .env.example
volumes:
# First: Your volume or directory (e.g. /root)
# Second: This is the folder, where the folder (above) will be mounted
# Last: Read-Only flag, so this container can't touch anything
- /home/tux:/data:ro
restart: always
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3:PutObject",
],
"Resource": "arn:aws:s3:::docker-s3-cron-backup-test/*"
}
]
}
Content type
Image
Digest
sha256:7ad7cf089…
Size
48.4 MB
Last updated
almost 3 years ago
docker pull itmpsolutions/docker-cron-backup