diff --git a/btrfs/subvolume-delta b/btrfs/subvolume-delta index 7054d9e..eb8f8e5 100755 --- a/btrfs/subvolume-delta +++ b/btrfs/subvolume-delta @@ -10,9 +10,9 @@ CDATE="$(date '+%s')" SNAPSRC="$SRC" SNAPPATH="$SNAPSRC/$SNAPDIR" -PREV="$SRC/prev" -CUR="$SRC/cur" -TMP="$SRC/tmp" +PREV="$SNAPPATH/prev" +CUR="$SNAPPATH/cur" +TMP="$SNAPPATH/tmp" SNAPDEST="$SNAPPATH/$CDATE" msg() { @@ -45,7 +45,7 @@ symdel "$PREV" ln -sv "$CDATE" "$TMP" >&2 btrfs subvolume snapshot -r "$SNAPSRC" "$SNAPDEST" >&2 -delta || full +delta || full || return 1 # Mark snapshot transmission as complete [ -L "$CUR" ] && \