proxmox: stop container prior to restore.

This commit is contained in:
Koushik Dutta
2024-10-17 13:35:57 -07:00
parent 3d8711947a
commit 653eeceaf2

View File

@@ -77,6 +77,7 @@ then
fi
fi
pct stop $VMID 2>&1 > /dev/null
pct restore $VMID $SCRYPTED_TAR_ZST $@
if [ "$?" != "0" ]
@@ -127,7 +128,7 @@ then
fi
echo "Stopping scrypted..."
pct stop $RESTORE_VMID
pct stop $RESTORE_VMID 2>&1 > /dev/null
echo "Preparing rootfs reset..."
pct destroy $SCRYPTED_BACKUP_VMID