Skip to content

Commit 6e291e7

Browse files
committed
Address ask in github issues.
1 parent 76a1629 commit 6e291e7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

articles/app-service/tutorial-python-postgresql-app.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -472,6 +472,7 @@ Having issues? [Let us know](https://aka.ms/DjangoCLITutorialHelp).
472472
- [How is the Django sample configured to run on Azure App Service?](#how-is-the-django-sample-configured-to-run-on-azure-app-service)
473473
- [I can't connect to the SSH session](#i-cant-connect-to-the-ssh-session)
474474
- [I get an error when running database migrations](#i-get-an-error-when-running-database-migrations)
475+
- [How can I migrate data from my local machine to my Azure PostgreSQL server?]()
475476

476477
#### How much does this setup cost?
477478

@@ -527,6 +528,12 @@ If you can't connect to the SSH session, then the app itself has failed to start
527528

528529
If you encounter any errors related to connecting to the database, check if the app settings (`DBHOST`, `DBNAME`, `DBUSER`, and `DBPASS`) have been changed. Without those settings, the migrate command can't communicate with the database.
529530

531+
#### How can I migrate data from my local machine to my Azure PostgreSQL server?
532+
533+
For simple migration scenarios with one database, small amounts of data, or infrequent migrations, you can use [pg_dump](https://www.postgresql.org/docs/current/static/app-pgdump.html) to extract a PostgreSQL database into a dump file. Then use [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`. For more information, see [Migrate your PostgreSQL database by using dump and restore](azure/postgresql/migrate/how-to-migrate-using-dump-and-restore).
534+
535+
For more complex migration scenarios with multiple databases and minimal downtime, use [Azure Database Migration Service](/azure/dms/). Azure Database Migration Service is a fully managed Azure service that helps you easily migrate various databases to their corresponding Azure data services. For an example, see [Tutorial: Migrate PostgreSQL to Azure DB for PostgreSQL online using DMS via the Azure portal](/azure/dms/tutorial-postgresql-azure-postgresql-online-portal).
536+
530537
## Next steps
531538

532539
Learn how to map a custom DNS name to your app:

0 commit comments

Comments
 (0)