https://github.com/hyperoslo/mysql-s3
A shell script that archives a MySQL database to AWS S3
https://github.com/hyperoslo/mysql-s3
Last synced: about 1 month ago
JSON representation
A shell script that archives a MySQL database to AWS S3
- Host: GitHub
- URL: https://github.com/hyperoslo/mysql-s3
- Owner: hyperoslo
- Created: 2016-06-27T11:57:38.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-06-27T11:59:12.000Z (almost 10 years ago)
- Last Synced: 2025-01-06T05:08:47.907Z (over 1 year ago)
- Language: Shell
- Homepage:
- Size: 1000 Bytes
- Stars: 3
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# mysql-s3
At Hyper, we make lots of things. Many of those things generate data, and we
don't want to lose that data.
This is a shell script that archives a MySQL database to AWS S3.
## Usage
Dump the database, compress it and upload it to AWS S3:
```sh
mysql-to-s3
```
## Installation
```
$ curl -s --location http://raw.github.com/hyperoslo/mysql-s3/master/install.sh | sh
```
## Configuration
You'll need to set the following environment variables to use the script:
* `MYSQL_S3_BUCKET`: The name of the bucket you want to archive to.
* `MYSQL_S3_DATABASE_NAME`: The name of the database you want to archive.
* `MYSQL_S3_DATABASE_USER`: The user to connect to the database with.
* `MYSQL_S3_DATABASE_PASSWORD`: The password to connect to the database with.
* `AWS_DEFAULT_REGION`: The AWS region your bucket is in.
## Hyper loves you
[Hyper] made this. We're a bunch of folks who love building things. You should
[tweet us] if you can't get it to work. In fact, you should tweet us anyway.
If you're using mysql-s3, we probably want to [hire you].
[Hyper]: https://github.com/hyperoslo
[tweet us]: http://twitter.com/hyperoslo
[hire you]: http://www.hyper.no/jobs/engineers