This is a Docker-compatible Python script to make backup of any and pushes it to an S3 bucket.
This is intended to be ran under fargate or a lambda function.
Use lambda if the total size is less than 256 MB due to disk limitations, otherwise use fargate.
Make sure the lambda or fargate container has IAM access to s3:PutObject and ses:SendEmail
| Variable | Details | Example |
|---|---|---|
| IN_FOLDER | the folder to backup, usually a volume bind | /data/in |
| BUCKET_NAME | The S3 bucket to upload the backup to | app-dev-backups |
| SES_REGION | The region that SES is working in | us-east-1 |
| EMAIL_FROM | The email address to send emails from | [email protected] |
| EMAIL_TO | The list of email addresses to send to, separated by semicolons | [email protected];[email protected] |
Content type
Image
Digest
Size
48.2 MB
Last updated
almost 7 years ago
docker pull clevyr/filebackup-lambda-s3