So I was helping a guy debug some stuff and I thought I'd build up a VM with all the prep work needed to start the debug. This took a couple of hours. Then I manually took a snapshot of @ and @home. I thought that was smart. I could revert back to the post-prep work starting point at anytime.
So the first time I need to revert I did the following:
This worked great the first time, but when I needed to revert the second time, I found I had no prep-work-finished snapshots. Duh! I had moved them out the first time.
What I should have done was:
So the first time I need to revert I did the following:
Code:
sudo su - mount /dev/sda2 /mnt cd /mnt mv @ @_bad mv @home @home_bad mv @snapshots/root/prep-work-finished @ mv @snapshots/home/prep-work-finished @home reboot
What I should have done was:
Code:
sudo su - mount /dev/sda2 /mnt cd /mnt mv @ @_bad mv @home @home_bad btrfs su sn @snapshots/root/prep-work-finished @ btrfs su sn @snapshots/home/prep-work-finished @home reboot
Comment