Postgresql的dump数据库备份与还原
2015-03-23 09:16
253 查看
备份
pg_dump.exe -h localhost -p 5432 -U postgres -F plain -v -f C:\Backup.sql db1 2> C:\Backup.log
还原
psql -U postgres -d NEWDB001 -f D://DB001.dmp
SQL备份
SQL还原
pg_dump.exe -h localhost -p 5432 -U postgres -F plain -v -f C:\Backup.sql db1 2> C:\Backup.log
pg_dump -U postgres DB001 > D://DB001.dmp
还原
psql.exe -h localhost -p 5432 -U postgres -d db1 -f C:\Backup.sql
psql -U postgres -d NEWDB001 -f D://DB001.dmp
SQL备份
pg_dumpall.exe -h localhost -p 5432 -U postgres -v -f C:\All.sql 2> C:\All.log
SQL还原
psql.exe -h localhost -p 5432 -U postgres -f C:\All.sql
相关文章推荐
- 【Postgres】dump数据库备份与还原
- Linux mysqldump 数据库备份与还原
- c# winform 实现对postgresql数据库的自动备份还原功能
- postgresql 数据库的初始化,配置,备份和还原
- Postgresql备份与还原命令pg_dump
- postgresql使用pg_dump、pg_restore备份及恢复数据库
- postgresql数据库的备份和还原
- postgresql 数据库的备份与还原
- pg_restore - 从一个由 pg_dump 创建的备份文件中恢复 PostgreSQL 数据库。
- c# winform 实现对postgresql数据库的自动备份还原功能
- postgresql 数据库的备份和恢复 (pg_dump 和 pg_restore)
- pg_dump实例详解(备份postgresql和greenplum数据库)
- 数据库备份与还原处理
- SQL SERVER 2000 数据库备份与还原[枫的专栏]
- 利用SQLDMO进行数据库备份还原操作
- 数据库备份与还原
- 数据库备份与还原
- 在Delphi中备份和还原数据库
- 【转】 数据库备份与还原处理
- 冷备份还原数据库是不是不能前滚恢复?(zt)