1.安装依赖
pgbackrest需要依赖 postgresql-libs 和 libssh2,因此,需要先安装,否则,直接安装pgbackrest会报错:
root@pg181:~# rpm -ivh pgbackrest-2.57.0-4PGDG.rhel10.x86_64.rpm
warning: pgbackrest-2.57.0-4PGDG.rhel10.x86_64.rpm: Header V4 RSA/SHA256 Signature, key ID 08b40d20: NOKEY
error: Failed dependencies:
libpq.so.5()(64bit) is needed by pgbackrest-2.57.0-4PGDG.rhel10.x86_64
libssh2 is needed by pgbackrest-2.57.0-4PGDG.rhel10.x86_64
libssh2.so.1()(64bit) is needed by pgbackrest-2.57.0-4PGDG.rhel10.x86_64
postgresql-libs is needed by pgbackrest-2.57.0-4PGDG.rhel10.x86_64
root@pg181:~# pgbackrest
pgBackRest 2.57.0 - General help
Usage:
pgbackrest [options] [command]
Commands:
annotate add or modify backup annotation
archive-get get a WAL segment from the archive
archive-push push a WAL segment to the archive
backup backup a database cluster
check check the configuration
expire expire backups that exceed retention
help get help
info retrieve information about backups
repo-get get a file from a repository
repo-ls list files in a repository
restore restore a database cluster
server pgBackRest server
server-ping ping pgBackRest server
stanza-create create the required stanza data
stanza-delete delete a stanza
stanza-upgrade upgrade a stanza
start allow pgBackRest processes to run
stop stop pgBackRest processes from running
verify verify contents of a repository
version get version
Use 'pgbackrest help [command]' for more information.