ZettaIO / restic-compose-backup

Automatic restic backup of a docker-compose setup. https://hub.docker.com/r/zettaio/restic-compose-backup
MIT License
29 stars 16 forks source link

Feature request: add support for MARIADB_ROOT_PASSWORD for MariaDB containers #40

Open pylandure-cobredia opened 2 years ago

pylandure-cobredia commented 2 years ago

As described in mariadb official Docker image, the MariaDB root password can be set using MARIADB_ROOT_PASSWORD and MARIADB_ROOT_PASSWORD_FILE.

Additionally, MYSQL_ROOT_PASSWORD and MYSQL_ROOT_PASSWORD_FILE are possible names for the same values.

restic-compose-backup should test for the presence of this value, and use root account to backup all databases when it is available.