add -R to send
This commit is contained in:
parent
0e285fe222
commit
a538042eba
@ -87,10 +87,10 @@ then
|
||||
LASTBACKUP=$(zfs get backup:date -H -o value $SRCZFS)
|
||||
LASTSNAP="backup_$LASTBACKUP"
|
||||
echo "Sending incremental snapshot from $LASTSNAP"
|
||||
zfs send -i "$SRCZFS"@"$LASTSNAP" "$SRCZFS"@"$SNAPNAME" | pv -L 500M | ssh $DESTHOST sudo zfs recv -F $DESTZFS
|
||||
zfs send -R -i "$SRCZFS"@"$LASTSNAP" "$SRCZFS"@"$SNAPNAME" | pv -L $LIMIT | ssh $DESTHOST sudo zfs recv -F $DESTZFS
|
||||
else
|
||||
echo "Sending full snapshot"
|
||||
zfs send "$SRCZFS"@"$SNAPNAME" | pv -L $LIMIT | ssh $DESTHOST sudo zfs recv -F $DESTZFS
|
||||
zfs send -R "$SRCZFS"@"$SNAPNAME" | pv -L $LIMIT | ssh $DESTHOST sudo zfs recv -F $DESTZFS
|
||||
fi
|
||||
if [ $? -eq 0 ]
|
||||
then
|
||||
|
Loading…
Reference in New Issue
Block a user