X-Git-Url: http://git.pippins.net/embedvideo/.git/static/git-logo.png?a=blobdiff_plain;f=zfs-snapshot-totals-cron;h=7ac2f55e10607511526843603278a8480814f974;hb=3f08d533f25120d1df5d607ab38d759b701e981b;hp=d9c85ef32d5c7b370f9414c6471450dc77c8eee4;hpb=ecd17901ea99621f02c6531d1cdd146666f30ce8;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