You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/postgresql/flexible-server/how-to-restore-server-cli.md
+24Lines changed: 24 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -69,6 +69,30 @@ az postgres flexible-server restore \
69
69
70
70
Time taken to restore will depend on the size of the data stored in the server.
71
71
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
+
72
96
## Perform post-restore tasks
73
97
After the restore is completed, you should perform the following tasks to get your users and applications back up and running:
0 commit comments