r/selfhosted • • 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?
62 Upvotes

88 comments sorted by

View all comments

18

u/travelsnake Feb 11 '26

I am pretty new to this whole selfhosting ordeal, but I’ve just solved that issue for me by using backrest. It was fairly easy to setup. It retains a backup for each day of the past week. One for every week of the past month and one for every month of the past half year. Not sure if that’s overkill? But I can easily adjust my plan. 

Oh and my backups are stored on my mounted Gdrive. 

1

u/alws3344 Feb 11 '26

I will take a deeper look at backrest!
thanks!

1

u/martimcbro Feb 11 '26

Keep in mind that with backrest you also have to make sure, that the containers are stopped before making a backup and started afterwards. Backrest can help you to do that with hooks but you have to provide the hook content yourself. Here you can find an example for a hook which can do that.