Automatically aging snapshots

VulcanRidr

Explorer
Joined
Jan 5, 2015
Messages
59
On my FreeBSD boxes, I use zfs-auto-snapshot from the zfstools to make the following series of snapshots:
  • 4 frequent, every 15 minutes
  • 24 hourly
  • 7 daily
  • 4 weekly
  • 12 monthly
...To give me a year's worth of snapshots. Now on TrueNAS, the menus appear to give me the option of "what dataset do you want to snapshot" and "how long do you want to keep them"?

Is it feasable to either include zfstools or write that type of flexibility into the middleware layer?

Thanks,
--vr
 
Joined
Oct 22, 2019
Messages
3,641
In the same boat as you:

 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
Just create 5 tasks with the desired frequency and retention period.
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
There's a recursion option. I organise my datasets into top level "classes" like "share", "data" (the bulk data directories mounted in jails like Nextcloud), "vm" (zvols that provide virtual disks), etc. Then apply one policy to each of those "classes".
 
Top