1.1.0 • Published 5 years ago
mysql-to-s3 v1.1.0
mysql-to-s3
A cli app to run mysqldump and store it into s3
Prerequisite
- Setup your aws credentials & config like in this guide
- Install mysql cli tools, specifically mysqldump
Install
Install this package globally using your preferred package manager
npm install -g mysql-to-s3or
yarn global add mysql-to-s3Usage
Add a mysql instance to be backed up
mysql-to-s3 addRemove instance that you dont want to backup
mysql-to-s3 removeList instances
mysql-to-s3 instancesList backups that have been created
mysql-to-s3 listCreate backup of the instances you added before
mysql-to-s3 run --bucket <bucket name>Misc
To change tmp dir, you can set it in MYSQL_TO_S3_TMP environment variable.
MYSQL_TO_S3_TMP=/path/to/other/dir