zfs snapshot of / excluding /rpool

May 16, 2020
256
16
38
50
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:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!