# zfs list zroot/ROOTFS/home
NAME USED AVAIL REFER MOUNTPOINT
zroot/ROOTFS/home 111G 72.9G 92.3G /home
# zfs list -t snapshot
NAME USED AVAIL REFER MOUNTPOINT
zroot/ROOTFS/home@20231029 18.6G - 103G -
[oddmin@oh3p ~]$
Available space doesn’t matter, because it’s not a mountpoint, it only shows you how much space is being utilized (“data saved / retained”) by the snapshot. In the zfs list of the mountpoint, you see it uses 111 GB on the pool and has 72 GB available to write on the pool.
The used space includes all the snapshots it has. The refer column is the actual amount of data in the mountpoint (i.e. if I did an rsync of /home to somewhere else, I’d be copying ~92.3G). The snapshot uses 18.6G and there’s only 1, so if you substract 18.6 from 111, you get about 92.4G, almost exactly what ZFS is reporting (this is just a roundup from bytes).
The fact that you see the snapshot is good. ZFS works by having the snapshots always mounted in the root of the volume you take a snapshot of.
For example, I can browse all the data from home@20231029 snapshot by doing ls -l /home/.zfs/snapshot/
. You will not see the “.zfs” folder in an ls -la /home
, because it is hidden from everything, unless you specifically type it manually. So, if you ls -lah /home/.zfs
, it will work, even if there is “no folder” in the root of your dataset.
And I can simply ls -alh /home/.zfs/snapshot/20231029/
and see the contents of /home from the snapshot.
Highly doubt it. What you’re looking for is an archival tool, which are not technically a backup, but are considered as such by backup tools (particularly if you archive the data to a slower-tier storage and a tertiary location, like off-site tape).
I was looking for alternatives for moving my less frequently accessed data to large HDDs, like doing backups of the same data to 2x bluray discs and indexing the content somewhere centralized to easily search the discs that I need and to have an index of the discs on the discs themselves, in case I lose access to the centralized index (so I don’t have to scan the whole content of the bluerays if something goes wrong).
I haven’t found such a software solution. I was thinking of rolling my own archival scripts, but I did a cost analysis of blurays and IIRC it seemed to be on-par with HDDs for more amount of work and if I don’t fill the discs to the max with data, the cost per GB will be way higher for bluray than HDDs. So I’m stuck with moving my data to my NAS and I have a backup server that I just turn on whenever I want to run backups.