Get-AzRecoveryServicesBackupRecoveryLogChain
이 명령은 지정된 백업 항목의 끊어지지 않은 로그 체인의 시작점과 끝점을 나열합니다. 이를 사용하여 사용자가 DB를 복원하려는 지정 시간이 유효한지 여부를 확인합니다.
Syntax
Get-AzRecoveryServicesBackupRecoveryLogChain
[-Item] <ItemBase>
[-UseSecondaryRegion]
[-VaultId <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzRecoveryServicesBackupRecoveryLogChain
[[-StartDate] <DateTime>]
[[-EndDate] <DateTime>]
[-Item] <ItemBase>
[-UseSecondaryRegion]
[-VaultId <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
Get-AzRecoveryServicesBackupRecoveryLogChain cmdlet은 백업된 Azure Backup 항목에 대한 시간 범위 복구 지점을 시간 단위로 가져옵니다. 항목이 백업 되면 AzRecoveryServicesBackupRecoveryLogChain 개체에 하나 이상의 복구 시간 범위가 있습니다.
예제
예 1
$StartDate = (Get-Date).AddDays(-7)
$EndDate = Get-Date
$Container = Get-AzRecoveryServicesBackupContainer -ContainerType AzureWorkload
$RP = Get-AzRecoveryServicesBackupItem -Container $Container -WorkloadType MSSQL | Get-AzRecoveryServicesBackupRecoveryLogChain -StartDate $Startdate.ToUniversalTime() -EndDate $Enddate.ToUniversalTime()
첫 번째 명령은 7일 전의 날짜를 가져오고 $StartDate 변수에 저장합니다. 두 번째 명령은 오늘 날짜를 가져오고 $EndDate 변수에 저장합니다. 세 번째 명령은 AzureWorkload 백업 컨테이너를 가져오고 $Container 변수에 저장합니다. 네 번째 명령은 백업 항목을 가져오고 파이프된 cmdlet에서 백업 항목 개체로 공유합니다. 마지막 명령은 $BackupItem 항목에 대한 복구 지점 시간 범위의 배열을 가져오고 $RP 변수에 저장합니다.
예제 2
이 명령은 지정된 백업 항목의 끊어지지 않은 로그 체인의 시작점과 끝점을 나열합니다. (자동 생성됨)
Get-AzRecoveryServicesBackupRecoveryLogChain -Item $Item -VaultId $vault.ID
매개 변수
-DefaultProfile
Azure와의 통신에 사용되는 자격 증명, 계정, 테넌트 및 구독입니다.
Type: | IAzureContextContainer |
Aliases: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-EndDate
복구 지점을 가져와야 하는 시간 범위의 종료 시간
Type: | Nullable<T>[DateTime] |
Position: | 1 |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Item
복구 지점을 가져와야 하는 Protected Item 개체
Type: | ItemBase |
Position: | 2 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-StartDate
복구 지점을 가져와야 하는 시간 범위의 시작 시간 범위
Type: | Nullable<T>[DateTime] |
Position: | 0 |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-UseSecondaryRegion
지역 간 복원을 위한 보조 지역의 필터
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-VaultId
Recovery Services 자격 증명 모음의 ARM ID입니다.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
입력
System.String
출력
Azure PowerShell
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기