首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在没有安装pg_receivewal服务器的情况下用pg_basebackup和PostgreSQL安装Barman?

如何在没有安装pg_receivewal服务器的情况下用pg_basebackup和PostgreSQL安装Barman?
EN

Database Administration用户
提问于 2020-03-06 01:21:39
回答 2查看 823关注 0票数 0

按照正式文件,只需要用yum或apt直接安装酒保:

http://docs.pgbarman.org/release/2.10/#installation

无需在酒吧服务员服务器上安装PostgreSQL服务器。

但是为了使用barman,这两个库是必需的:pg_receivewalpg_basebackup。如果安装/usr/pgsql-10/bin/服务器,则它们位于路径PostgreSQL中。

如何在不安装PostgreSQL服务器的情况下完成它们?反正有吗?

EN

回答 2

Database Administration用户

回答已采纳

发布于 2020-03-06 08:39:57

实际上,给定的URL还在系统需求部分中表示:

>= /UnixPython3.4Python模块: argh >= 0.21.2 psycopg2 >= 2.4.2 Python setuptools PostgreSQL >= 8.3 rsync >= 3.0.4 ( PostgreSQL >= 9.2可选)

看起来您需要安装PostgreSQL服务器。

票数 1
EN

Database Administration用户

发布于 2020-03-06 11:13:41

我在PostgreSQL客户端10上做了一个CentOS 7测试:

代码语言:javascript
复制
# yum info postgresql10            
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: centos.mirrors.proxad.net
 * centos-sclo-rh: centos.mirror.fr.planethoster.net
 * centos-sclo-sclo: centos.mirrors.proxad.net
 * extras: centos.mirrors.proxad.net
 * updates: centos.mirrors.proxad.net
Installed Packages
Name        : postgresql10
Arch        : x86_64
Version     : 10.12
Release     : 1PGDG.rhel7
Size        : 8.3 M
Repo        : installed
From repo   : pgdg10
Summary     : PostgreSQL client programs and libraries
URL         : https://www.postgresql.org/
License     : PostgreSQL
Description : PostgreSQL is an advanced Object-Relational database management system (DBMS).
            : The base postgresql package contains the client programs that you'll need to
            : access a PostgreSQL DBMS server, as well as HTML documentation for the whole
            : system.  These client programs can be located on the same machine as the
            : PostgreSQL server, or on a remote machine that accesses a PostgreSQL server
            : over a network connection.  The PostgreSQL server can be found in the
            : postgresql10-server sub-package.
            : 
            : If you want to manipulate a PostgreSQL database on a local or remote PostgreSQL
            : server, you need this package. You also need to install this package
            : if you're installing the postgresql10-server package.

它有以下可执行文件

代码语言:javascript
复制
# ls -rtl /usr/pgsql-10/bin
total 2372
-rwxr-xr-x 1 root root 581984 11 févr 23:04 psql
-rwxr-xr-x 1 root root 126152 11 févr 23:04 pgbench
-rwxr-xr-x 1 root root  79576 11 févr 23:04 pg_waldump
-rwxr-xr-x 1 root root 125752 11 févr 23:04 pg_upgrade
-rwxr-xr-x 1 root root  24784 11 févr 23:04 pg_test_timing
-rwxr-xr-x 1 root root  29104 11 févr 23:04 pg_test_fsync
-rwxr-xr-x 1 root root  79744 11 févr 23:04 pg_rewind
-rwxr-xr-x 1 root root 159544 11 févr 23:04 pg_restore
-rwxr-xr-x 1 root root  67568 11 févr 23:04 pg_receivewal
-rwxr-xr-x 1 root root  92616 11 févr 23:04 pg_dumpall
-rwxr-xr-x 1 root root 384352 11 févr 23:04 pg_dump
-rwxr-xr-x 1 root root  28752 11 févr 23:04 pg_config
-rwxr-xr-x 1 root root 105488 11 févr 23:04 pg_basebackup
-rwxr-xr-x 1 root root  28816 11 févr 23:04 pg_archivecleanup
-rwxr-xr-x 1 root root  54488 11 févr 23:04 dropuser
-rwxr-xr-x 1 root root  54520 11 févr 23:04 dropdb
-rwxr-xr-x 1 root root  59272 11 févr 23:04 createuser
-rwxr-xr-x 1 root root  58840 11 févr 23:04 createdb
-rwxr-xr-x 1 root root  63256 11 févr 23:04 vacuumdb
-rwxr-xr-x 1 root root  58960 11 févr 23:04 reindexdb
-rwxr-xr-x 1 root root  54448 11 févr 23:04 pg_isready
-rwxr-xr-x 1 root root  58872 11 févr 23:04 clusterdb
# 

这意味着应该可以只为barman安装PostgreSQL客户端。

票数 0
EN
页面原文内容由Database Administration提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://dba.stackexchange.com/questions/261325

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档