I'm wondering if I'm missing something with my understanding of taking snapshots manually.
I'm doing some experimenting with the recent post's idea of booting multiple distos from a single btrfs partition.
In this test I'm working with Windows Managers and not Desktop environments and I'm following some guides more or less.
One is on Debian 12 and one is on Archlinux so I'm using EndeavourOS to make the install easier.
My current subvolume map looks like this:
So Debian has @deb and @deb_home, while Arch has the ones that start with @hypr.
I created the @snapshots to store my snapshots for both distros
My method is what I'm questioning. While booted into Debian I mounted /dev/nvne0n1p2 to a tmp directory like /mnt.
When I cd /mnt I see:
Here' how I manually create the snapshots:
I repeated the concept for the @deb_home.
It got me thinking that it really didn't matter which distro I was booted into, all the subvolumes could be snapshotted at the same time.
I've seen folks do their snapshots by referencing the directory structure for their source and not the actual subvolume. For example
Produces a R/O snapshot of the root, "/", directory of the currently booted system.
I can't see any real difference between:
if I'm booted into the Debian distro.
Thoughts ?
Jim A
I'm doing some experimenting with the recent post's idea of booting multiple distos from a single btrfs partition.
In this test I'm working with Windows Managers and not Desktop environments and I'm following some guides more or less.
One is on Debian 12 and one is on Archlinux so I'm using EndeavourOS to make the install easier.
My current subvolume map looks like this:
Code:
sudo btrfs su list / [sudo] password for jim: ID 256 gen 7864 top level 5 path @deb ID 257 gen 7504 top level 5 path @deb_home ID 258 gen 5800 top level 5 path @hypr ID 259 gen 5800 top level 5 path @hypr_home ID 260 gen 5800 top level 5 path @hypr_cache ID 261 gen 5800 top level 5 path @hypr_log ID 262 gen 336 top level 258 path @hypr/var/lib/portables ID 263 gen 337 top level 258 path @hypr/var/lib/machines ID 264 gen 869 top level 256 path var/lib/portables ID 265 gen 870 top level 256 path var/lib/machines ID 266 gen 5365 top level 5 path @snapshots ID 267 gen 5334 top level 266 path @snapshots/eos-hypr/root/@hypr-20230803_11:30 ID 268 gen 5336 top level 266 path @snapshots/eos-hypr/home/@hypr_home-20230803_11:30 ID 269 gen 5365 top level 266 path @snapshots/debian/root/@deb-20230803-1134 ID 270 gen 5366 top level 266 path @snapshots/debian/home/@deb_home-20230803-1134
I created the @snapshots to store my snapshots for both distros
My method is what I'm questioning. While booted into Debian I mounted /dev/nvne0n1p2 to a tmp directory like /mnt.
When I cd /mnt I see:
Code:
root@den-pc:/mnt# ls -l total 0 drwxr-xr-x 1 root root 280 Jul 31 09:14 @deb drwxr-xr-x 1 root root 18 Jul 31 16:31 @deb_home drwxr-xr-x 1 root root 122 Jul 31 10:44 @hypr drwxr-xr-x 1 root root 90 Jul 31 14:19 @hypr_cache drwxr-xr-x 1 root root 6 Jul 31 10:45 @hypr_home drwxr-xr-x 1 root root 252 Aug 3 17:44 @hypr_log drwxr-xr-x 1 root root 28 Aug 3 11:21 @snapshots
Code:
/mnt# btrfs su sn -r @deb @snapshots/debian/root/@deb-20230805-0546 Create a snapshot of '@deb' in '@snapshots/debian/root/@deb-20230805-0546'
It got me thinking that it really didn't matter which distro I was booted into, all the subvolumes could be snapshotted at the same time.
Code:
cd /mnt btrfs su sn -r @deb @snapshots/debian/root/@deb-20230805-0546 btrfs su sn -r @deb_home @snapshots/debian/home/@deb_home-20230805-0546 btrfs su sn -r @hypr @snapshots/eos-hypr/root/@hypr-20230805-0551 btrfs su sn -r @hypr_home @snapshots/eos-hypr/home/@hypr_home-20230805-0551
Code:
btrfs su sn -r / @snapshots/test/@_20230805
I can't see any real difference between:
Code:
btrfs su sn -r / @snapshots/test/@_20230805 and btrfs su sn -r @deb @snapshots/test/@_20230805
Thoughts ?
Jim A
Comment