Ignore inexistent backup artifacts
This commit is contained in:
parent
f31eed5616
commit
4c11809c49
|
@ -146,8 +146,13 @@ $null = New-Module {
|
|||
|
||||
$dir = New-TemporaryDirectory;
|
||||
$sourcePath = & $pathResolver @PSBoundParameters;
|
||||
$filePath = Join-Path $dir $sourcePath;
|
||||
7z x "-o$dir" (Get-ValhallaBackupArchive) $sourcePath @ArgumentList;
|
||||
Copy-Item -Recurse (Join-Path $dir $sourcePath) $Target;
|
||||
|
||||
if (Test-Path $filePath) {
|
||||
Copy-Item -Recurse (Join-Path $dir $sourcePath) $Target;
|
||||
}
|
||||
|
||||
Remove-Item -Recurse -Force $dir;
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue