Spaces:
Running on Zero
Running on Zero
File size: 540 Bytes
32c5da4 | 1 2 3 4 5 6 7 8 9 | param(
[Parameter(Mandatory=$true)][string]$Source
)
$ErrorActionPreference = "Stop"
if (!(Test-Path $Source)) { throw "Backup source not found: $Source" }
Copy-Item -Recurse -Force -Path (Join-Path $Source "output") -Destination "output" -ErrorAction SilentlyContinue
Copy-Item -Force -Path (Join-Path $Source "presets.json"),(Join-Path $Source "prompt_history.json"),(Join-Path $Source "settings.json"),(Join-Path $Source "jobs_state.json") -Destination "." -ErrorAction SilentlyContinue
Write-Host "Restore completed from: $Source"
|