Backup MySQL/MariaDB database and upload to S3
- Backup your databases automatically
- Compress the dump
- Upload to S3 (digitalocean)
You can provide configuration of Host to be backed up in yaml format.
Put the configuration in the mount/b6m-config
directory (see samples there).
See available configuration in the src/types/B6MConfig
file.
A .env
file is required for S3 uploads. See .env.sample
yarn install
yarn start
Docker image provided.
- Build the image:
docker build -t backup6m .
- Run
docker run -v /path/to/backup6m/mount:/app/mount backup6m
Why --experimental-specifier-resolution=node
in npm start
in package.json
This is to avoid add .js
to import statements.