Skip to content

Commit

Permalink
proxmox: fix restore
Browse files Browse the repository at this point in the history
  • Loading branch information
koush committed Oct 17, 2024
1 parent 264cb04 commit d57501d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install/proxmox/install-scrypted-proxmox.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ fi
SCRYPTED_BACKUP_VMID=10445
if [ -n "$SCRYPTED_RESTORE" ]
then
pct destroy $SCRYPTED_BACKUP_VMID 2>&1 > /dev/null
RESTORE_VMID=$VMID
VMID=$SCRYPTED_BACKUP_VMID
pct destroy $VMID 2>&1 > /dev/null
Expand Down Expand Up @@ -136,7 +137,6 @@ then
pct stop $RESTORE_VMID 2>&1 > /dev/null

echo "Preparing rootfs reset..."
pct destroy $SCRYPTED_BACKUP_VMID

# this moves the data volume from the current scrypted instance to the backup target.
pct set $SCRYPTED_BACKUP_VMID --delete mp0 && pct set $SCRYPTED_BACKUP_VMID --delete unused0 && pct move-volume $RESTORE_VMID mp0 --target-vmid $SCRYPTED_BACKUP_VMID --target-volume mp0
Expand Down

0 comments on commit d57501d

Please sign in to comment.