When I use btrfs and snapshots manually, after installation I usually
and
shows me the @ and @home subvolumes. I then use
to hold hold my snapshots. This produces a level 5 subvolume for the snapshots. Then the process for taking a set of snapshots becomes:
I have watch youtubers do it as below, but that creates the snapshots as a level 256, i.e. a subvolume under @.
If you list the subolumes you see that is has created level 256 subvolumes
Other than worrying about the syntax of the commands you use, is there any advantages or disadvantages?
Code:
mount /dev/sda2 /mnt
Code:
ls /mnt
Code:
btrfs su cr /mnt/@snapshots mkdir /mnt/@snapshots/{root,home}
Code:
sudo su mount /dev/sda2 /mnt btrfs su sn /mnt/@ /mnt/@snapshots/root/"today's date" btrfs su sn /mnt/@home /mnt/@snapshots/home/"today's date"
Code:
sudo su mkdir -p /.snaphots/{root,home} btrfs su sn / /.snapshots/root/"today's date" btrfs su sn /home /.snapshots/home/"today's date"
Code:
.snapshots/@/"today's date" .snapshots/@home/"today's date"
Comment