Commit 824f9d16 authored by Daniel STAN's avatar Daniel STAN

incremental send \o/

parent f8d64309
......@@ -23,6 +23,16 @@ elif [ "$1" = "candidates" ]; then
elif [ "$1" = "fullsend" ]; then
SNAP=`available_local | sort | tail -n 1`
btrfs send $FS_DIR/$BACK_DIR/$SNAP | $REMOTE receive
elif [ "$1" = "incsend" ]; then
SNAP=`available_local | sort | tail -n 1`
echo "Trying to send last snap $SNAP"
PARENT=`available_common | sort | tail -n 1`
echo "Parent $PARENT"
if [ "$PARENT" = "$SNAP" ]; then
echo "Parent and Snap coincide ! Already sent ! Aborting"
exit 1
fi
btrfs send -p $FS_DIR/$BACK_DIR/$PARENT $FS_DIR/$BACK_DIR/$SNAP | $REMOTE receive
elif [ "$1" = "receive" ]; then
btrfs receive $FS_DIR/$BACK_DIR
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment