美濃小孩
2011年2月20日 星期日
Postgresql 常用備份及還原
#備份資料Postgresql中的testdb 資料庫到檔按testdb.dmp
pg_dump -F c -i -v -f testdb.dmp testdb
#還原資料庫到Postgresql
#1.建立資料庫testdb2
createdb testdb2
#2.還原資料
pg_restore -F c -i -v -d testedb2 testdb.dmp
沒有留言:
張貼留言
較新的文章
首頁
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言