Saturday, May 11, 2024
 Popular · Latest · Hot · Upcoming
4
rated 0 times [  4] [ 0]  / answers: 1 / hits: 4673  / 2 Years ago, mon, july 4, 2022, 2:13:50

15 years ago GoBack came out which let Windows users revert changes and restore a computer to a previous state. It did this by imposing a journaling system underneath the OS - at the block level, not the file level - and letting you roll back changes.



Is there anything like that for Linux? It's easy to do this inside VirtualBox, but I'd like this to be for my main top-level machine.



How easy would it be to make a virtual machine be one's normal machine? How would one go about this?


More From » backup

 Answers
5

What you describe is a feature known as filesystem snapshots. LVM implements this in the block layer, and the btrfs filesystem has it built into the filesystem itself. Practically speaking both are still not usable for the average person for several reasons:




  1. Current LVM snapshots perform badly when you create more than one, which rather limits their usefulness. This should be improved with the multi snapshot feature still being developed.

  2. btrfs is still in heavy development and not considered stable enough for production use

  3. There are no simple to use gui tools written to make use of these features



If you are feeling adventurous and want to play around with these systems, preferably in a throw away system you don't care if you blow up, then here's how:



For LVM, you will need to format the system to use LVM when you install. You should read the Ubuntu wiki entry on LVM. You use lvcreate -s to create a snapshot of the volume, then you can make changes, install packages, etc, and you can mount the snapshot to see the old state of files, and if you chose, revert the system to that state at the next boot with lvconvert --merge.



For btrfs, you need to use the btrfs filesystem, and then install the apt-btrfs-snapshot package. This package will automatically create a snapshot before apt modifies any packages, and provides a command line utility to view and manipulate the snapshots.


[#31201] Wednesday, July 6, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ravturtl

Total Points: 335
Total Questions: 132
Total Answers: 110

Location: Tanzania
Member since Wed, Feb 24, 2021
3 Years ago
ravturtl questions
Wed, Feb 22, 23, 19:16, 1 Year ago
Fri, Dec 3, 21, 22:16, 2 Years ago
Wed, Nov 3, 21, 07:30, 3 Years ago
Wed, May 19, 21, 17:31, 3 Years ago
;