Skip to content

Commit 623b659

Browse files
committed
Add the installation steps on various systems
1 parent 8408753 commit 623b659

File tree

3 files changed

+218
-68
lines changed

3 files changed

+218
-68
lines changed

‎README.md

+2-62
Original file line numberDiff line numberDiff line change
@@ -69,68 +69,8 @@ For detailed release plans check [Milestones](https://.com/postgrespro/pg_
6969
Installers are available in release **assets**. [Latests](https://.com/postgrespro/pg_probackup/releases/latest).
7070

7171
### Linux Installation
72-
#### pg_probackup for vanilla PostgreSQL
73-
```shell
74-
#DEB Ubuntu|Debian Packages
75-
sudo sh -c 'echo "deb [arch=amd64] https://repo.postgrespro.ru/pg_probackup/deb/ $(lsb_release -cs) main-$(lsb_release -cs)" > /etc/apt/sources.list.d/pg_probackup.list'
76-
sudo wget -O - https://repo.postgrespro.ru/pg_probackup/keys/GPG-KEY-PG_PROBACKUP | sudo apt-key add - && sudo apt-get update
77-
sudo apt-get install pg-probackup-{16,15,14,13,12,11}
78-
sudo apt-get install pg-probackup-{16,15,14,13,12,11}-dbg
79-
80-
#DEB-SRC Packages
81-
sudo sh -c 'echo "deb-src [arch=amd64] https://repo.postgrespro.ru/pg_probackup/deb/ $(lsb_release -cs) main-$(lsb_release -cs)" >>\
82-
/etc/apt/sources.list.d/pg_probackup.list' && sudo apt-get update
83-
sudo apt-get source pg-probackup-{16,15,14,13,12,11,10}
84-
85-
#DEB Astra Linix Orel
86-
sudo sh -c 'echo "deb [arch=amd64] https://repo.postgrespro.ru/pg_probackup/deb/ stretch main-stretch" > /etc/apt/sources.list.d/pg_probackup.list'
87-
sudo wget -O - https://repo.postgrespro.ru/pg_probackup/keys/GPG-KEY-PG_PROBACKUP | sudo apt-key add - && sudo apt-get update
88-
sudo apt-get install pg-probackup-{16,15,14,13,12,11}{-dbg,}
89-
90-
#RPM Centos Packages
91-
rpm -ivh https://repo.postgrespro.ru/pg_probackup/keys/pg_probackup-repo-centos.noarch.rpm
92-
yum install pg_probackup-{16,15,14,13,12,11}
93-
yum install pg_probackup-{16,15,14,13,12,11}-debuginfo
94-
95-
#RPM RHEL Packages
96-
rpm -ivh https://repo.postgrespro.ru/pg_probackup/keys/pg_probackup-repo-rhel.noarch.rpm
97-
yum install pg_probackup-{16,15,14,13,12,11}
98-
yum install pg_probackup-{16,15,14,13,12,11}-debuginfo
99-
100-
#RPM Oracle Linux Packages
101-
rpm -ivh https://repo.postgrespro.ru/pg_probackup/keys/pg_probackup-repo-oraclelinux.noarch.rpm
102-
yum install pg_probackup-{16,15,14,13,12,11}
103-
yum install pg_probackup-{16,15,14,13,12,11}-debuginfo
104-
105-
#SRPM Centos|RHEL|OracleLinux Packages
106-
yumdownloader --source pg_probackup-{16,15,14,13,12,11}
107-
108-
#RPM SUSE|SLES Packages
109-
zypper install --allow-unsigned-rpm -y https://repo.postgrespro.ru/pg_probackup/keys/pg_probackup-repo-suse.noarch.rpm
110-
zypper --gpg-auto-import-keys install -y pg_probackup-{16,15,14,13,12,11}
111-
zypper install pg_probackup-{16,15,14,13,12,11}-debuginfo
112-
113-
#SRPM SUSE|SLES Packages
114-
zypper si pg_probackup-{16,15,14,13,12,11}
115-
116-
#RPM ALT Linux 8
117-
sudo sh -c 'echo "rpm https://repo.postgrespro.ru/pg_probackup/rpm/latest/altlinux-p8 x86_64 vanilla" > /etc/apt/sources.list.d/pg_probackup.list'
118-
sudo apt-get update
119-
sudo apt-get install pg_probackup-{16,15,14,13,12,11}
120-
sudo apt-get install pg_probackup-{16,15,14,13,12,11}-debuginfo
121-
122-
#RPM ALT Linux 9
123-
sudo sh -c 'echo "rpm https://repo.postgrespro.ru/pg_probackup/rpm/latest/altlinux-p9 x86_64 vanilla" > /etc/apt/sources.list.d/pg_probackup.list'
124-
sudo apt-get update
125-
sudo apt-get install pg_probackup-{16,15,14,13,12,11}
126-
sudo apt-get install pg_probackup-{16,15,14,13,12,11}-debuginfo
127-
128-
#RPM ALT Linux 10
129-
sudo sh -c 'echo "rpm https://repo.postgrespro.ru/pg_probackup/rpm/latest/altlinux-p10 x86_64 vanilla" > /etc/apt/sources.list.d/pg_probackup.list'
130-
sudo apt-get update
131-
sudo apt-get install pg_probackup-{16,15,14,13,12,11}
132-
sudo apt-get install pg_probackup-{16,15,14,13,12,11}-debuginfo
133-
```
72+
73+
See the [Installation](https://postgrespro..io/pg_probackup/#pbk-install) section in the documentation.
13474

13575
Once you have `pg_probackup` installed, complete [the setup](https://postgrespro..io/pg_probackup/#pbk-install-and-setup).
13676

‎doc/pgprobackup.xml

+214-5
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,10 @@ doc/src/sgml/pgprobackup.sgml
172172
<para><link linkend="pbk-overview">Overview</link></para>
173173
</listitem>
174174
<listitem>
175-
<para><link linkend="pbk-install-and-setup">Installation and Setup</link></para>
175+
<para><link linkend="pbk-install">Installation</link></para>
176+
</listitem>
177+
<listitem>
178+
<para><link linkend="pbk-setup">Setup</link></para>
176179
</listitem>
177180
<listitem>
178181
<para><link linkend="pbk-reference">Command-Line Reference</link></para>
@@ -451,8 +454,215 @@ doc/src/sgml/pgprobackup.sgml
451454
</refsect2>
452455
</refsect1>
453456

454-
<refsect1 id="pbk-install-and-setup">
455-
<title>Installation and Setup</title>
457+
<refsect1 id="pbk-install">
458+
<title>Installation</title>
459+
<refsect2 id="pbk-install-deb">
460+
<title>Installation on Debian family systems (Debian, Ubuntu etc.)</title>
461+
<para>
462+
You may need to use <application>apt-get</application> instead of <application>apt</application> on older systems in the commands below.
463+
</para>
464+
<orderedlist>
465+
<listitem>
466+
Add the <application>pg_probackup</application> repository GPG key
467+
<programlisting>
468+
sudo apt install gpg wget
469+
wget -O - https://repo.postgrespro.ru/pg_probackup/keys/GPG-KEY-PG_PROBACKUP | \
470+
sudo apt-key add -
471+
</programlisting>
472+
</listitem>
473+
<listitem>
474+
Setup the binary package repository
475+
<programlisting>
476+
. /etc/os-release
477+
echo "deb [arch=amd64] https://repo.postgrespro.ru/pg_probackup/deb $VERSION_CODENAME main-$VERSION_CODENAME" | \
478+
sudo tee /etc/apt/sources.list.d/pg_probackup.list
479+
</programlisting>
480+
</listitem>
481+
<listitem>
482+
Optionally setup the source package repository for rebuilding the binaries
483+
<programlisting>
484+
echo "deb-src [arch=amd64] https://repo.postgrespro.ru/pg_probackup/deb $VERSION_CODENAME main-$VERSION_CODENAME" | \
485+
sudo tee -a /etc/apt/sources.list.d/pg_probackup.list
486+
</programlisting>
487+
</listitem>
488+
<listitem>
489+
List the available <application>pg_probackup</application> packages
490+
<itemizedlist>
491+
<listitem>
492+
Using <application>apt</application>:
493+
<programlisting>
494+
sudo apt update
495+
apt search pg_probackup
496+
</programlisting>
497+
</listitem>
498+
<listitem>
499+
Using <application>apt-get</application>:
500+
<programlisting>
501+
sudo apt-get update
502+
apt-cache search pg_probackup
503+
</programlisting>
504+
</listitem>
505+
</itemizedlist>
506+
</listitem>
507+
<listitem>
508+
Install or upgrade a <application>pg_probackup</application> version of your choice
509+
<programlisting>
510+
sudo apt install pg-probackup-15
511+
</programlisting>
512+
</listitem>
513+
<listitem>
514+
Optionally install the debug package
515+
<programlisting>
516+
sudo apt install pg-probackup-15-dbg
517+
</programlisting>
518+
</listitem>
519+
<listitem>
520+
Optionally install the source package (provided you have set up the source package repository as described above)
521+
<programlisting>
522+
sudo apt install dpkg-dev
523+
sudo apt source pg-probackup-15
524+
</programlisting>
525+
</listitem>
526+
</orderedlist>
527+
</refsect2>
528+
<refsect2 id="pbk-install-rhel">
529+
<title>Installation on Red Hat family systems (CentOS, Oracle Linux etc.)</title>
530+
<para>
531+
You may need to use <application>yum</application> instead of <application>dnf</application> on older systems in the commands below.
532+
</para>
533+
<orderedlist>
534+
<listitem>
535+
Install the <application>pg_probackup</application> repository
536+
<programlisting>
537+
dnf install https://repo.postgrespro.ru/pg_probackup/keys/pg_probackup-repo-centos.noarch.rpm
538+
</programlisting>
539+
</listitem>
540+
<listitem>
541+
List the available <application>pg_probackup</application> packages
542+
<programlisting>
543+
dnf search pg_probackup
544+
</programlisting>
545+
</listitem>
546+
<listitem>
547+
Install or upgrade a <application>pg_probackup</application> version of your choice
548+
<programlisting>
549+
dnf install pg_probackup-15
550+
</programlisting>
551+
</listitem>
552+
<listitem>
553+
Optionally install the debug package
554+
<programlisting>
555+
dnf install pg_probackup-15-debuginfo
556+
</programlisting>
557+
</listitem>
558+
<listitem>
559+
Optionally install the source package for rebuilding the binaries
560+
<itemizedlist>
561+
<listitem>
562+
Using <application>dnf</application>:
563+
<programlisting>
564+
dnf install 'dnf-command(download)'
565+
dnf download --source pg_probackup-15
566+
</programlisting>
567+
</listitem>
568+
<listitem>
569+
Using <application>yum</application>:
570+
<programlisting>
571+
yumdownloader --source pg_probackup-15
572+
</programlisting>
573+
</listitem>
574+
</itemizedlist>
575+
</listitem>
576+
</orderedlist>
577+
</refsect2>
578+
<refsect2 id="pbk-install-alt">
579+
<title>Installation on ALT Linux</title>
580+
<para>
581+
You may need to use <application>yum</application> instead of <application>dnf</application> on older systems in the commands below.
582+
</para>
583+
<orderedlist>
584+
<listitem>
585+
Setup the repository
586+
<itemizedlist>
587+
<listitem>
588+
On ALT Linux 10:
589+
<programlisting>
590+
. /etc/os-release
591+
echo "rpm http://repo.postgrespro.ru/pg_probackup/rpm/latest/altlinux-p$VERSION_ID x86_64 vanilla" | \
592+
sudo tee /etc/apt/sources.list.d/pg_probackup.list
593+
</programlisting>
594+
</listitem>
595+
<listitem>
596+
On ALT Linux 8 and 9:
597+
<programlisting>
598+
. /etc/os-release
599+
echo "rpm http://repo.postgrespro.ru/pg_probackup/rpm/latest/altlinux-$VERSION_ID x86_64 vanilla" | \
600+
sudo tee /etc/apt/sources.list.d/pg_probackup.list
601+
</programlisting>
602+
</listitem>
603+
</itemizedlist>
604+
</listitem>
605+
<listitem>
606+
List the available <application>pg_probackup</application> packages
607+
<programlisting>
608+
sudo apt-get update
609+
apt-cache search pg_probackup
610+
</programlisting>
611+
</listitem>
612+
<listitem>
613+
Install or upgrade a <application>pg_probackup</application> version of your choice
614+
<programlisting>
615+
sudo apt-get install pg_probackup-15
616+
</programlisting>
617+
</listitem>
618+
<listitem>
619+
Optionally install the debug package
620+
<programlisting>
621+
sudo apt-get install pg_probackup-15-debuginfo
622+
</programlisting>
623+
</listitem>
624+
</orderedlist>
625+
</refsect2>
626+
<refsect2 id="pbk-install-suse">
627+
<title>Installation on SUSE Linux</title>
628+
<orderedlist>
629+
<listitem>
630+
Add the pg_probackup repository GPG key
631+
<programlisting>
632+
zypper in -y gpg wget
633+
wget -O GPG-KEY-PG_PROBACKUP https://repo.postgrespro.ru/pg_probackup/keys/GPG-KEY-PG_PROBACKUP
634+
rpm --import GPG-KEY-PG_PROBACKUP
635+
</programlisting>
636+
</listitem>
637+
<listitem>
638+
Setup the repository
639+
<programlisting>
640+
zypper in https://repo.postgrespro.ru/pg_probackup/keys/pg_probackup-repo-suse.noarch.rpm
641+
</programlisting>
642+
</listitem>
643+
<listitem>
644+
List the available <application>pg_probackup</application> packages
645+
<programlisting>
646+
zypper se pg_probackup
647+
</programlisting>
648+
</listitem>
649+
<listitem>
650+
Install or upgrade a <application>pg_probackup</application> version of your choice
651+
<programlisting>
652+
zypper in pg_probackup-15
653+
</programlisting>
654+
</listitem>
655+
<listitem>
656+
Optionally install the source package for rebuilding the binaries
657+
<programlisting>
658+
zypper si pg_probackup-15
659+
</programlisting>
660+
</listitem>
661+
</orderedlist>
662+
</refsect2>
663+
</refsect1>
664+
<refsect1 id="pbk-setup">
665+
<title>Setup</title>
456666
<para>
457667
Once you have <application>pg_probackup</application> installed, complete the following
458668
setup:
@@ -1986,8 +2196,7 @@ pg_probackup restore -B <replaceable>backup_dir</replaceable> --instance <replac
19862196
<para>
19872197
On your backup host, configure <application>pg_probackup</application> as explained in
19882198
the section
1989-
<link linkend="pbk-install-and-setup">Installation and
1990-
Setup</link>. For the
2199+
<link linkend="pbk-setup">Setup</link>. For the
19912200
<xref linkend="pbk-add-instance"/> and
19922201
<xref linkend="pbk-set-config"/> commands, make
19932202
sure to specify <link linkend="pbk-remote-server-opts">remote

‎doc/stylesheet.css

+2-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,8 @@ body {
119119
}
120120

121121
.book code, kbd, pre, samp {
122-
font-family: monospace,monospace;
122+
font-family: monospace,monospace;
123+
font-size: 90%;
123124
}
124125

125126
.book .txtCommentsWrap {

0 commit comments

Comments
 (0)