From: Alan J. Pippin Date: Tue, 11 Mar 2008 02:20:35 +0000 (-0600) Subject: Updated to contain daily snapshot code X-Git-Url: http://git.pippins.net/embedvideo/.git/static/images/%7Bview%7D?a=commitdiff_plain;h=f819dc6273f21ac57d9a64fbe295bf11fb2b7f84;p=zfs-nexenta%2F.git Updated to contain daily snapshot code --- diff --git a/zfs-autosnap-wrapper b/zfs-autosnap-wrapper index 5892976..2e500e1 100755 --- a/zfs-autosnap-wrapper +++ b/zfs-autosnap-wrapper @@ -25,3 +25,9 @@ $autosnap tank/usr/home /usr/home $numsnapshots $maxagedays $autosnap tank/usr/local /usr/local $numsnapshots $maxagedays $autosnap tank/usr/local/etc /usr/local/etc $numsnapshots $maxagedays +# Daily filesystems (only perform these at midnight) +if [ `date +"%H:%M"` == "00:00" ]; then + $autosnap tank/var /var $numsnapshots $maxagedays + $autosnap tank/usr/local/var /usr/local/var $numsnapshots $maxagedays +fi +