ZFS auto snapshots

morph027

Well-Known Member
Mar 22, 2013
446
60
48
Leipzig
morph027.gitlab.io
Just tested this (being used to this from BSD)...Might be worth to pack this into an upcoming pve release (or at least the wiki page)

https://github.com/zfsonlinux/zfs-auto-snapshot

Code:
wget https://github.com/zfsonlinux/zfs-auto-snapshot/archive/master.zip
unzip master.zip
cd zfs-auto-snapshot-master
make install

Managing auto snapshot is done using zfs dataset properties, like in this example:

Code:
zfs set com.sun:auto-snapshot=true tank/backup
zfs set com.sun:auto-snapshot:monthly=false tank/backup
zfs set com.sun:auto-snapshot:weekly=false tank/backup
zfs set com.sun:auto-snapshot:daily=true tank/backup
zfs set com.sun:auto-snapshot:hourly=false tank/backup
zfs set com.sun:auto-snapshot:frequent=false tank/backup
 
  • Like
Reactions: elurex

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 your own in 60 seconds.

Buy now!