Comment on Need help understanding a back-up script

un_ax@lemmy.sdf.org ⁨1⁩ ⁨year⁩ ago

If you want to get more in depth, I’ve been using this container:

github.com/jareware/docker-volume-backup

It can be setup in the same compose or in it’s own, and it supports pre/post commands if you want to dump a db or stop a container before backup.

Additionally, Setting a post backup command like in their docs:

POST_BACKUP_COMMAND: “docker run --rm -e DRY_RUN=false -e DAILY=3 -e WEEKLY=1 -e MONTHLY=1 -v /backup:/archive ghcr.io/jan-brinkmann/docker-rotate-backups”

Lets you specify the number of backups retained per period, E.G. 3 daily, 1 weekly, 1 monthly.

You could also mix and match.

source
Sort:hotnewtop