This is your annual reminder to do a snapshot (timeshift or whatever you prefer) before doing relatively minor changes to your system.

I was supposed to be in bed now, but instead I am stuck troubleshooting xorg refusing to start after an apt-get dist-upgrade.

And as far as friendly reminders go, I should’ve given myself an unfriendly reminder beforehand, as it’s not the first time…

UPDATE: Fuck nvidia 545. All my homies hate nvidia 545. 535 4 lyf!

  • @[email protected]
    link
    fedilink
    4011 months ago

    BTW, nixos allows you to easily roll back to a previous generation on boot in case an update breaks something.

    Just sayin’ 😁

    • million
      link
      English
      811 months ago

      So does Fedora Silverblue for the record.

      It is a damn impressive feature to realize you just broke your install and are able to say “no problem”.

  • aard
    link
    fedilink
    3111 months ago

    Friendly reminder: just don’t buy nvidia

    • 柊 つかさ
      link
      2711 months ago

      Many already have nvidia before they start with linux. I’m still on my 1060 from 2018.

      • youmaynotknow
        link
        fedilink
        110 months ago

        Another problem is that most manufacturers of laptops directed at the Linux crowd, for some reason I will never understand, insist on punching Nvidia hardware instead of AMD/ATI. How does that help?

      • @[email protected]
        link
        fedilink
        111 months ago

        I had one before, then 2060, then 2080 and finally 6800 (current one), how is your nvidia experience right now compared to 2018? Any better?

        • 柊 つかさ
          link
          211 months ago

          I started with linux begin 2019. I just use xorg so I don’t know about wayland problems. I think a long time ago nvidia broke once and I switched to nvidia-dkms and it has worked fine since until recently where a mesa update broke xorg but I don’t think that has to do with nvidia. Getting CUDA to work might be trouble though (I think I briefly tried once).

    • Southern Wolf
      link
      fedilink
      211 months ago

      Unfortunately for those of us that use Cuda features, AMD just really isn’t that viable of an alternative. Anyone who’s had to deal with ROCM can attest to this…

    • @[email protected]
      link
      fedilink
      English
      20
      edit-2
      11 months ago

      I slept on BTRFS for years, until getting it by default in OpenSuse. I’m never going back. Snapshots and dedupes are killer features.

      I’m on Debian now, and I get an automatic before and after snapshot with every apt install.

      • @lal309
        link
        611 months ago

        How are you taking the snapshot automatically?

        • @[email protected]
          link
          fedilink
          English
          1311 months ago

          Honestly, I’m not 100% sure how to set it up, because I let Spiral Linux handle this for me. Spiral Linux is basically a Debian spin, not a full distro. It installs Debian and preconfigures some reasonable defaults, like BTRFS, backported kernels, virtualization support, and some other niceties. The end result is a pure Debian system, operating solely on Debian repos.

          If you’re already running Debian, or want to install from stock Debian media, there are instructions from various places. The gist is that the snapper package automatically sets this up, though you might need to manually configure some subvolumes. Here is a very detailed guide that starts from zero. It is mildly opinionated so it’s a little hard to tell what the minimal config would be: https://medium.com/@inatagan/installing-debian-with-btrfs-snapper-backups-and-grub-btrfs-27212644175f

          Search for the part where they mention apt.conf.d.

          • @lal309
            link
            511 months ago

            Ah okay well I appreciate the response anyways. I’m also struggling to figure how to snapshot my /home since I put it in a different partition during install. Timeshift is “unable to see it”.

            • ReallyZen
              link
              fedilink
              1
              edit-2
              11 months ago

              Tumbleweed does it, comes preconfigured out of the box. TBH I’m trying to get the same on Arch & fail. The snapshot-before-change are easy enough, but reverting is where I fail.

              • @lal309
                link
                211 months ago

                Have you tried to manually specify the subvolume id (sudo btrfs subvolume list /) of the snapshot you want to restore to in /etc/fstab?

                When I was distro hopping I believe Garuda Linux took snapshots and was easily able to restore a few times. Maybe you can reverse engineer what they’ve done???

                I’m running Nobara right now for my gaming setup but I’m half tempted to try TW.

  • Liforra
    link
    fedilink
    2411 months ago

    When u realize you dont even use a backup software rn

    • TimeSquirrel
      link
      fedilink
      21
      edit-2
      11 months ago

      I just copy my whole-ass home dir to an external drive every so often like a caveman.

      • @KISSmyOS
        link
        10
        edit-2
        10 months ago

        deleted by creator

      • ReallyZen
        link
        fedilink
        1
        edit-2
        11 months ago

        Which you should absolutely do even if you snapshot the eff out of your system. What about hardware failure, eh? Can’t snap that nvidia shit can you?

  • @frankenswine
    link
    1411 months ago

    Or you opt for an operating system that lers you roll-back whole generations for when such a thing happens (GNU Guix for the win!)

  • SavvyWolf
    link
    fedilink
    English
    1311 months ago

    Remember to check your three "B"s; your balls, your breasts and your backups.

  • @[email protected]
    link
    fedilink
    911 months ago

    Linux noobie here. Any tips on what to search for for instructions on how to do this? Bonus points if it has a GUI and is easy to use.

    • @[email protected]OP
      link
      fedilink
      9
      edit-2
      11 months ago

      Timeshift. It has an easy to understand GUI that doesn’t really need much of an intro: You create snapshots of your system files and configs that can be restored if/when you bungle it up.

      • @[email protected]
        link
        fedilink
        211 months ago

        Never used it myself and i am still a linix noob but what is the restore process if your OS isnt bootable?

        If their like a rescue environment you boot into or something?

        • @[email protected]OP
          link
          fedilink
          311 months ago

          There are many approaches, depending on what broke. In my case the system was fine, just xorg being completely borked. So I logged into the console and fixed it.

          If regular console doesn’t work, something really went bad during boot, for which there’s single-user mode which is kind of similar to safe mode from Windows 98 (I’m sure there’s something similar in newer windows versions).

          And of that doesn’t work, there’s the minimalistic rescue shell.

          And if that doesn’t work, you can boot from a USB or some other external media and try to fix your system from that, maybe even using chroot to use the system somewhat normally.

      • @[email protected]
        link
        fedilink
        English
        111 months ago

        Timeshift works best if you use BTRFS for your root partition because snapshots can be taken instantly. I have mine setup to automatically take a snapshot every day.

    • youmaynotknow
      link
      fedilink
      311 months ago

      As long as your file system is on BTRFS, timeshift is, I O, the easiest backup app for Linux, specially if you’re just getting your feet wet in it.

      • @[email protected]
        link
        fedilink
        311 months ago

        Why does Timeshift only support btrfs? Is it just a lack of developers? LVM supports snapshots too, even if you’re just using ext4. ZFS supports snapshots too.

  • antsu
    link
    fedilink
    911 months ago

    Timeshift with BTRFS kicks ass. I have mine set for daily snapshots, retained for a week. Only the changes between snapshots are stored, so the extra disk usage is minimal, and easily justified by the peace of mind in case of fuck-ups or broken updates.

    • jelloeater - Ops MgrA
      link
      English
      311 months ago

      Just make sure you back up your stuff to a second disk❤️

    • @[email protected]
      link
      fedilink
      1
      edit-2
      11 months ago

      Only the changes between snapshots are stored, so the extra disk usage is minimal

      If you want to use a similar approach for backups, Borgbackup is a pretty nice piece of software. I have two backups of my most important files: One on my NAS at home, and one “in the cloud” on a storage VPS (ends up way cheaper than using S3, B2 or anything like that).

        • @[email protected]
          link
          fedilink
          2
          edit-2
          11 months ago

          I’ve got one with HostHatch that’s 10TB of space for $10/month. It was an offer they had during Black Friday 2020. They had a similar offer during Black Friday 2023 but I think it was around $20/month, paid yearly.

          I live in the San Francisco Bay Area and my storage server is in Los Angeles, which is around 10ms round-trip ping time from my home internet connection.

          Hetzner is good too. They have relatively cheap “storage boxes” that are a shared environment rather than a VPS. You don’t get proper SSH access, but they do support FTPS, SFTP, Samba, Borgbackup, Restic, rclone, rsync and WebDAV. https://www.hetzner.com/storage/storage-box

          Borgbackup encrypts the backups, so the host won’t be able to actually view your backups.

  • Extras
    link
    fedilink
    711 months ago

    Is it dumb that I only backup my docs and anything else I think is important? I can rebuild fairly quickly if something would happen. I ask since I know that people backup a variety of their directories

    • @[email protected]
      link
      fedilink
      711 months ago

      If you’re comfortable, you’re fine. Anything more would just be to speed up the rebuild, so it’s less important if you don’t mind taking the time.

  • @[email protected]
    link
    fedilink
    511 months ago

    I will never install a Linux desktop without a snapshotting root filesystem ever again. Nvidia driver updates, /boot getting too full during kernel or driver updates, a bad update of pipewire half a year ago, and more I can’t remember. Was always able to boot to previous snapshot of the OS, and address whatever it was. Some ZFS here, some BTRFS there… and my small fleet of Linux desktops are as easy to recover as any immutable OS. Better even, because snapshots allow me to pull individual items or things between states easily, too.

  • palordrolap
    link
    fedilink
    311 months ago

    Am on LMDE6 with an ancient Nvidia card. Because I’ve had to resort to using the Nvidia OEM driver installer (which can be a pain to use), installed Xorg updates lurk quietly until a full reboot at which point they generally cause offloading of GPU tasks to the CPU instead because it hasn’t figured things out properly.

    Timeshift has been useful at least twice in getting me back to a less stressed system.

    I think I have a procedure figured out now though (documented here for posterity even if it helps no-one today):

    1. Make a Timeshift snapshot just in case

    2. Install the pending Xorg update

    3. Reboot so it’s fully active

    4. Check to see if GPU tasks are being offloaded to the CPU by doing something graphics intensive and noting temperatures or usage%. If not, a miracle has occurred and continuing isn’t needed.

    5. sudo remove the execute permission on /usr/bin/Xorg so that it can’t immediately be restarted by subsystems designed to protect the average Mint user from command lines and consoles.

    6. Kill Xorg

    7. Log in through a console, via Ctrl+Alt+F1 or similar if not dumped to one by killing Xorg.

    8. Re-install the Nvidia OEM driver

    9. sudo put the aforementioned execute permission back on

    10. Repeat steps 2 and 3 and hope that this time the GPU is doing the work.

    Reboots ought to be replaceable by running specific commands, but I haven’t gone deep enough into things to know the right things to do there. Reboots are quick and easy enough.

    Obvious intermediate steps include not doing anything else important during this and saving important work before starting.

    e.g. did you know it’s possible to bookmark all open tabs? Well worth looking into.

  • @danielfgom
    link
    English
    211 months ago

    Definitely. I use Timeshift on Linux Mint Debian Edition and set it to take weekly snapshots. Saved my bacon about 2 weeks ago when a kernel update borked my system.

    • JackGreenEarth
      link
      fedilink
      English
      211 months ago

      It takes 6 hourly snapshots for me, a few daily, 3 monthly, and once on boot. No idea how to restore them, or if it’s even backing up all the data I want, but I can figure that out when I lose my data, right?

      • @danielfgom
        link
        English
        111 months ago

        It doesn’t back up any of your data unless you selected your home folder to be included. The default settings only back up the actual system files.

        If you have an issue, reboot the pc and when you see the text aopear for options, select that with the arrow key and hit enter.

        Boot into a previous version in recovery mode. Then when logged in, open Time shift, choose an older backup when you know your system was working, then click the restore button.

        It will bring your system back to that point in time. Reboot and you should be ok

  • @[email protected]
    link
    fedilink
    1
    edit-2
    11 months ago

    Neat little guide (Arch, systemd) to set up automatic snapshots when you run a pacman/yay update and the option to chose snapshots in grub during startup. Really useful.

  • @[email protected]
    link
    fedilink
    English
    111 months ago

    The nvidia 545 drivers are an absolute dumpster fire. Even for beta drivers they are easily the worst drivers I’ve ever used. They claim to fix the vrr gsync bug tho… so as soon as they fix gestures broadly everything else, maybe they’ll be good

    • @[email protected]OP
      link
      fedilink
      3
      edit-2
      11 months ago

      I’ll Wayland when it becomes the way of the land. In other words: Not yet. Plus, the original point still stands.

            • @TheGrandNagus
              link
              711 months ago

              Don’t take this the wrong way, but are you like… new to human interaction or something?

              All they said was basically “Friendly reminder, guys, remember to do regular backups, because my system is borked and I’d have loved to roll back to a previous snapshot if I had one.”

              Sounds to me like there was a point. And it also does sound like a PSA.

              • @Potatofish
                link
                111 months ago

                I asked why not Wayland. I don’t care to circle back to his PSA.