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?

  • Björn Tantau@swg-empire.de
    link
    fedilink
    arrow-up
    4
    ·
    18 hours ago

    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.

    • TurboLag@lemmings.world
      link
      fedilink
      English
      arrow-up
      6
      ·
      17 hours ago

      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.