How to clone a database from one azure postgres flexible server to another.

Vasek Polak 80 Reputation points
2023-11-07T15:58:36.53+00:00

How to clone a database from one azure postgres flexible server to another.

Azure Database for PostgreSQL
0 comments No comments
{count} votes

Accepted answer
  1. RahulRandive 10,486 Reputation points Volunteer Moderator
    2023-11-07T16:43:53.6333333+00:00

    Hi @Vasek Polak

    You can perform using dump and restore method.

    You can use pg_dump to extract a PostgreSQL database into a script file and psql to import the data into the target database from that file. If you want to migrate all the databases, you can use pg_dumpall to dump all the databases into one script file.

    Here is an articles- https://learn.microsoft.com/en-us/azure/postgresql/migrate/how-to-migrate-using-dump-and-restore

    https://learn.microsoft.com/en-us/azure/postgresql/flexible-server/how-to-pgdump-restore

    Thank you!


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.