Sign inSign up

jeromegillard/mariadb-backup

By jeromegillard

•Updated over 3 years ago

Simple automated backup container for MariaDB

Image
0

703

jeromegillard/mariadb-backup repository overview

Script to backup all databases of a mariadb instance.

⁠Usage

mariadb-backup:
    env:
      BACKUP_DB_HOST=mariadb
      BACKUP_DB_USER=root
      BACKUP_DB_PASSWORD=root
      BACKUP_NUM_KEEP=7
      BACKUP_FREQUENCY=1d
    volumes:
      - ./database-dump:/dump
      - /etc/localtime:/etc/localtime:ro
    depends_on:
      - mariadb

⁠Volume

  • /dump (mandatory): The directory where the dump archives will be created.
  • /etc/localtime (optional): Timezone

⁠Environment variables

VariableDescriptionDefault value
BACKUP_DB_HOSTThe host of the DB to backupmariadb
BACKUP_DB_USERUsername that can read all databasesroot
BACKUP_DB_PASSWORDYou guess itroot
BACKUP_NUM_KEEPhow many backup archive can I keep?7
BACKUP_FREQUENCYHow long to wait until each backup1d
BACKUP_UIDUser id of produced archives1001
BACKUP_GIDGroup id of produced archives1001

Tag summary

Content type

Image

Digest

sha256:643da52e1…

Size

84.8 MB

Last updated

over 3 years ago

docker pull jeromegillard/mariadb-backup