• 0 Posts
  • 7 Comments
Joined 1 year ago
cake
Cake day: June 15th, 2023

help-circle




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

    https://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.