zfs snapshot of / excluding /rpool

Joris L.

Well-Known Member
May 16, 2020
312
21
58
52
Antwerp, Belgium
commandline.be
running a very simple set-up with Proxmox on ZFS

I'm looking to have snapshot of everything in /etc and other select directories. Essentially / without rpool and subsequent volumes.

Since df -h shows mountpoint to be
/root/RPOOL/pve-1 /

i tried: zfs snapshot -r rpool/ROOT/pve-1@may2024

This resulted in a 15MB snapshot which i do not believe to be of adequate size and likely only contains metadata.

How to go about this ?

Br

JL
 
You don't necessarily need a snapshot, you can create tar backups of /etc and other critical files.

https://github.com/kneutron/ansitest/tree/master/proxmox

Setup and run the bkpcrit script, put it in cron and run it nightly, use it frequently and especially before any system changes.

The advantage of having a tar backup is that you can easily restore it to non-zfs filesystems and use Midnight Commander to delve into the tarfile as a virtual filesystem to copy files/dirs out.
 
  • Like
Reactions: Joris L.
I'm looking to have snapshot of everything in /etc and other select directories. Essentially / without rpool and subsequent volumes.
Also, you can only snapshot whole datasets/zvols, so in this case only the full root filesystem and not selected directories.

This resulted in a 15MB snapshot which i do not believe to be of adequate size and likely only contains metadata.
The snapshot will grow the older it gets or the more data got (over)written.
 
Last edited: