这篇文章给大家分享的是有关Postgresql物理备份工具pg_rman目怎么用的内容。小编觉得挺实用的,因此分享给大家做个参考,一起跟随小编过来看看吧。
OS: Ubuntu 16.04.4 LTS
database: postgresql-10.5
pg_rman 是一款优秀的postgresql 在线备份和恢复的工具.
下载: https://github.com/ossc-db/pg_rman
使用文档: http://ossc-db.github.io/pg_rman/index.html
参考: https://github.com/ossc-db/pg_rman/tree/master
各版本软件包: https://github.com/ossc-db/pg_rman/releases
因为数据库版本是:postgresql-10.5,需要下载相应的pg_rman REL_10_STABLE: branch for postgresql-10.5
# su - postgres $ mkdir packages $ cd packages/ $ git clone https://github.com/ossc-db/pg_rman.git $ cd pg_rman/
$ git branch -a 查看所有版本的分支
$ git checkout REL_10_STABLE 指定postgresql版本对应的分支
$ git status 查看状态
$ make install 开始安装pg_rman 输出内容:
如果make install 出现报错:
解决办法: $ vim Makefile PG_CONfig=/services/database/install/postgresql/bin/pg_config 说明: 指定你postgresql的可执行文件的路径。 再次执行: $make install 即可安装完成。
pg_rman备份工具已经安装完成。
感谢各位的阅读!关于“Postgresql物理备份工具pg_rman目怎么用”这篇文章就分享到这里了,希望以上内容可以对大家有一定的帮助,让大家可以学到更多知识,如果觉得文章不错,可以把它分享出去让更多的人看到吧!
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。