fix: restore script

This commit is contained in:
2026-06-06 15:10:39 +01:00
parent 715993af46
commit a7c3e3e7fe
2 changed files with 51 additions and 139 deletions

View File

@@ -746,7 +746,8 @@ def restore_start():
if target == 'local':
hostname = os.uname().nodename
session_dir = f"/tmp/restore-session-{uuid.uuid4().hex[:8]}"
os.makedirs('/root/tmp', exist_ok=True)
session_dir = f"/root/tmp/restore-session-{uuid.uuid4().hex[:8]}"
cmd = (
f"set -e && "
f"echo 'Restoring on this server ({hostname})...' && "