@H_301_2@
postgresql数据库备份与还原@H_301_2@
备份数据库@H_301_2@
$ su - postgres@H_301_2@
$ pg_dump testdb > testdb.sql@H_301_2@
恢复数据库@H_301_2@
$ createdb testdb@H_301_2@
$ psql testdb < testdb.sql@H_301_2@