• Zeroc00l@sh.itjust.works
    link
    fedilink
    arrow-up
    34
    ·
    7 天前

    Novice homelaber here, is this just a case of apt update & upgrade or is there different commands for security and kernel updates? Also what’s your preferred backup/restore software? Thanks!

    • nomad@infosec.pub
      link
      fedilink
      arrow-up
      7
      arrow-down
      1
      ·
      7 天前

      Kernel updates are usually held back and need to be selected manually. E.g. apt-get install linux-image-amd64.

      I prefer rsync for private backups and employ bareos in my company for all servers.

    • Ghoelian@piefed.social
      link
      fedilink
      English
      arrow-up
      28
      ·
      7 天前

      Nope it’s just apt update & upgrade. Iirc apt tells you when the kernel was updated and needs a reboot as well.

          • JargonWagon@lemmy.world
            link
            fedilink
            arrow-up
            1
            ·
            edit-2
            7 天前

            Your note is very interesting about the difference between the commands and how autoremove will automatically remove stuff before or after the upgrade is performed. Should it always be done after, or are there instances when running it before is more beneficial? Is there any need to do both like this:

            # sudo apt --update --autoremove upgrade -y && sudo apt autoremove -y
            
            
            • Arthur Besse@lemmy.ml
              link
              fedilink
              English
              arrow-up
              2
              ·
              7 天前

              I can’t really imagine a benefit to --autoremove except for keeping old packages a bit longer before removing them.

              Eg, if you run apt --update --autoremove upgrade -y once a day you’ll keep your prior-to-currently-running-version kernel packages a day longer than if you ran autoremove immediately after each upgrade.

              To make things more confusing: the new-ish apt full-upgrade command seems to remove most of what apt autoremove wants to… but not quite everything. 🤷

        • Samsy@lemmy.ml
          link
          fedilink
          arrow-up
          3
          ·
          edit-2
          7 天前

          I configured restic once, forget about it and saved my files because it was making backups since forever.

        • zr0@lemmy.dbzer0.com
          link
          fedilink
          English
          arrow-up
          1
          ·
          7 天前

          Oh, never heard about it. A quick research showed me that restic is a very viable solution. Thanks for mentioning it, I added it to my comment.

          While researching, I also came across a fancy WebUI, which is mostly what non-CLI users want: backrest

          • Ekpu@lemmy.world
            link
            fedilink
            arrow-up
            1
            ·
            edit-2
            5 天前

            I am using restic and backrest on my yunohost server and I really like it! It is really set up and forget for me. Only the uploads to backblaze b2 are still triggered manually. Also did a full recovery from the backblaze repo (downloaded locally) without problems.

            Also just now heard about Zerobyte it is a backup solution based on restic and looks very good!