File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
demos-backupsdk/Protection Group Database Refresh Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -53,22 +53,22 @@ Invoke-Sqlcmd -ServerInstance $TargetSQLServer -Database master -Query $Query
5353
5454
5555# Create a new snapshot of the Protection Group
56- $Snapshot = Invoke-PsbSnapshotJob - FlashArrayAddress $ArrayName - FlashArrayCredential $FlashArrayCredential - VolumeSetName $VolumeSet - VolumeType $VolumeType - ComputerAddress $SourceSQLServer - ComputerCredential $SQLServerCredential - Path $SourcePath - pgroupname $ProtectionGroupName - ReplicateNow
56+ $Snapshot = Invoke-PsbSnapshotJob - FlashArrayAddress $SourceArrayName - FlashArrayCredential $FlashArrayCredential - VolumeSetName $VolumeSet - VolumeType $VolumeType - ComputerAddress $SourceSQLServer - ComputerCredential $SQLServerCredential - Path $SourcePath - pgroupname $ProtectionGroupName - ReplicateNow
5757
5858
5959
6060# Find the existing mounted snapshot so it can be dismounted
61- $FindMount = Get-PsbSnapshotSetMountHistory - FlashArrayAddress $ArrayName - FlashArrayCredential $FlashArrayCredential | Where-Object {($_.Computer -contains $TargetSQLServer -and $_.HistoryId -match $VolumeSet )}
61+ $FindMount = Get-PsbSnapshotSetMountHistory - FlashArrayAddress $TargetArrayName - FlashArrayCredential $FlashArrayCredential | Where-Object {($_.Computer -contains $TargetSQLServer -and $_.HistoryId -match $VolumeSet )}
6262
6363
6464
6565# Dismount the snapshot
66- Dismount-PsbSnapshotSet - flasharrayaddress $ArrayName - flasharraycredential $FlashArrayCredential - mountid $FindMount [0 ].mountid - computeraddress $TargetSQLServer - computercredential $SQLServerCredential
66+ Dismount-PsbSnapshotSet - flasharrayaddress $TargetArrayName - flasharraycredential $FlashArrayCredential - mountid $FindMount [0 ].mountid - computeraddress $TargetSQLServer - computercredential $SQLServerCredential
6767
6868
6969
7070# Mount the newer snapshot
71- Mount-PsbSnapshotSet - HistoryId $Snapshot.HistoryId - FlashArrayAddress $ArrayName - flasharraycredential $FlashArrayCredential - computeraddress $TargetSQLServer - computercredential $SQLServerCredential - Path $TargetPath
71+ Mount-PsbSnapshotSet - HistoryId $Snapshot.HistoryId - FlashArrayAddress $TargetArrayName - flasharraycredential $FlashArrayCredential - computeraddress $TargetSQLServer - computercredential $SQLServerCredential - Path $TargetPath
7272
7373
7474
You can’t perform that action at this time.
0 commit comments