Changeset 0c5977f


Ignore:
Timestamp:
08/15/13 14:41:53 (15 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:
6cf118f
Parents:
7078e92
Message:

Don't need to unset the lastSend snapshot if we are doing a first-time replication

File:
1 edited

Legend:

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

    r94d3a40 r0c5977f  
    304304     # SUCCESS! 
    305305     # Lets mark our new latest snapshot and unmark the last one 
    306      zfs set backup:lpreserver=' ' ${LDATA}@$lastSEND 
     306     if [ -n "$lastSEND" ] ; then 
     307       zfs set backup:lpreserver=' ' ${LDATA}@$lastSEND 
     308     fi 
    307309     zfs set backup:lpreserver=LATEST ${LDATA}@$lastSNAP 
    308310     echo_log "Finished replication task on ${DATASET}" 
Note: See TracChangeset for help on using the changeset viewer.