I guess i would need to do it a couple of times in order to understand what I’m doing. Right now i just know i have a lot of snapshots.
A lot is relative. My main workstation currently has 1,660 snapshots on it.
Wow that’s a few more than i have. I actually will have to go back and watch the video on snapper and see if i can restore a snapshot because i find it hard to understand with out seeing it and doing it.
Same here, please share that video, I’ll watch and add it to @dalto steps and try.
I still didn’t understand how to mount a snapshot, how to list them, how to delete a snapshot and etc…
Understood that I’ll need to boot from the live ISO, mount the snapshot, replace the snapshot with the subvolume, then reboot… makes sense but still kind of insecure about it.
I’ll have to set up a VM
hm, root has only the current one, not sure why is that, the others seems to be fine
[marcelo@eos /]$ LANG=C sudo snapper -c root list
# | Type | Pre # | Date | User | Cleanup | Description | Userdata
---+--------+-------+------+------+---------+-------------+---------
0 | single | | | root | | current |
[marcelo@eos /]$ LANG=C sudo snapper -c home list
# | Type | Pre # | Date | User | Cleanup | Description | Userdata
---+--------+-------+--------------------------+------+----------+-------------+---------
0 | single | | | root | | current |
1 | single | | sex 27 ago 2021 17:00:49 | root | timeline | timeline |
[marcelo@eos /]$ LANG=C sudo snapper -c log list
# | Type | Pre # | Date | User | Cleanup | Description | Userdata
---+--------+-------+--------------------------+------+----------+-------------+---------
0 | single | | | root | | current |
1 | single | | sex 27 ago 2021 17:00:49 | root | timeline | timeline |
[marcelo@eos /]$ LANG=C sudo snapper -c cache list
# | Type | Pre # | Date | User | Cleanup | Description | Userdata
---+--------+-------+--------------------------+------+----------+-------------+---------
0 | single | | | root | | current |
1 | single | | sex 27 ago 2021 17:00:49 | root | timeline | timeline |
[marcelo@eos /]$ LANG=C sudo btrfs subvolume list /
ID 256 gen 641 top level 5 path @
ID 257 gen 641 top level 5 path @home
ID 258 gen 591 top level 5 path @cache
ID 259 gen 641 top level 5 path @log
ID 262 gen 26 top level 256 path var/lib/portables
ID 263 gen 27 top level 256 path var/lib/machines
ID 273 gen 607 top level 256 path .snapshots
ID 274 gen 472 top level 273 path .snapshots/1/snapshot
ID 275 gen 593 top level 257 path @home/.snapshots
ID 276 gen 594 top level 259 path @log/.snapshots
ID 277 gen 592 top level 258 path @cache/.snapshots
ID 278 gen 591 top level 277 path @cache/.snapshots/1/snapshot
ID 279 gen 593 top level 275 path @home/.snapshots/1/snapshot
ID 280 gen 593 top level 276 path @log/.snapshots/1/snapshot
ID 281 gen 595 top level 273 path .snapshots/2/snapshot
This file is pretty big so i send the log.
Edit: I set this up and has been running for a little while. I still have to figure out how to restore a snapshot but i think it’s all working. I get snapshots on boot and updates and installing or removing.
Edit2: I set my configs a little different for root and home. Like i say i have no knowledge on what is best practice because i need to understand how it works better.
Edit3: https://clbin.com/L8OYn
I’m also a newbie!
Strange - I find it the slowest of the filesystems I run… it has other purposes (like snaps) to focus on.
My experience:
- f2fs
- ext4
- xfs
- zfs
- btrfs
but not a BIG difference with any of them on my machines…
That is really strange
f2fs is such a strange filesystem. It performs well in some workloads and terrible in others.
Other than that, I think your ranking is pretty accurate.
I think xfs is better for large files?
Perhaps so - if ZFS didn’t cover the ground better, it would be a possibility. f2fs is noticeably quicker on a gen 4 nvme, but not enough to bother with beyond the testing installs I’ve done - for one thing rEFInd doesn’t have a module for reading it, so I have to run an extra /boot partition on ext4 to get going!
ZFS, on the other hand, is a major head-space taker to get it all set up - and completely worry free from there (not even fstab entries!) - not to mention has ALL the features that other systems try to provide.
But what is other advantage over ext4 ?
Snapshots are main one. Biggest one.
- snapshots
- snapshot replication
- subvolumes
- copy-on-write
- compression
- volume/device management - basically includes many of the features of raid/lvm
Theoretically, they also can run internal compression, a form of RAID, and small file optimizations. I think there are some more, but that’s what I recall on top of being a COW system (Copy on Write).
Booted into the live USB
Mounted /dev/sda4 (which is the BTRFS partition) in /mnt
moved the /mnt/@ to mnt/@old
then when I tried to sudo btrfs subvolume snapshot command, got an error about autofs, sorry but I don’t have the screenshot here
So I renamed back from @old to @ to fallback the changes
Kind of hard to help without the actual error
heheh sorry, I’ll try again and take a photo of the screen
Seems like big plus over ext4…
Maybe I should do clean install
Isn’t Timeshift easier ?