projects
/
zfs-ubuntu
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e9c8adf
)
Updated to contain daily snapshot code
author
Alan J. Pippin
<ajp@pippins.net>
Tue, 11 Mar 2008 02:20:35 +0000
(20:20 -0600)
committer
Alan J. Pippin
<ajp@pippins.net>
Tue, 11 Mar 2008 02:20:35 +0000
(20:20 -0600)
zfs-autosnap-wrapper
patch
|
blob
|
history
diff --git
a/zfs-autosnap-wrapper
b/zfs-autosnap-wrapper
index 58929766541fb40b569f213d165e321dc3b9d209..2e500e1196b284796dd349712aba697d1e138579 100755
(executable)
--- 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
+