MySQL dump to Backblaze's b2 storage.
DB_USER
: username for the databaseDB_PASSWORD
: password for the databaseDB_HOST
: hostname/ip of the database serverDB_DUMP_FREQ
: How often to do a dump, in minutes. Defaults to 1440 minutes, or once per day.B2_TARGET_DIR
: b2 target prefix e.g. backupsB2_ACCOUNT_ID
: b2 account idB2_APPLICATION_KEY
: b2 application keyB2_BUCKET
: b2 bucket to use
docker run -d \
-e DB_HOST='mysql01.domain.tld' \
-e DB_USER='mydbuser' \
-e DB_PASSWORD='mysecretpassword' \
-e DB_DUMP_FREQ=1440 \
-e B2_TARGET_DIR='mysql01-backup' \
-e B2_ACCOUNT_ID='myb2accountid' \
-e B2_APPLICATION_KEY='myb2applicationkey' \
mitcdh/mysqldump-b2