An open API service indexing awesome lists of open source software.

https://github.com/hypothesis/mysql-s3-backup


https://github.com/hypothesis/mysql-s3-backup

Last synced: 9 months ago
JSON representation

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
```