projects
/
zfs-nexenta
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ecd1790
)
Fixed typo
author
Alan J. Pippin
<ajp@pippins.net>
Sat, 17 Jan 2009 07:10:28 +0000
(
00:10
-0700)
committer
Alan J. Pippin
<ajp@pippins.net>
Sat, 17 Jan 2009 07:10:28 +0000
(
00:10
-0700)
zfs-snapshot-totals-cron
patch
|
blob
|
history
diff --git
a/zfs-snapshot-totals-cron
b/zfs-snapshot-totals-cron
index d9c85ef32d5c7b370f9414c6471450dc77c8eee4..7ac2f55e10607511526843603278a8480814f974 100755
(executable)
--- a/
zfs-snapshot-totals-cron
+++ b/
zfs-snapshot-totals-cron
@@
-1,5
+1,10
@@
#!/bin/bash
#!/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
# source our configuration
config="${0%/*}/zfs-scripts.conf"
[ -e "${config}.dist" ] && . ${config}.dist
@@
-8,6
+13,6
@@
config="${0%/*}/zfs-scripts.conf"
logfile="$logdir/zfs-snapshot-totals.log"
date >> $logfile
logfile="$logdir/zfs-snapshot-totals.log"
date >> $logfile
-zfs-snapshot
_
totals >> $logfile
+zfs-snapshot
-
totals >> $logfile
echo >> $logfile
echo >> $logfile