Ignore:
Timestamp:
Aug 16, 2013 7:17:14 AM (8 months ago)
Author:
Kris Moore <kris@…>
Branches:
master, 9.2-release, releng/10.0, releng/10.0.1
Children:
1d1b425, 5fd031d
Parents:
176289d
Message:

Add "lpreserver status" command, which will show last snapshot / replication for all datasets

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-sh/lpreserver/lpreserver

    r4f0d211 rcb8f638  
    5151 revertsnap - Revert zpool/dataset to a snapshot 
    5252  replicate - Enable / Disable ZFS replication to a remote system 
     53     status - List datasets, along with last snapshot / replication date  
    5354     rmsnap - Remove a snapshot 
    5455__EOF__ 
     
    177178" 
    178179}; 
     180 
     181help_status() 
     182{ 
     183 title 
     184 echo "Help status 
     185 
     186List monitored dataset's last snapshot and replication 
     187 
     188Usage: 
     189 
     190  lpreserver status 
     191 
     192" 
     193}; 
     194 
    179195 
    180196help_listsnap() 
     
    309325           cronsnap) help_cronsnap ;; 
    310326           rmsnap) help_rmsnap ;; 
     327           status) help_status ;; 
    311328           *) help_main ;; 
    312329         esac  ;; 
     
    379396         ${PROGDIR}/backend/zfsrmsnap.sh "${DATASET}" "${SNAP}" 
    380397         ;; 
     398    status) listStatus 
     399         ;; 
    381400 replicate) require_root 
    382401            shift 
Note: See TracChangeset for help on using the changeset viewer.