简体   繁体   English

如何将本地 PostgreSQL 数据库备份恢复到 Azure PostgreSQL 服务器?

[英]How to restore local PostgreSQL database backup to Azure PostgreSQL server?

I have a question of how we can restore a local database backup in Azure PostgreSQL server?我有一个问题,我们如何在 Azure PostgreSQL 服务器中恢复本地数据库备份?

Make sure you can access your database from the computer you are restoring the DB dump确保您可以从您正在恢复数据库转储的计算机访问您的数据库

pg_restore --dbname=postgresql://user:password@host:port/database_name ./path/to/your/dump.tar.gz

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM