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/howto-migrate-using-dump-and-restore.md
+8-7Lines changed: 8 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,26 +5,27 @@ author: rachel-msft
5
5
ms.author: raagyema
6
6
ms.service: postgresql
7
7
ms.topic: conceptual
8
-
ms.date: 5/6/2019
8
+
ms.date: 09/24/2019
9
9
---
10
+
10
11
# Migrate your PostgreSQL database using dump and restore
11
-
You can use [pg_dump](https://www.postgresql.org/docs/9.3/static/app-pgdump.html) to extract a PostgreSQL database into a dump file and [pg_restore](https://www.postgresql.org/docs/9.3/static/app-pgrestore.html) to restore the PostgreSQL database from an archive file created by pg_dump.
12
+
You can use [pg_dump](https://www.postgresql.org/docs/current/static/app-pgdump.html) to extract a PostgreSQL database into a dump file and [pg_restore](https://www.postgresql.org/docs/current/static/app-pgrestore.html) to restore the PostgreSQL database from an archive file created by pg_dump.
12
13
13
14
## Prerequisites
14
15
To step through this how-to guide, you need:
15
16
- An [Azure Database for PostgreSQL server](quickstart-create-server-database-portal.md) with firewall rules to allow access and database under it.
16
-
-[pg_dump](https://www.postgresql.org/docs/9.6/static/app-pgdump.html) and [pg_restore](https://www.postgresql.org/docs/9.6/static/app-pgrestore.html) command-line utilities installed
17
+
-[pg_dump](https://www.postgresql.org/docs/current/static/app-pgdump.html) and [pg_restore](https://www.postgresql.org/docs/current/static/app-pgrestore.html) command-line utilities installed
17
18
18
19
Follow these steps to dump and restore your PostgreSQL database:
19
20
20
21
## Create a dump file using pg_dump that contains the data to be loaded
21
22
To back up an existing PostgreSQL database on-premises or in a VM, run the following command:
One way to migrate your existing PostgreSQL database to Azure Database for PostgreSQL service is to back up the database on the source and restore it in Azure. To minimize the time required to complete the migration, consider using the following parameters with the backup and restore commands.
52
53
53
54
> [!NOTE]
54
-
> For detailed syntax information, see the articles [pg_dump](https://www.postgresql.org/docs/9.6/static/app-pgdump.html) and [pg_restore](https://www.postgresql.org/docs/9.6/static/app-pgrestore.html).
55
+
> For detailed syntax information, see the articles [pg_dump](https://www.postgresql.org/docs/current/static/app-pgdump.html) and [pg_restore](https://www.postgresql.org/docs/current/static/app-pgrestore.html).
55
56
>
56
57
57
58
### For the backup
58
59
- Take the backup with the -Fc switch so that you can perform the restore in parallel to speed it up. For example:
Copy file name to clipboardExpand all lines: articles/postgresql/howto-migrate-using-export-and-import.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,16 +5,16 @@ author: rachel-msft
5
5
ms.author: raagyema
6
6
ms.service: postgresql
7
7
ms.topic: conceptual
8
-
ms.date: 5/6/2019
8
+
ms.date: 09/24/2019
9
9
---
10
10
# Migrate your PostgreSQL database using export and import
11
11
You can use [pg_dump](https://www.postgresql.org/docs/current/static/app-pgdump.html) to extract a PostgreSQL database into a script file and [psql](https://www.postgresql.org/docs/current/static/app-psql.html) to import the data into the target database from that file.
12
12
13
13
## Prerequisites
14
14
To step through this how-to guide, you need:
15
15
- An [Azure Database for PostgreSQL server](quickstart-create-server-database-portal.md) with firewall rules to allow access and database under it.
0 commit comments