Contents
How do I rollback a btrfs snapshot?
To rollback to an old snapshot; boot into a restore medium (like the arch installer) and mount the Btrfs pool. To rollback “ ROOT ”, first delete or move the unwanted subvolume. The dates of the snapshot are stored under ${snapshot-number}/info. xml if the date needs to be checked.
How do I rename a btrfs subvolume?
Re: [SOLVED] How can I rename a BTRFS subvolume? You can just use mv. Remember to update any references to the old name in e.g. fstab/boot configs/scripts/etc. Making lemonade from lemons since 2015.
How does btrfs snapshot work?
A snapshot is a virtual copy of the filesystem’s contents; it can be created without copying any of the data at all. So Btrfs makes it possible to group part or all of a system’s storage into a big pool, then share that pool among a set of filesystems, each with its own usage limits.
How to roll back to old BtrFS snapshots?
Rollback Snapshots To rollback to an old snapshot; boot into a restore medium (like the arch installer) and mount the Btrfs pool. To rollback “ROOT”, first delete or move the unwanted subvolume. btrfs subvolume delete /mnt/Butters/ROOT
How to rename BtrFS snapshots with the same name?
If you decide you don’t need the mangled subvolume anymore you can delete it and rename the snapshot with the same name as the mangled subvolume, so you don’t have to change configuration files like /etc/stab. Use our old friend the mv command for renaming:
How to manage and manage BtrFS snapshots and rollbacks on Linux?
In “ How to Manage Btrfs Storage Pools, Subvolumes And Snapshots on Linux (part 1) ” we learned how to create a nice little Btrfs test lab, and how to create a Btrfs storage volume. Now we’re going to learn how to make live snapshots whenever we want, and how to roll the filesystem back to any point to any arbitrary point in time.
Where do I find the subvolume ID in Btrfs?
Go back to the blkid example ( in part 1) to get the correct label or UUID, and then fetch your subvolume ID from the btrfs subvolume list command. Put it all together and your /etc/fstab entry looks like this: Run mount /btrfs to test it.
https://www.youtube.com/watch?v=8yDkE7l_Usc