Commit 2de9efcb authored by Daniel Stan's avatar Daniel Stan

(stretch) btrfs command is now in /bin/

parent 8dc16039
......@@ -2,11 +2,11 @@
source `dirname $0`/backup_config.sh
BTRFS=/sbin/btrfs
BTRFS=/bin/btrfs
available_local () {
# TODO escape
btrfs sub list $FS_DIR | sed "s/^.* path $BACK_DIR\/\($PATTERN\)$/\1/; t; d"
$BTRFS sub list $FS_DIR | sed "s/^.* path $BACK_DIR\/\($PATTERN\)$/\1/; t; d"
}
available_remote () {
......@@ -48,6 +48,6 @@ elif [ "$1" = "incsend" ]; then
read -p "[press enter to continue]"
btrfs_send -p $FS_DIR/$BACK_DIR/$PARENT $FS_DIR/$BACK_DIR/$SNAP | $REMOTE receive $SNAP $PARENT
elif [ "$1" = "receive" ]; then
btrfs receive $FS_DIR/$BACK_DIR
$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