https://github.com/hypothesis/mysql-s3-backup
https://github.com/hypothesis/mysql-s3-backup
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/hypothesis/mysql-s3-backup
- Owner: hypothesis
- Created: 2017-02-16T16:15:51.000Z (over 9 years ago)
- Default Branch: main
- Last Pushed: 2022-06-02T14:10:37.000Z (about 4 years ago)
- Last Synced: 2025-08-15T04:42:43.760Z (11 months ago)
- Language: Shell
- Size: 1.95 KB
- Stars: 0
- Watchers: 11
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
mysql-s3-backup
==================
This repository contains a shell script for backing up a MySQL database
and then uploading the dump to an S3 bucket, as well as a Dockerfile for easier
handling of MySQL dependencies.
Usage
-----
```shell
docker run --rm \
-e AWS_ACCESS_KEY_ID=replace-this \
-e AWS_SECRET_ACCESS_KEY=replace-this \
-e S3_URL=s3://bucket-name/path \
-e MYSQL_HOST=database.server \
-e MYSQL_DB=mydb \
-e MYSQL_USER=myuser \
-e MYSQL_PASSWORD=mysecretpassword \
-e SNITCH_URL=optional-url-to-call-on-success \
hypothesis/mysql-s3-backup
```