Docker container to dump MariaDB databases
10K+
The container is designed to make a backup of MariaDB databases using mysqldump.
Example docker-compose.yml, that assumes you MariaDB container is called mariadb and runs in a network
of the same name:
version: '2'
services:
backup:
container_name: mariadb-backup
image: registry.gitlab.com/radek-sprta/docker-mariadb-backup
environment:
- CRON_TIMER=@daily
- MARIADB_HOST=mariadb
- MARIADB_PASSWORD=secret
- MARIADB_PORT=3306
- MARIADB_USER=root
volumes:
- "/var/lib/backup:/backup"
networks:
- database
restart: unless-stopped
networks:
database:
external:
name: mariadb
For the container to work, you need to declare several environment variables.
How often should the dumps be made. Uses cron time definition (such as '0 5 * * 0'). Defaults to @daily.
Host to connect to.
Password of the backup user.
Port to connect to.
User to perform the backup. Needs to have the necessary permissions.
For information on how to contribute to the project, please check the Contributor's Guide.
[email protected] incoming+radek-sprta/[email protected]
GNU General Public License v3
This package was created with Cookiecutter.
Content type
Image
Digest
sha256:bef751eda…
Size
23.3 MB
Last updated
about 2 years ago
docker pull rsprta/mariadb-backup