I have quite a lot of snapshot on some btrfs volume, an I would like to know how much each snapshot take as space, so I will know when and were there is important changes.
sudo btrfs subvolume show /home/
/
Name: <FS_TREE>
UUID: -
Parent UUID: -
Received UUID: -
Creation time: -
Subvolume ID: 5
Generation: 1181373
Gen at creation: 0
Parent ID: 0
Top level ID: 0
Flags: -
Snapshot(s):
.snapshot/_0
.snapshot/_1
.snapshot/_2
.snapshot/_3
.snapshot/_4
...
but if I use du
they report the whole space
du -sh /home/.snapshot/*
1,2T /home/.snapshot/_0
1,2T /home/.snapshot/_1
1,2T /home/.snapshot/_2
is there a way to discover which difference is there, in space, between _1 and _2
Edit: NB : I have been using btrfs-list successfully to simply show snapshot size
sudo btrfs sub show /home/.snapshot/_0
instead. It should show usage stats at the end. – ajgringo619 Apr 14 '22 at 18:43