Updated to contain daily snapshot code
[zfs-ubuntu/.git] / zfs-autosnap-wrapper
index 58929766541fb40b569f213d165e321dc3b9d209..2e500e1196b284796dd349712aba697d1e138579 100755 (executable)
@@ -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
+