Get-AzSqlDeletedInstanceDatabaseBackup
복원할 수 있는 삭제된 데이터베이스를 가져옵니다.
구문
DeletedDatabaseList (기본값)
Get-AzSqlDeletedInstanceDatabaseBackup
[-ResourceGroupName] <String>
[-InstanceName] <String>
[-DatabaseName <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
DeletedDatabaseByNameAndDeletedTime
Get-AzSqlDeletedInstanceDatabaseBackup
[-ResourceGroupName] <String>
[-InstanceName] <String>
[-DeletionDate] <DateTime>
-DatabaseName <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
Get-AzSqlDeletedInstanceDatabaseBackup cmdlet은 복원할 수 있는 지정된 삭제된 SQL 인스턴스 데이터베이스 백업 또는 복원할 수 있는 모든 삭제된 백업을 가져옵니다.
이 cmdlet은 Azure의 SQL Instance Stretch Database 서비스에서도 지원됩니다.
예제
예제 1: 서버에서 삭제된 모든 데이터베이스 백업 가져오기
Get-AzSqlDeletedInstanceDatabaseBackup -ResourceGroupName "ContosoResourceGroup" -InstanceName "ContosoServer"
DeletionDate : 2019-03-03 12:00:17 AM
ResourceGroupName : ContosoResourceGroup
ManagedInstanceName : ContosoServer
Name : DB1
CreationDate : 2019-03-02 11:00:51 PM
EarliestRestorePoint : 2019-03-02 11:05:30 PM
Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ContosoResourceGroup/providers/Microsoft.
Sql/managedInstances/ContosoServer/restorableDroppedDatabases/DB1,13196044
8170400000
DeletionDate : 2019-03-02 11:00:16 PM
ResourceGroupName : ContosoResourceGroup
ManagedInstanceName : ContosoServer
Name : DB1
CreationDate : 2019-03-02 10:00:51 PM
EarliestRestorePoint : 2019-03-02 10:05:29 PM
Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ContosoResourceGroup/providers/Microsoft.
Sql/managedInstances/ContosoServer/restorableDroppedDatabases/DB1,13196041
2168670000
DeletionDate : 2019-03-04 04:00:08 AM
ResourceGroupName : ContosoResourceGroup
ManagedInstanceName : ContosoServer
Name : DB3
CreationDate : 2019-03-04 03:00:31 AM
EarliestRestorePoint : 2019-03-04 03:05:23 AM
Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ContosoResourceGroup/providers/Microsoft.
Sql/managedInstances/ContosoServer/restorableDroppedDatabases/DB3,13196145
6082100000
이 명령은 서버에서 삭제된 모든 데이터베이스 백업을 가져옵니다.
예제 2: 지정된 삭제된 데이터베이스 백업 가져오기
Get-AzSqlDeletedInstanceDatabaseBackup -ResourceGroupName "ContosoResourceGroup" -InstanceName "ContosoServer" -DatabaseName "DB1"
DeletionDate : 2019-03-03 12:00:17 AM
ResourceGroupName : ContosoResourceGroup
ManagedInstanceName : ContosoServer
Name : DB1
CreationDate : 2019-03-02 11:00:51 PM
EarliestRestorePoint : 2019-03-02 11:05:30 PM
Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ContosoResourceGroup/providers/Microsoft.
Sql/managedInstances/ContosoServer/restorableDroppedDatabases/DB1,13196044
8170400000
DeletionDate : 2019-03-02 11:00:16 PM
ResourceGroupName : ContosoResourceGroup
ManagedInstanceName : ContosoServer
Name : DB1
CreationDate : 2019-03-02 10:00:51 PM
EarliestRestorePoint : 2019-03-02 10:05:29 PM
Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ContosoResourceGroup/providers/Microsoft.
Sql/managedInstances/ContosoServer/restorableDroppedDatabases/DB1,13196041
2168670000
매개 변수
-DatabaseName
백업을 검색할 Azure SQL Instance 데이터베이스의 이름입니다.
매개 변수 속성
형식: String
Default value: None
와일드카드 지원: False
DontShow: False
매개 변수 집합
DeletedDatabaseList
Position: Named
필수: False
파이프라인의 값: False
속성 이름별 파이프라인의 값: False
나머지 인수의 값: False
-DefaultProfile
Azure와의 통신에 사용되는 자격 증명, 계정, 테넌트 및 구독입니다.
매개 변수 속성
형식: IAzureContextContainer
Default value: None
와일드카드 지원: False
DontShow: False
별칭: AzContext, AzureRmContext, AzureCredential
매개 변수 집합
(All)
Position: Named
필수: False
파이프라인의 값: False
속성 이름별 파이프라인의 값: False
나머지 인수의 값: False
-DeletionDate
백업을 검색할 Azure SQL Instance Database의 삭제 날짜(예: 2016-02-23T00:21:22.847Z)
매개 변수 속성
매개 변수 집합
DeletedDatabaseByNameAndDeletedTime
Position: 3
필수: True
파이프라인의 값: False
속성 이름별 파이프라인의 값: False
나머지 인수의 값: False
-InstanceName
데이터베이스가 있는 Azure SQL Managed Instance의 이름입니다.
매개 변수 속성
형식: String
Default value: None
와일드카드 지원: False
DontShow: False
매개 변수 집합
(All)
Position: 1
필수: True
파이프라인의 값: False
속성 이름별 파이프라인의 값: False
나머지 인수의 값: False
-ResourceGroupName
리소스 그룹의 이름입니다.
매개 변수 속성
형식: String
Default value: None
와일드카드 지원: False
DontShow: False
매개 변수 집합
(All)
Position: 0
필수: True
파이프라인의 값: False
속성 이름별 파이프라인의 값: False
나머지 인수의 값: False
CommonParameters
이 cmdlet은 일반적인 매개 변수인 -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction 및 -WarningVariable 매개 변수를 지원합니다. 자세한 내용은 about_CommonParameters 를 참조하세요.
None
출력