Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 185d62a

Browse files
committed
Merge commit 'b5019b4148663e1810991c3ff337d16f3ba9c812' into PGPRO10
2 parents d8beaa2 + b5019b4 commit 185d62a

37 files changed

+2816
-1157
lines changed

contrib/pg_probackup/README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,24 @@ Regardless of the chosen backup type, all backups taken with `pg_probackup` supp
4242
* Configuration files outside of PostgreSQL data directory are not included into the backup and should be backed up separately.
4343

4444
## Installation and Setup
45+
### Linux Installation
46+
```shell
47+
#DEB Ubuntu|Debian Packages
48+
echo "deb [arch=amd64] http://repo.postgrespro.ru/pg_probackup/deb/ $(lsb_release -cs) main-$(lsb_release -cs)" > /etc/apt/sources.list.d/pg_probackup.list
49+
wget -O - http://repo.postgrespro.ru/pg_probackup/keys/GPG-KEY-PG_PROBACKUP | apt-key add - && apt-get update
50+
apt-get install pg-probackup-(10|9.6|9.5)
51+
52+
#DEB-SRC Packages
53+
echo "deb-src [arch=amd64] http://repo.postgrespro.ru/pg_probackup/deb/ $(lsb_release -cs) main-$(lsb_release -cs)" >>\
54+
/etc/apt/sources.list.d/pg_probackup.list
55+
56+
#RPM Centos Packages
57+
rpm -ivh http://repo.postgrespro.ru/pg_probackup/keys/pg_probackup-repo-centos.noarch.rpm
58+
yum install pg_probackup-(10|9.6|9.5)
59+
60+
#SRPM Centos Packages
61+
yumdownloader --source pg_probackup-(10|9.6|9.5)
62+
```
4563

4664
To compile `pg_probackup`, you must have a PostgreSQL installation and raw source tree. To install `pg_probackup`, execute this in the module's directory:
4765

contrib/pg_probackup/src/archive.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,10 @@ do_archive_push(char *wal_file_path, char *wal_file_name, bool overwrite)
6363

6464
elog(INFO, "pg_probackup archive-push from %s to %s", absolute_wal_file_path, backup_wal_file_path);
6565

66-
#ifdef HAVE_LIBZ
6766
if (compress_alg == PGLZ_COMPRESS)
6867
elog(ERROR, "pglz compression is not supported");
68+
69+
#ifdef HAVE_LIBZ
6970
if (compress_alg == ZLIB_COMPRESS)
7071
is_compress = IsXLogFileName(wal_file_name);
7172
#endif

0 commit comments

Comments
 (0)