Ignore unspecified backup archives
This commit is contained in:
parent
f8a3f83f42
commit
9f64c0224e
|
@ -76,6 +76,7 @@ $null = New-Module {
|
|||
[string[]] $Exclude
|
||||
)
|
||||
|
||||
if ($env:BACKUP_ARCHIVE) {
|
||||
[List[string]] $argumentList = @();
|
||||
$dir = New-TemporaryDirectory;
|
||||
$targetPath = & $pathResolver @PSBoundParameters;
|
||||
|
@ -119,6 +120,7 @@ $null = New-Module {
|
|||
|
||||
Remove-Item -Recurse -Force $dir;
|
||||
}
|
||||
}
|
||||
|
||||
<#
|
||||
.SYNOPSIS
|
||||
|
@ -145,6 +147,7 @@ $null = New-Module {
|
|||
[string[]] $ArgumentList
|
||||
)
|
||||
|
||||
if ($env:BACKUP_ARCHIVE) {
|
||||
$dir = New-TemporaryDirectory;
|
||||
$sourcePath = & $pathResolver @PSBoundParameters;
|
||||
$filePath = Join-Path $dir $sourcePath;
|
||||
|
@ -156,4 +159,5 @@ $null = New-Module {
|
|||
|
||||
Remove-Item -Recurse -Force $dir;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue