Skip to content

Commit e147651

Browse files
authored
Update Invoke-AzureBlobsProtect.ps1 (#175)
Syntax updates due to AzCopy updates.
1 parent 09b061f commit e147651

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Azure/Invoke-AzureBlobsProtect.ps1

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,12 @@ Connect-Rubrik $RubrikServer -Credential $RubrikCred
6060
$mv = Get-RubrikManagedVolume -Name $MVName
6161
$mv | Start-RubrikManagedVolumeSnapshot
6262

63-
$AzCopyFullPath = ".\AzCopy.exe"
63+
$AzCopyFullPath = ".\azcopy.exe"
6464
if ($AzCopyPath) {
6565
$AzCopyFullPath = Join-Path -Path $AzCopyPath -ChildPath "AzCopy.exe"
6666
}
6767

68-
Invoke-Expression $AzCopyFullPath cp "$SourceBlobsContainer" "$TargetMV" --recursive
68+
$Command = "$AzCopyFullPath copy '$SourceBlobsContainer' '$TargetMV' --recursive"
69+
Invoke-Expression $Command
6970

7071
$mv | Stop-RubrikManagedVolumeSnapshot

0 commit comments

Comments
 (0)