Changeset 59f014c4


Ignore:
Timestamp:
10/15/13 13:54:08 (11 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:
59d5019
Parents:
b2dabfa
Message:

Fix an issue saving the .lp-prop-<dataset> file on a replicated backup

File:
1 edited

Legend:

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

    r01f43cb r59f014c4  
    356356  if [ "$RECURMODE" != "ON" ] ; then return 0; fi 
    357357  if [ "`basename $DATASET`" != "$DATASET" ] ; then return 0; fi 
    358   hName=`hostname` 
     358  hName="`hostname`" 
    359359 
    360360  echo_log "Saving dataset properties for: ${DATASET}" 
     
    365365 
    366366  zfs get -r all $DATASET | grep ' local$' | awk '{$1=$1}1' OFS=" " | sed 's| local$||g' \ 
    367         | ssh -p ${REPPORT} ${REPUSER}@${REPHOST} "cat > $rProp" 
     367        | ssh -p ${REPPORT} ${REPUSER}@${REPHOST} "cat > \"$rProp\"" 
    368368  if [ $? -eq 0 ] ; then 
    369369    echo_log "Successful save of dataset properties for: ${DATASET}" 
Note: See TracChangeset for help on using the changeset viewer.