Here’s a nice script found on thinking sysadmin. I slightly modified it to use the real mount point instead of assuming “/”, my changes are highlighted below: #!/usr/local/bin/bash # FROM: http://andyleonard.com/2010/04/07/automatic-zfs-snapshot-rotation-on-freebsd/ # Path to ZFS executable: ZFS=/sbin/zfs # Parse arguments: TARGET=$1 SNAP=$2 COUNT=$3 # Function to display usage: usage() { scriptna