proxmox zfs pool snapshot

ukro

Member
May 16, 2021
125
13
23
40
Greetings,
my eyes are bleading from googling.
Can anybody please help.
How can i automate snapshoting and hold specific amount of them (rotating lets say per hour basis) for the zfs pool that i have when i run zpool status.
I imported it from truenas machine that i killed. I see the data everything is okay, but proxmox GUI doesnt allow to set automated snapshot for it. or i didn't found.

Thank you for any pointers
 
I found this
Code:
I use ZFS on ProxMox and there is already a GUI option on the main datacenter page to perform daily snapshots with a maximum number of stored snapshots that will rotate once reached. They show up on the main GUI and can be restored from there too.
https://www.reddit.com/r/Proxmox/co...z?utm_source=share&utm_medium=web2x&context=3
But i am not able to find it in GUI

I also found this. Is this ne only most ez way? :-E
https://www.proliferoustech.com/blogs/20180630-zfs-backups-on-proxmox-with-znapzend/
 
Last edited:
So i tryed and this is working perfectly. Does somebody think that there is some automated script? Or i would need to do my own?
Code:
zfs list -t snapshot
zfs list
zfs snapshot rpool/somedataset@test
zfs rollback rpool/somedataset@test
zfs destroy rpool/somedataset@test
 
Hi,

I am interesting by such tool as explained on this post :

1) webgui in proxmox in order to see the ZFS snapshots : it could be in a view 'Node>Disks>ZFS. Today we see the list of zfs pool. A complementary view of the zfs snapshots will be good

2) a script tool in order to delete the 6 months older snapshots ?

Today I was able to snapshot my pools with a simple script launched each week :
Code:
#!/bin/bash
SNAP="snap-$(date +%Y%m%d-%H%M)"
#zfs snapshot tank/data@$SNAP
zfs snapshot -r ZFS_Mirror_PVE/vmdata@$SNAP
zfs snapshot ZFS_Mirror_PVE/share@$SNAP
zfs snapshot ZFS_Mirror_PVE/ISOimages@$SNAP
zfs snapshot rpool@$SNAP
I was inspired by a post on internet.

I found some tools on github but not updated since 4 years

Thanks for any advice
 
Last edited:
Hi

I have a doubt for CV4pve-autosnap. Is it ZFS snapshots or VM/LXC snapshots ?
I have raw format as I use proxmox on zfs system (mirror zfs).

I understood that cv4pve-autosnap manages VM/LXC snapshots that we can see in snapshot view of each VM/LXC

Not possible to have VM/LXC snapshot as I use raw format.

But I can manage zfs snapshot of my pool and datasets.

Or I missunderstand one point.

Thanks for any advice