How to backup & Restore PostgreSQL database in Windows7?

后端 未结 2 1964
别那么骄傲
别那么骄傲 2020-12-28 10:49

I am new to Postgres database. I have to get the backup from Production Server (pgAdmin Version is 9.2.4) & restore it on my local machine (I have pgAdmin Version 9.4).

2条回答
  •  遥遥无期
    2020-12-28 11:14

    I was stuck here when creating the database dump file due to version mismatch. So I follow the below command to get the backup and restore.

    pg_dump -h localhost -U postgres -p 5432 YourDbName > BackupFileName.dump
    

提交回复
热议问题