Backup is a simple lightweight tool to backup your databases.
It parse any of your running container to find databases, connects to each one of them and execute a simple backup using native provided tools.
Supported databases :
It keeps :
To backup multiple databases, please provide db.backup.multiple label to the database container.
latest, 1.0 (Dockerfile)Here are supported environments variable and its definition :
CRONFIG : Crontab scheduling (default : "0 23 * * *")$ docker run -d --name backup \
-v //var/run/docker.sock:/var/run//docker.sock \
-v /path/to/backups:/opt/backups
xylphid/db-backup-n-sync:latest
version: "3"
services:
cron:
environment:
CRONFIG: "0 23 * * *"
image: xylphid/db-backup-n-sync:latest
volumes:
- //var/run/docker.sock:/var/run/docker.sock
- backup-volume:/opt/backups/
- backup-nas-volume:/opt/backups-dist/
On swarm, you may use this image on global mode.
version: "3"
services:
cron:
deploy:
mode: global
restart_policy:
condition: on-failure
update_config:
delay: 20s
failure_action: rollback
monitor: 30s
order: start-first
environment:
CRONFIG: "0 23 * * *"
image: xylphid/db-backup-n-sync:latest
volumes:
- //var/run/docker.sock:/var/run/docker.sock
- backup-volume:/opt/backups/
This docker image inherits from xylphid/backup image.
Content type
Image
Digest
Size
60.9 MB
Last updated
about 6 years ago
docker pull xylphid/backup-n-sync:1.0