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?

you are viewing a single comment's thread
view the rest of the comments
[–] 4 points 1 year ago (3 children)

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 of dpkg --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.

  • source
  • hideshow 3 child comments
  • [–] 2 points 1 year ago

    I want to switch to Borg backup but haven’t found the time yet.

    Since you haven't switched yet, perhaps consider restic too. I looked into Borg when I was trying to decide which backup software to use, but ended up deciding on restic instead and using resticprofile to ease implementation.

  • source
  • parent