I did his when I moved from unraid because I wanted better infra as code for my dockers etc. Kept unraid with all my drives and use NFS mounts from another machine with proxmox that runs a VM for my dockers
- Posts
- 9
- Comments
- 365
- Joined
- 2 yr. ago
- Posts
- 9
- Comments
- 365
- Joined
- 2 yr. ago
I use a docker container that uses the MySQL/postgress dump command to create database dumps every hour with a retention policy. The dump is placed into docker data directory.
My docker data directories are in a parent directory on the host.
Borgbackup then runs the backup on this one directory. Like the other reply mentions, this is probably overkill since the database doesn't isn't being written too that intensivley but the resources needed to do this are minimal so its not a big deal once you know how to set it up.
https://github.com/Martlark/pg_dump
https://github.com/fradelg/docker-mysql-cron-backup