Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions zrep
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
11 changes: 9 additions & 2 deletions zrep_sync
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down