Fix handling of full not succeeding and wrong path
This commit is contained in:
parent
7f69ed2446
commit
cb296ea21a
|
@ -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" ] && \
|
||||||
|
|
Loading…
Reference in New Issue