PCOS技术网's Archiver
首页
›
电脑技术交流
› postgres 备份 恢复
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 备份 恢复