ZFS auto snapshots

morph027

Renowned Member
Mar 22, 2013
451
63
93
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