Changeset 1e93fd8


Ignore:
Timestamp:
08/15/13 15:02:45 (17 months ago)
Author:
Kris Moore <kris@…>
Branches:
master, 9.2-release, releng/10.0, releng/10.0.1, releng/10.0.2, releng/10.0.3, releng/10.1
Children:
4f0d211
Parents:
6cf118f
Message:

Display number of snaps to keep with "listcron"

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-sh/lpreserver/backend/zfslistcron.sh

    rf615958 r1e93fd8  
    1818   min=`grep "${PROGDIR}/backend/runsnap.sh" /etc/crontab | awk '{print $1}'` 
    1919   hour=`grep "${PROGDIR}/backend/runsnap.sh" /etc/crontab | awk '{print $2}'` 
     20   count=`grep "${PROGDIR}/backend/runsnap.sh" /etc/crontab | awk '{print $9}'` 
    2021   time="Min: $min Hour: $hour"; 
    2122   if [ "$min" = "0" -a "$hour" != '*' ] ; then time="daily@$hour" ; fi 
     
    2425   if [ "$min" = '*/10' ] ; then time="10min" ; fi 
    2526   if [ "$min" = '*/5' ] ; then time="5min" ; fi 
    26    echo "$i - $time" 
     27   echo "$i - $time - total: $count" 
    2728done 
Note: See TracChangeset for help on using the changeset viewer.