Postgresql 技巧

备份

pg_dump -f "F:/dump.sql"<file name> -U postgres<database name> -h 10.38.197.120<host name> -p 5432<host port> -O<without owner>

 

恢复

psql -f "F:/dump.sql"<file name> -U postgres<database name> -h <host name> -p 5432<host port>

posted @ 2014-07-24 14:42  八位机  阅读(184)  评论(0编辑  收藏  举报