Skip to content

Commit e0da62a

Browse files
authored
Merge pull request #190240 from kanshiG/patch-105
Update get-latest-restore-timestamp.md
2 parents 6e82381 + 2a7c59a commit e0da62a

File tree

1 file changed

+130
-4
lines changed

1 file changed

+130
-4
lines changed

articles/cosmos-db/get-latest-restore-timestamp.md

Lines changed: 130 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ author: kanshiG
55
ms.author: govindk
66
ms.service: cosmos-db
77
ms.subservice: cosmosdb-sql
8-
ms.date: 11/18/2021
8+
ms.date: 03/02/2022
99
ms.topic: how-to
10-
ms.reviewer: sngun
10+
ms.reviewer: wiassaf
1111
---
1212

1313
# Get the latest restorable timestamp for continuous backup accounts
14-
[!INCLUDE[appliesto-sql-mongodb-api](includes/appliesto-sql-mongodb-api.md)]
14+
[!INCLUDE[appliesto-all-apis-except-cassandra](includes/appliesto-all-apis-except-cassandra.md)]
1515

16-
This article describes how to get the [latest restorable timestamp](latest-restore-timestamp-continuous-backup.md) for accounts with continuous backup mode. It explains how to get the latest restorable time for SQL containers and MongoDB collections using Azure PowerShell and Azure CLI. You can see the request and response format for the PowerShell and CLI commands.
16+
This article describes how to get the [latest restorable timestamp](latest-restore-timestamp-continuous-backup.md) for accounts with continuous backup mode. It explains how to get the latest restorable time for SQL containers, Table API Tables (in Preview), Graph API graphs(in Preview), and MongoDB collections using Azure PowerShell and Azure CLI. You can see the request and response format for the PowerShell and CLI commands.
1717

1818
## SQL container
1919

@@ -494,6 +494,132 @@ Latest restorable timestamp for an account is minimum of restorable timestamps o
494494
Wednesday, November 3, 2021 8:33:49 PM
495495
```
496496

497+
## Gremlin Graph Backup information
498+
499+
### PowerShell
500+
501+
```powershell
502+
Get-AzCosmosDBGremlinGraphBackupInformation `
503+
-AccountName <System.String> `
504+
-GremlinDatabaseName <System.String> `
505+
[-DefaultProfile <Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer>] `
506+
-Location <System.String> `
507+
-Name <System.String> `
508+
-ResourceGroupName <System.String> [<CommonParameters>]
509+
```
510+
511+
**Sample request:**
512+
513+
```powershell
514+
Get-AzCosmosDBGremlinGraphBackupInformation `
515+
-ResourceGroupName "rg" `
516+
-AccountName "amisigremlinpitracc1" `
517+
-GremlinDatabaseName "db1" `
518+
-Name "graph1" `
519+
-Location "eastus"
520+
```
521+
522+
**Sample response (In UTC Format):**
523+
524+
```console
525+
LatestRestorableTimestamp
526+
-------------------------
527+
3/1/2022 2:19:14 AM
528+
```
529+
530+
### CLI
531+
532+
```azurecli
533+
az cosmosdb gremlin retrieve-latest-backup-time \
534+
-g {resourcegroup} \
535+
-a {accountname} \
536+
-d {db_name} \
537+
-c {graph_name} \
538+
-l {location}
539+
```
540+
541+
**Sample request:**
542+
543+
```azurecli
544+
az cosmosdb gremlin retrieve-latest-backup-time \
545+
-g "rg" \
546+
-a "amisigremlinpitracc1" \
547+
-d "db1" \
548+
-c "graph1" \
549+
-l "eastus"
550+
```
551+
552+
**Sample response:**
553+
554+
```console
555+
{
556+
"continuousBackupInformation": {
557+
"latestRestorableTimestamp": "3/2/2022 5:31:13 AM"
558+
}
559+
}
560+
```
561+
562+
## Table Backup information
563+
564+
### PowerShell
565+
566+
```powershell
567+
Get-AzCosmosDBTableBackupInformation `
568+
-AccountName <System.String> `
569+
[-DefaultProfile <Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer>] `
570+
-Location <System.String> `
571+
-Name <System.String> `
572+
-ResourceGroupName <System.String> [<CommonParameters>]
573+
```
574+
575+
**Sample request:**
576+
577+
```powershell
578+
Get-AzCosmosDBTableBackupInformation `
579+
-ResourceGroupName "rg" `
580+
-AccountName "amisitablepitracc1" `
581+
-Name "table1" `
582+
-Location "eastus"
583+
```
584+
585+
**Sample response (In UTC Format):**
586+
587+
```console
588+
LatestRestorableTimestamp
589+
-------------------------
590+
3/2/2022 2:19:15 AM
591+
```
592+
593+
### CLI
594+
595+
```azurecli
596+
az cosmosdb table retrieve-latest-backup-time \
597+
-g {resourcegroup} \
598+
-a {accountname} \
599+
-c {table_name} \
600+
-l {location}
601+
```
602+
603+
**Sample request:**
604+
605+
```azurecli
606+
az cosmosdb table retrieve-latest-backup-time \
607+
-g "rg" \
608+
-a "amisitablepitracc1" \
609+
-c "table1" \
610+
-l "eastus"
611+
```
612+
613+
**Sample response:**
614+
615+
```console
616+
{
617+
"continuousBackupInformation": {
618+
"latestRestorableTimestamp": "3/2/2022 5:33:47 AM"
619+
}
620+
}
621+
```
622+
497623
## Next steps
498624

499625
* [Introduction to continuous backup mode with point-in-time restore.](continuous-backup-restore-introduction.md)

0 commit comments

Comments
 (0)