@@ -172,7 +172,10 @@ doc/src/sgml/pgprobackup.sgml
172
172
<para ><link linkend =" pbk-overview" >Overview</link ></para >
173
173
</listitem >
174
174
<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 >
176
179
</listitem >
177
180
<listitem >
178
181
<para ><link linkend =" pbk-reference" >Command-Line Reference</link ></para >
@@ -451,8 +454,215 @@ doc/src/sgml/pgprobackup.sgml
451
454
</refsect2 >
452
455
</refsect1 >
453
456
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 >
456
666
<para >
457
667
Once you have <application >pg_probackup</application > installed, complete the following
458
668
setup:
@@ -1986,8 +2196,7 @@ pg_probackup restore -B <replaceable>backup_dir</replaceable> --instance <replac
1986
2196
<para >
1987
2197
On your backup host, configure <application >pg_probackup</application > as explained in
1988
2198
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
1991
2200
<xref linkend =" pbk-add-instance" /> and
1992
2201
<xref linkend =" pbk-set-config" /> commands, make
1993
2202
sure to specify <link linkend =" pbk-remote-server-opts" >remote
0 commit comments