This is an old revision of the document!
One of the great things of ZFS is the easy of use and speed of snapshots. With snapshots, one can create backups on the fly. We use the following simple snapshot schema, especially because most data are datasets, and don't change that often. If faster changing data is stored on the storage server, these schema's may need some modifications (like daily snapshots)'
daily -> remove expired snapshots weekly backup -> keep for 7 weeks montly backup -> keep for 12 months
The tool used to do these snapshots is zfSnap
for more infomation see https://github.com/zfsnap/zfsnap/wiki/zfSnap command to do weekly snapshots
#!/bin/bash /usr/sbin/zfSnap -s -S -a 7w -r data/home
-a → TTL of 7 weeks -r → recursive
#!/bin/bash /usr/sbin/zfSnap -s -S -a 12m -r data/home
-a → TTL of 12 months
#!/bin/bash /usr/sbin/zfSnap -d -r data/home
-d → clean up expired snapshots -r → recursively