Ignore:
Timestamp:
08/22/13 12:45:04 (12 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
Children:
69265de
Parents:
197bdbf
Message:

Add --replicate option to "mksnap" to force immediate replication

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-sh/lpreserver/lpreserver

    r5cc3d00 raac00e0  
    293293 echo "Help mksnap 
    294294 
    295 Create a new ZFS snapshot of a dataset 
    296  
    297 Usage: 
    298  
    299   lupdate mksnap <dataset> 
    300  
    301 Example: 
    302  
    303   lupdate mksnap tank1/usr/home/kris 
     295Create a new ZFS snapshot of a dataset and optionally replicate it immediately 
     296 
     297Usage: 
     298 
     299  lpreserver mksnap --replicate <dataset> <snapshotname> 
     300 
     301Example: 
     302 
     303  lpreserver mksnap tank1/usr/home/kris mysnapshot 
     304 
     305  or 
     306 
     307  lpreserver mksnap --replicate tank1/usr/home/kris mysnapshot 
    304308 
    305309NOTE: 
     
    369373 
    370374   mksnap) require_root 
    371          DATASET="$2" 
    372          ${PROGDIR}/backend/zfsmksnap.sh "${DATASET}" 
     375         if [ "$2" = "--replicate" ] ; then 
     376           REP="YES" 
     377           DATASET="$3" 
     378           SNAPNAME="$4" 
     379         else 
     380           REP="NO" 
     381           DATASET="$2" 
     382           SNAPNAME="$3" 
     383         fi 
     384         ${PROGDIR}/backend/zfsmksnap.sh "${DATASET}" "$SNAPNAME" "$REP" 
    373385         ;; 
    374386 
Note: See TracChangeset for help on using the changeset viewer.