diff --git a/zrep b/zrep index 2861c02..af7c420 100755 --- a/zrep +++ b/zrep @@ -2139,10 +2139,10 @@ zrep_refresh(){ fi if [[ "$BBCP" != "" ]] ; then - $BBCP -N io "$srchost:$ZREP_PATH _refreshpull $newsnap $token" \ + $BBCP -N io "$srchost:$ZREP_PATH ${ZREP_R} _refreshpull ${ZREP_INC_FLAG} $newsnap $token" \ "zfs recv $force $destfs" else - zrep_ssh $srchost "$ZREP_PATH ${ZREP_R} _refreshpull $newsnap $token ${Z_F_OUT}" | + zrep_ssh $srchost "$ZREP_PATH ${ZREP_R} _refreshpull ${ZREP_INC_FLAG} $newsnap $token ${Z_F_OUT}" | eval ${Z_F_IN} zfs recv $force $destfs fi if [[ $? -ne 0 ]] ; then @@ -2185,6 +2185,13 @@ _refreshpull(){ typeset fs snapname lastsent latest verbose typeset token="" + case "$1" in + -i|-I) + ZREP_INC_FLAG=$1 + shift + ;; + esac + if [[ "$2" != "" ]] ; then token="$2" fi diff --git a/zrep_sync b/zrep_sync index a43f8f3..6f71fd0 100644 --- a/zrep_sync +++ b/zrep_sync @@ -617,10 +617,10 @@ zrep_refresh(){ fi if [[ "$BBCP" != "" ]] ; then - $BBCP -N io "$srchost:$ZREP_PATH _refreshpull $newsnap $token" \ + $BBCP -N io "$srchost:$ZREP_PATH ${ZREP_R} _refreshpull ${ZREP_INC_FLAG} $newsnap $token" \ "zfs recv $force $destfs" else - zrep_ssh $srchost "$ZREP_PATH ${ZREP_R} _refreshpull $newsnap $token ${Z_F_OUT}" | + zrep_ssh $srchost "$ZREP_PATH ${ZREP_R} _refreshpull ${ZREP_INC_FLAG} $newsnap $token ${Z_F_OUT}" | eval ${Z_F_IN} zfs recv $force $destfs fi if [[ $? -ne 0 ]] ; then @@ -663,6 +663,13 @@ _refreshpull(){ typeset fs snapname lastsent latest verbose typeset token="" + case "$1" in + -i|-I) + ZREP_INC_FLAG=$1 + shift + ;; + esac + if [[ "$2" != "" ]] ; then token="$2" fi