|
$vault = Get-AzRecoveryServicesVault -resourceGroupName "CoreBackups-rg" -name "Core-Prod-Backupsrsv"
|
Date | 20.06.2023 | Size | 12.42 Kb. | | #61572 |
| vault
$vault = Get-AzRecoveryServicesVault -ResourceGroupName "CoreBackups-RG" -Name "Core-Prod-BackupsRSV"
$BackupItem = Get-AzRecoveryServicesBackupItem -BackupManagementType "AzureVM" -WorkloadType "AzureVM" -Name "USRDCSBRDP16" -VaultId $vault.ID
$StartDate = (Get-Date).AddDays(-7)
$EndDate = Get-Date
#$RP = Get-AzRecoveryServicesBackupRecoveryPoint -Item $BackupItem -StartDate $StartDate.ToUniversalTime() -EndDate $EndDate.ToUniversalTime() -VaultId $vault.ID
Get-AzRecoveryServicesBackupRecoveryPoint -Item $BackupItem -StartDate $StartDate.ToUniversalTime() -EndDate $EndDate.ToUniversalTime() -VaultId $vault.ID
$RP[0]
Restore-AzRecoveryServicesBackupItem -RecoveryPoint $RP[0] -TargetResourceGroupName "EUS-Sandbox-RG" -StorageAccountName "22811eussactxv042815050" -StorageAccountResourceGroupName "EUS-Sandbox-RG" -TargetVMName "PRDFIL01R" -TargetVNetName "EUS-Sandbox-Vnet" -TargetVNetResourceGroup "networking-rg" -TargetSubnetName "infra-subnet" -VaultId $vault.ID -VaultLocation $vault.Location
$vault = Get-AzRecoveryServicesVault -ResourceGroupName "CoreBackups-RG" -Name "Core-Prod-BackupsRSV"
$Joblist = Get-AzRecoveryServicesBackupJob -VaultId $vault.ID
$Joblist[0]
Share with your friends: |
The database is protected by copyright ©ininet.org 2024
send message
|
|