amwdnuff 发表于 2010-10-14 19:23

postgres 备份 恢复

压缩备份
pg_dump toping_db | gzip > toping_db.gz
恢复
gunzip –c toping_db.gz | psql toping_db
用split分割也可以实现大数据库的备份
备份
pg_dump toping_db | split -b 2m toping_db
恢复
cat toping_db* | psql toping_db



页: [1]
查看完整版本: postgres 备份 恢复