I needed to create a snapshot of my system:
Now I am ready to experiment. IF I don't like what I see, or decide that I don't need kvm virtual machines, then I can roll back in less than 5 minutes and nothing is lost.
Total time: less than a minute.
Code:
:~$ [FONT=courier new][B]sudo -i[/B][/FONT] [sudo] password for jerry: :~# mount /dev/disk/by-uuid/47a4794f-b168-4c61-9d0c-cc22f4880116 /mnt :~# vdir /mnt/snapshots/ total 0 drwxr-xr-x 1 root root 270 Jul 2 14:43 @_20180705 drwxr-xr-x 1 root root 270 Jul 2 14:43 @20180711 drwxr-xr-x 1 root root 10 May 3 23:06 @home_20180705 drwxr-xr-x 1 root root 10 May 3 23:06 @home20180711 drwxr-xr-x 1 root root 10 May 3 23:06 @home_P5132 drwxr-xr-x 1 root root 10 May 3 23:06 @home_precont drwxr-xr-x 1 root root 270 Jun 20 15:28 @_P5132 drwxr-xr-x 1 root root 270 Jul 2 14:43 @_precont root@jerry-Aspire-V3-771:~# [FONT=courier new][B]btrfs su snapshot -r /mnt/@ /mnt/snapshots/@20180714[/B][/FONT] Create a readonly snapshot of '/mnt/@' in '/mnt/snapshots/@20180714' :~#[FONT=courier new][B] sync[/B][/FONT] :~# [FONT=courier new][B]btrfs su snapshot -r /mnt/@home /mnt/snapshots/@home20180714[/B][/FONT] Create a readonly snapshot of '/mnt/@home' in '/mnt/snapshots/@home20180714' :~# [FONT=courier new][B]sync[/B][/FONT] :~# umount /mnt :~# exit logout exit
Total time: less than a minute.
Comment