Skip to content

A Docker image that wraps mariadb-dump/mysqldump and rsnapshot to provide a drop-in solution for periodic snapshots of MariaDB/MySQL databases with automated rotation and retention. The primary goals of docker-mariadb-snapshot are reliability, simplicity, and ease of use.

License

Notifications You must be signed in to change notification settings

JacobSanford/docker-mariadb-snapshot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-mariadb-snapshot

docker-mariadb-snapshot logo

A Docker image that wraps mariadb-dump/mysqldump and rsnapshot to provide a drop-in solution for periodic snapshots of MariaDB/MySQL databases with automated rotation and retention.

The primary goals of docker-mariadb-snapshot are reliability, simplicity, and ease of use.

Documentation

Read the Full documentation

Quick Start

Docker CLI

Run a simple snapshot:

docker run --rm \
  -e DB_HOSTNAME=mysql.example.com \
  -e DB_USER_NAME=snapshot_user \
  -e DB_USER_PASSWORD=secure_password \
  -e DB_DATABASES=myapp \
  -v /output/path:/data \
  jacobsanford/docker-mariadb-snapshot:1.x hourly

Docker Compose

Add this service to your docker-compose.yml:

services:
  [...]

  mariadb-snapshot:
    image: jacobsanford/docker-mariadb-snapshot:1.x
    restart: "no"
    environment:
      DB_HOSTNAME: mysql
      DB_DATABASE: myapp
      DB_USER_NAME: root
      DB_USER_PASSWORD: changeme
    volumes:
      - ./snapshots:/data

Run snapshot: docker compose run --rm mariadb-snapshot daily

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

A Docker image that wraps mariadb-dump/mysqldump and rsnapshot to provide a drop-in solution for periodic snapshots of MariaDB/MySQL databases with automated rotation and retention. The primary goals of docker-mariadb-snapshot are reliability, simplicity, and ease of use.

Topics

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors 2

  •  
  •