AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / dba / 问题 / 261325
Accepted
rawmain
rawmain
Asked: 2020-03-06 17:21:39 +0800 CST2020-03-06 17:21:39 +0800 CST 2020-03-06 17:21:39 +0800 CST

如何在不安装 PostgreSQL 服务器的情况下使用 pg_receivewal 和 pg_basebackup 安装 Barman?

  • 772

按照官方文档,只需通过yum或apt直接安装barman即可:

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

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

但是为了使用酒保,这两个库是必需的:pg_receivewal和pg_basebackup. /usr/pgsql-10/bin/如果安装 PostgreSQL 服务器,它们在路径中。

如何在不安装 PostgreSQL 服务器的情况下制作它们?到底有没有?

postgresql barman
  • 2 2 个回答
  • 652 Views

2 个回答

  • Voted
  1. Best Answer
    pifor
    2020-03-07T00:39:57+08:002020-03-07T00:39:57+08:00

    实际上,给定的 URL 在系统要求部分也有说明:

    Linux/Unix
    Python >= 3.4
    Python modules:
        argcomplete
        argh >= 0.21.2
        psycopg2 >= 2.4.2
        python-dateutil
        setuptools
    PostgreSQL >= 8.3
    rsync >= 3.0.4 (optional for PostgreSQL >= 9.2)
    

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

    • 1
  2. pifor
    2020-03-07T03:13:41+08:002020-03-07T03:13:41+08:00

    我在 CentOS 7 上使用 PostgreSQL 客户端 10 进行了测试:

    # 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.
    

    它具有以下可执行文件

    # 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
    # 
    

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

    • 0

相关问题

  • 我可以在使用数据库后激活 PITR 吗?

  • 运行时间偏移延迟复制的最佳实践

  • 存储过程可以防止 SQL 注入吗?

  • PostgreSQL 中 UniProt 的生物序列

  • PostgreSQL 9.0 Replication 和 Slony-I 有什么区别?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    连接到 PostgreSQL 服务器:致命:主机没有 pg_hba.conf 条目

    • 12 个回答
  • Marko Smith

    如何让sqlplus的输出出现在一行中?

    • 3 个回答
  • Marko Smith

    选择具有最大日期或最晚日期的日期

    • 3 个回答
  • Marko Smith

    如何列出 PostgreSQL 中的所有模式?

    • 4 个回答
  • Marko Smith

    列出指定表的所有列

    • 5 个回答
  • Marko Smith

    如何在不修改我自己的 tnsnames.ora 的情况下使用 sqlplus 连接到位于另一台主机上的 Oracle 数据库

    • 4 个回答
  • Marko Smith

    你如何mysqldump特定的表?

    • 4 个回答
  • Marko Smith

    使用 psql 列出数据库权限

    • 10 个回答
  • Marko Smith

    如何从 PostgreSQL 中的选择查询中将值插入表中?

    • 4 个回答
  • Marko Smith

    如何使用 psql 列出所有数据库和表?

    • 7 个回答
  • Martin Hope
    Jin 连接到 PostgreSQL 服务器:致命:主机没有 pg_hba.conf 条目 2014-12-02 02:54:58 +0800 CST
  • Martin Hope
    Stéphane 如何列出 PostgreSQL 中的所有模式? 2013-04-16 11:19:16 +0800 CST
  • Martin Hope
    Mike Walsh 为什么事务日志不断增长或空间不足? 2012-12-05 18:11:22 +0800 CST
  • Martin Hope
    Stephane Rolland 列出指定表的所有列 2012-08-14 04:44:44 +0800 CST
  • Martin Hope
    haxney MySQL 能否合理地对数十亿行执行查询? 2012-07-03 11:36:13 +0800 CST
  • Martin Hope
    qazwsx 如何监控大型 .sql 文件的导入进度? 2012-05-03 08:54:41 +0800 CST
  • Martin Hope
    markdorison 你如何mysqldump特定的表? 2011-12-17 12:39:37 +0800 CST
  • Martin Hope
    Jonas 如何使用 psql 对 SQL 查询进行计时? 2011-06-04 02:22:54 +0800 CST
  • Martin Hope
    Jonas 如何从 PostgreSQL 中的选择查询中将值插入表中? 2011-05-28 00:33:05 +0800 CST
  • Martin Hope
    Jonas 如何使用 psql 列出所有数据库和表? 2011-02-18 00:45:49 +0800 CST

热门标签

sql-server mysql postgresql sql-server-2014 sql-server-2016 oracle sql-server-2008 database-design query-performance sql-server-2017

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve