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
npm ci
npm run build
npm startNode.js 24 or newer is required.
For development:
npm run typecheck
npm test
npm run test:watchDocker image provided.
- Build the image:
docker build -t backup6m .- Run
docker run -v /path/to/backup6m/mount:/app/mount backup6m