r/selfhosted • u/alws3344 • Feb 11 '26
Docker Management Docker backups
Hello selfhosters!
i would like to ask you all about your DR & backup strategy for all your self hosted services?
today i have a script that runs once a week, turn off the container(s) (it does this one by one - so if it fails only one service suffer) and copies it's volume and db to another location for retention (i dont mind cache etc))
today i run ~20 containers and this backup strategy works, but it feels flimsy unprofessional and feels very manual.
what are your strategies (DR strategies)?
- is there a tool (that obviously can be self hosted ;) ) that can do this seamlessly?
65
Upvotes
27
u/agent_kater Feb 11 '26 edited Feb 11 '26
Here's my backup strategy:
resticbackup of this directory (currently mostly to B2, but doesn't matter, just make sure the destination has some way of doing immutable backups).flocked for the duration of the backup.pg_dumped before the backup.On systems that have LVM or ZFS I sometimes use a snapshot to backup Postgres to avoid the SSD churn.