Use temporary directory for restoration
This commit is contained in:
parent
f99b180f98
commit
db17c2c42c
1 changed files with 2 additions and 0 deletions
|
@ -44,5 +44,7 @@ function Invoke-WindowsRestore() {
|
||||||
$backupPath = Read-Path;
|
$backupPath = Read-Path;
|
||||||
$context = [Context]::new();
|
$context = [Context]::new();
|
||||||
$context.BackupName = "PortValhalla";
|
$context.BackupName = "PortValhalla";
|
||||||
|
$context.RootDir = $context.GetTempDirectory();
|
||||||
$context.Restore($backupPath, $context.BackupRoot());
|
$context.Restore($backupPath, $context.BackupRoot());
|
||||||
|
Remove-Item -Recurse $context.RootDir;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue