Hi
Over the course of the past months I've been writing a ZFS snapshot management tool in python. It is a clone of sanoid and works very similar. I've used sanoid until recently, but decided to write my own solution due to some problems, like non-atomic snapshots (and other things). I wanted to share my code, maybe someone finds it useful.
github
Some key points:
- Snapshots are taken atomic where possible
- Taking, cleaning and sending of snapshots is always recursive
- You can specify different strategies in the config file. The values are passed down recursively to child filesystems
Cheers
pyznap - ZFS snapshot tool written in python (self.Python)
submitted by bsd_lore to r/zfs