红联Linux门户
Linux帮助

PostgreSQL在Linux上的恢复

发布时间:2007-09-28 00:55:16来源:红联作者:qdtantao
在Windows上备份:
pg_dump -U postgres olddb > db.backup

在Linux上恢复:
#su - postgres
$createdb newdb
$initdb newsdb
$psql -U postgres newdb < db.backup
$psql newdb
#select * from tablename; (看看数据是否都过来了。)
文章评论

共有 0 条评论