I use Btrfs with Parabola GNU/Linux-libre, a derivative distribution of Arch Linux. I use no snapshot management tools such as Snapper or Timeshift. I keep my system minimal and tidy. Everything is boring and predictable. I do not bork my system by mistake, except when something breaks after an odd update, usually once or twice per year. When it happens, I find a workaround (usually something needs to be downgraded) and file a bug report if there is none.

When I need to tinker with something that can possibly go out of control, like installing a new package for a program that I want to try out and I am not sure I will want to keep it, I take a snapshot of my current “pristine” system and boot into it. In the snapshot copy of my system I do all the dirty stuff I want to try out. When I am satisfied with my findings, I reboot into the main subvolume and delete the snapshot.

It seems to me that most people use Btrfs snapshots preemptively in case of unexpected failure. I use snapshots exactly when I know I am going to do something that can lead to instability or «OS rot». Am I the only one using Btrfs snapshots like this?

20 points

“Except when something breaks after an odd update once or twice per year”

You don’t need snapshots, except for the moments when you do. The point of snapshots is that they’re so cheap that you can let them roll on their own and only care about them the day your system breaks.

permalink
report
reply
3 points

A broken system is no big deal for me, I can easily get up and running after a failed update. My data is also mirrored to my Nextcloud instance.

permalink
report
parent
reply
1 point

You have to reboot yes, however only once. The step where you boot into your snapshot is redundant.

permalink
report
parent
reply
1 point

Yes, now I understand.

permalink
report
parent
reply
8 points

You’re not alone. I do use snapshots for failure protection but I also use it when I know I’m likely to induce a failure by running an experiment.

It’s also just as valid to not use the snapshot feature at all. Perhaps you value data integrity, for example, through the use of full checksums enabled by the design.

Your system and the software it runs belongs to you and is in your service.

permalink
report
reply

You can do (most) of this without rebooting by leveraging the btrfs support built into systemd-nspawn, which allows creating ephemeral data volumes to mess around in. It’s meant for containers, not the semi-Silverblue system you’ve set up, but it may save you time messing about with new tooling.

It should also be noted that although tools often miss support for it, almost any LVM2 filesystem can do snapshots if set up with enough free disk space for them.

I just use a package manager hook to set up btrfs timeshift snapshots whenever I do something to the root partition, but to each their own.

permalink
report
reply
2 points

systemd-nspawn is interesting. I never managed to try it out.

permalink
report
parent
reply
6 points

I’ve done that before when debugging system issues. Create a snapshot before and after the issue, and diff the files to see what changed.

I also took a snapshot before updating to a new version of Mint, realised it broke a bunch of stuff and rolled back.

Honestly, I wish btrfs was the default in many places since taking a snapshot is so cheap and easy.

permalink
report
reply
3 points

Why not do both?

I use a script in cron that uses timestamps as snapshot names, and deletes old ones. Then I also take a snapshot with a timestamp right before doing anything dumb.

You could even make a script called mksnap that figures out what zfs/btfs you’re in on the current folder and auto-snaps it.

permalink
report
reply
1 point

This is an option, but I really do not need periodic snapshots.

permalink
report
parent
reply

Linux

!linux@lemmy.ml

Create post

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

  • Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
  • No misinformation
  • No NSFW content
  • No hate speech, bigotry, etc

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

Community stats

  • 9.6K

    Monthly active users

  • 3.1K

    Posts

  • 35K

    Comments