X-Git-Url: http://git.pippins.net/embedvideo/.git/?a=blobdiff_plain;f=zfs-snapshot-totals-cron;h=7ac2f55e10607511526843603278a8480814f974;hb=e27e0c7b91fd87d322736b79974f5488490dd20f;hp=d9c85ef32d5c7b370f9414c6471450dc77c8eee4;hpb=471f2873d53eebe62223121be58bc3f795511a12;p=zfs-nexenta%2F.git diff --git a/zfs-snapshot-totals-cron b/zfs-snapshot-totals-cron index d9c85ef..7ac2f55 100755 --- a/zfs-snapshot-totals-cron +++ b/zfs-snapshot-totals-cron @@ -1,5 +1,10 @@ #!/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 @@ -8,6 +13,6 @@ config="${0%/*}/zfs-scripts.conf" logfile="$logdir/zfs-snapshot-totals.log" date >> $logfile -zfs-snapshot_totals >> $logfile +zfs-snapshot-totals >> $logfile echo >> $logfile