Skip to content

Backup MySQL/MariaDB database and upload to S3 or SFTP like Hetzner storage box

Notifications You must be signed in to change notification settings

redochka/backup6m

Repository files navigation

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.

Run :

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

Developer notes

Why --experimental-specifier-resolution=node in npm start in package.json

This is to avoid add .js to import statements.

see: microsoft/TypeScript#41887

About

Backup MySQL/MariaDB database and upload to S3 or SFTP like Hetzner storage box

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published