#!/bin/bash # Place this script in your crontab to run daily. # It produces a log file that can be parsed by the # zfs-log-parser script to display a nice table # showing how much space the snapshots are taking up. # source our configuration config="${0%/*}/zfs-scripts.conf" [ -e "${config}.dist" ] && . ${config}.dist [ -e "${config}" ] && . ${config} logfile="$logdir/zfs-snapshot-totals.log" date >> $logfile zfs-snapshot-totals >> $logfile echo >> $logfile