Hello there! Here’s the thing: I got some old HDD for my Debian home server, and now that I have plenty of disk space I want to keep a backup of the OS, so that if something accidentally breaks (either SW or HW) I can quickly fix it.
now the question is: which directory should I include and which should I exclude from the backup? I use docker a lot, is there any docker-specific directory that I should back up?
I back up all user data, for me that’s some folders in
/var
, all of/etc
(don’t need everything, but it’s small enough), mysqldumps and pgsqldumps of my databases and the output ofdpkg --get-selections
. And the backup script itself.Everything is rsynced to a server in another location.
I want to switch to Borg backup but haven’t found the time yet.
I recommend Borgmatic, a declarative way to set up borg backups. I find it much nicer than a having a
backup.sh
script and the configuration is really straight-forward.This is actually very interesting! I’ll gladly look into it, thank you very much!