Skip to content

Commit cadf9cc

Browse files
authored
Update how-to-restore-server-cli.md
Added geo restore clis
1 parent 7d4c544 commit cadf9cc

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

articles/postgresql/flexible-server/how-to-restore-server-cli.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,30 @@ az postgres flexible-server restore \
6969

7070
Time taken to restore will depend on the size of the data stored in the server.
7171

72+
## Geo-Restore a server from geo-backup to a new server
73+
74+
You can run the following command to restore a server to an earliest existing backup.
75+
76+
**Usage**
77+
```azurecli
78+
az postgres flexible-server geo-restore --source-server
79+
--location
80+
[--name]
81+
[--no-wait]
82+
[--resource-group]
83+
[--subscription]
84+
85+
```
86+
**Example:** To perform a geo-restore of a source server 'mydemoserver' which is located in region East US to a new server 'mydemoserver-restored' in it’s geo-paired location West US with the same network setting you can run following command.
87+
88+
```azurecli
89+
az postgres flexible-server geo-restore \
90+
--name mydemoserver-restored \
91+
--resource-group myresourcegroup \
92+
--location "West US" \
93+
--source-server mydemoserver
94+
```
95+
7296
## Perform post-restore tasks
7397
After the restore is completed, you should perform the following tasks to get your users and applications back up and running:
7498

0 commit comments

Comments
 (0)