3 # Author: Alan J. Pippin
4 # Description: This script is a wrapper script that calls zfs-autosnap
5 # for each filesystem provided below.
7 # Setup some default values
8 autosnap="/usr/local/etc/bin/zfs-autosnap"
9 logfile="/var/log/zfs-autosnap.log"
13 # Auto snapshot every zfs filesystem on the system specified below
17 $autosnap storage /storage $numsnapshots 15
18 $autosnap tank/usr/videos /usr/videos $numsnapshots 15
21 $autosnap tank / $numsnapshots $maxagedays
22 $autosnap tank/backup /backup $numsnapshots $maxagedays
23 $autosnap tank/usr /usr $numsnapshots $maxagedays
24 $autosnap tank/usr/home /usr/home $numsnapshots $maxagedays
25 $autosnap tank/usr/local /usr/local $numsnapshots $maxagedays
26 $autosnap tank/usr/local/etc /usr/local/etc $numsnapshots $maxagedays