add
This commit is contained in:
parent
6dee2475b2
commit
0e285fe222
@ -86,8 +86,10 @@ if [[ $SUCCESS == "true" ]]
|
|||||||
then
|
then
|
||||||
LASTBACKUP=$(zfs get backup:date -H -o value $SRCZFS)
|
LASTBACKUP=$(zfs get backup:date -H -o value $SRCZFS)
|
||||||
LASTSNAP="backup_$LASTBACKUP"
|
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 -i "$SRCZFS"@"$LASTSNAP" "$SRCZFS"@"$SNAPNAME" | pv -L 500M | ssh $DESTHOST sudo zfs recv -F $DESTZFS
|
||||||
else
|
else
|
||||||
|
echo "Sending full snapshot"
|
||||||
zfs send "$SRCZFS"@"$SNAPNAME" | pv -L $LIMIT | ssh $DESTHOST sudo zfs recv -F $DESTZFS
|
zfs send "$SRCZFS"@"$SNAPNAME" | pv -L $LIMIT | ssh $DESTHOST sudo zfs recv -F $DESTZFS
|
||||||
fi
|
fi
|
||||||
if [ $? -eq 0 ]
|
if [ $? -eq 0 ]
|
||||||
|
Loading…
Reference in New Issue
Block a user