Fix handling of full not succeeding and wrong path

This commit is contained in:
Alex D. 2024-11-10 10:42:26 +00:00
parent 7f69ed2446
commit cb296ea21a
Signed by: caskd
GPG Key ID: F92BA85F61F4C173
1 changed files with 4 additions and 4 deletions

View File

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