ELI5 - Process for backing up docker configs reddit / selfhosted ---------------------------------------------------------------------- BoisterousBlowfish · 2023-12-03 14:28 Hello, I'm doing my darndest to learn docker but I'm a bit lost in the sauce for understanding how to best structure the setup for backing up and portability. My current approach is that I keep my docker compose yaml file in git (just using 1 for the time being) and all of my container configs live in another directory outside of this git repo. I understand if I were to move systems or my system were to fail, I'd need these docker config folders to setup my containers on a new system. As for backing the config folders up, I plan to relocate them to a shared folder on my NAS. Is this the right way to do this or is there a better way to approach this? Hopefully the lingo is correct, still learning. Thanks a ton! ---------------------------------------------------------------------- EndlessHiway · 2023-12-03 14:55 [This works for me.](https://wiki.opensourceisawesome.com/books/backing-up- docker/page/backup-docker-data-and-configs) ---------------------------------------------------------------------- Sgt_ZigZag · 2023-12-03 15:12 I keep my container data/volumes locally on the same host and every hour I back this up using autorestic to a folder on my NAS. I like this structure because the data is local to my host VM running on an SSD and if my NAS disconnects or has an issue the containers stay alive. ---------------------------------------------------------------------- BoisterousBlowfish · 2023-12-03 16:01 That's not a half bad idea, thanks ---------------------------------------------------------------------- BoisterousBlowfish · 2023-12-03 16:02 Not a huge fan of having to restart the containers but i reckon i could make . Thanks!it work ---------------------------------------------------------------------- ElevenNotes · 2023-12-03 19:19 --reflink, no need to stop containers ---------------------------------------------------------------------- root-node · 2023-12-04 10:03 I use Nautical Backup - https://github.com/minituff/nautical-backup ---------------------------------------------------------------------- ID100T · 2023-12-04 12:03 Borgmatic is great.