Packages
Docker¶
Docker images are created with the following tags:
latest
: latest stable versionmajor
,major.minor
andmajor.minor.rev
tagsedge
: unstable development version
It is recommaded to use docker compose
:
Example docker compose fil with two databases and a backup runner container
Run a custom command:
services:
db-backup:
image: ghcr.io/burgdev/db-backup-runner:next-alpine
restart: unless-stopped
container_name: docker-db-auto-backup
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro" # required
- ./backups:/tmp/db_backup_runner # required, backup directory
$ docker compose up # start services
$ docker compose run db-backup [OPTIONS] COMMAND [ARGS]... # (1)!
- Run
db-backup-runner
subcommands.
It is also possible to run it with docker directly:
Pull latest docker image
$ docker pull ghcr.io/burgdev/db-backup-runner:latest
$ docker run --rm -it \
-v /var/run/docker.sock:/var/run/docker.sock:ro \
-v ./backups:/tmp/db_backup_runner ghcr.io/burgdev/db-backup-runner:latest \
backup --project my-project
Tip
A --project
name is needed or the --global
flag in order to find the backup containers.
PyPi¶
The script is also published as PyPi package.
Run it as uv
tool:
Install it in isolated environment with pipx
: