Fixed broken backup snapshotting of non-root subvolumes on rollbacks

This commit is contained in:
Jarno Rankinen 2020-10-21 20:33:14 +03:00
parent f14ba56e59
commit 7576a5222d
1 changed files with 2 additions and 0 deletions

2
snapsh
View File

@ -180,6 +180,8 @@ rollback() {
let INDEX=${ROLLBACK_TARGET}-1
TARGET=${SNAPSHOTS[${INDEX}]}
. ${TARGET}/.snapsh
SUBVOLUME=${SOURCE_SUBVOLUME}
printf "\nYou are about to roll back to snapshot ${ROLLBACK_TARGET}: ${DATE}, subvolume ${SOURCE_SUBVOLUME}, type ${TYPE}, ${DESCRIPTION}.\n\nAre you sure (yes/no)? "
read