Fault Tolerance

Hello all and thank you for the assistance in advance! As humans, we tend to stick with what we are familiar with. As a Windows user jumping ship to Linux, I have AOMEI as a backup/restore system that allows me to restore on the same drive if something corrupts, I make a mistake, what have you. Likewise, I even have the ability to restore my image to a new drive. I saw Timeshit as an easy way to manage btrfs snapshots and sub volumes, along with Clonezilla (Clonezilla lists btrfs as supported on their website) to do entire system backups (from a Windows perspective this includes all folders on the drive, including Downloads, Users, Etc) I know Bazzite uses btrfs and to use btrfs features without any tools require all CLI commands, which is very cumbersome and unintuitive to execute. I also saw that Bazzite doesn’t support Timeshift or snapper. Here are my actual questions: 1. Other than rolling back and using Pika Backup for home directory, is it possible to use Clonezilla to make system backups if I need to move it to a new drive? 2. How would I go about booting from a snapshot, like you can using Timeshift? It seems the GUI with Timeshift is very intuitive and user friendly.
26 Replies
asen23
asen233mo ago
something like timeshift is not required, you only need to backup your home drive the rest is already managed through ostree if you want to "snapshot" your os you can use ostree pin
trioxin245
trioxin245OP3mo ago
Is “ostree pin” the command? Could I get the command to do the pin action? Do you know if Clonezilla would work in taking system back ups so if an actual hard drive failure where to happen I could restore from an external drive to a new drive that I replace? Ah I found it. sudo ostree admin pin 0
asen23
asen233mo ago
clonezilla would work, but you realistically only need to backup your home folder
termdisc
termdisc3mo ago
Clonezilla would work because it backs up everything as an image of the entire drive
trioxin245
trioxin245OP3mo ago
Thank you so much, @asen23 ! Last question, if you accidentally uninstall a program and all the configurations get blown away with it, I could restore the home folder and it would recover it?
asen23
asen233mo ago
usually uninstalling program doesnt remove config
trioxin245
trioxin245OP3mo ago
I’m sorry for the dumb questions, Linux is very alien to me at the moment.
asen23
asen233mo ago
depend on the program tho
termdisc
termdisc3mo ago
the package manager (flatpak or ostree or distrobox stuff) do not have knowledge of your config files
asen23
asen233mo ago
np, i was windows user too not long ago
termdisc
termdisc3mo ago
your configs will remain in place, for better or worse
trioxin245
trioxin245OP3mo ago
Oh! Is the command sudo ostree admin pin 0 a manual process or is there something available to make snapshots an automated thing, in case I blow something up unintentionally? I promise that’s my last question. lol.
asen23
asen233mo ago
ostree will always keep minimum 2 deployment, your current one and the one before that it will create snapshot everytime you install or update through rpm-ostree
trioxin245
trioxin245OP3mo ago
Oh beautiful!
asen23
asen233mo ago
so in case your current deployment wont boot, you can still boot the previous one
termdisc
termdisc3mo ago
ostree is also only for your underlying OS and layered packages. you really shouldn't need to pin all that often unless you are specifically doing something that carries a higher than normal risk of breaking something and if you're doing something that often that would necessitate pinning the ostree deployment, reconsider what you are doing
trioxin245
trioxin245OP3mo ago
I appreciate it!
termdisc
termdisc3mo ago
ostree does not manage user data
asen23
asen233mo ago
i do recommend to pin one working deployment tho, just for extra precaution
trioxin245
trioxin245OP3mo ago
And to pin one is the sudo pin admin 0 command? If I need to select a deployment, how would I select the working one? Is that just from the grub menu?
asen23
asen233mo ago
you can select through grub
trioxin245
trioxin245OP3mo ago
Wonderful!!
asen23
asen233mo ago
you also can do rpm-ostree rollback to go from 0 to 1 and mark the old one as default
trioxin245
trioxin245OP3mo ago
You guys are awesome! Thank you so much!!
asen23
asen233mo ago
all of this are available in the docs btw https://docs.bazzite.gg/
Home
Bazzite is a custom image built upon Fedora Atomic Desktops that brings the best of Linux gaming to all of your devices - including your favorite handheld.
asen23
asen233mo ago
yw
Want results from more Discord servers?
Add your server