postgres备份数据库

来源:https://www.jianshu.com/p/aec23e5f2301

关键:

复制,将数据库信息导出到the_backup.sql文件

 pg_dump the_db_name > the_backup.sql
 

然后恢复,将the_backup.sql数据库信息导入其他数据库

 psql the_new_dev_db < the_backup.sql



作者:hjiangwen
链接:https://www.jianshu.com/p/aec23e5f2301
来源:简书
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。


猜你喜欢

转载自www.cnblogs.com/144823836yj/p/12627544.html