@@ -794,7 +794,7 @@ ALTER ROLE backup WITH REPLICATION;
794
794
parameter, as follows:
795
795
</para >
796
796
<programlisting >
797
- archive_command = '<replaceable >install_dir</replaceable >/pg_probackup archive-push -B <replaceable >backup_dir</replaceable > --instance <replaceable >instance_name</replaceable > --wal-file-name=%f [<replaceable >remote_options</replaceable >]'
797
+ archive_command = '" <replaceable >install_dir</replaceable >/pg_probackup" archive-push -B " <replaceable >backup_dir</replaceable >" --instance <replaceable >instance_name</replaceable > --wal-file-name=%f [<replaceable >remote_options</replaceable >]'
798
798
</programlisting >
799
799
</listitem >
800
800
</itemizedlist >
@@ -1588,7 +1588,7 @@ pg_probackup validate -B <replaceable>backup_dir</replaceable> --instance <repla
1588
1588
specified timestamp, run this command:
1589
1589
</para >
1590
1590
<programlisting >
1591
- pg_probackup validate -B <replaceable >backup_dir</replaceable > --instance <replaceable >instance_name</replaceable > -i PT8XFX --recovery-target-time=' 2017-05-18 14:18:11+03'
1591
+ pg_probackup validate -B <replaceable >backup_dir</replaceable > --instance <replaceable >instance_name</replaceable > -i PT8XFX --recovery-target-time=" 2017-05-18 14:18:11+03"
1592
1592
</programlisting >
1593
1593
<para >
1594
1594
If you specify the <replaceable >backup_id</replaceable > of an incremental backup,
@@ -1915,7 +1915,7 @@ pg_probackup restore -B <replaceable>backup_dir</replaceable> --instance <replac
1915
1915
timestamp format. For example:
1916
1916
</para >
1917
1917
<programlisting >
1918
- pg_probackup restore -B <replaceable >backup_dir</replaceable > --instance <replaceable >instance_name</replaceable > --recovery-target-time=' 2017-05-18 14:18:11+03'
1918
+ pg_probackup restore -B <replaceable >backup_dir</replaceable > --instance <replaceable >instance_name</replaceable > --recovery-target-time=" 2017-05-18 14:18:11+03"
1919
1919
</programlisting >
1920
1920
</listitem >
1921
1921
<listitem >
@@ -1942,7 +1942,7 @@ pg_probackup restore -B <replaceable>backup_dir</replaceable> --instance <replac
1942
1942
point, use <option >--recovery-target-name</option > option:
1943
1943
</para >
1944
1944
<programlisting >
1945
- pg_probackup restore -B <replaceable >backup_dir</replaceable > --instance <replaceable >instance_name</replaceable > --recovery-target-name=' before_app_upgrade'
1945
+ pg_probackup restore -B <replaceable >backup_dir</replaceable > --instance <replaceable >instance_name</replaceable > --recovery-target-name=" before_app_upgrade"
1946
1946
</programlisting >
1947
1947
</listitem >
1948
1948
<listitem >
@@ -1952,7 +1952,7 @@ pg_probackup restore -B <replaceable>backup_dir</replaceable> --instance <replac
1952
1952
with <literal >latest</literal > value:
1953
1953
</para >
1954
1954
<programlisting >
1955
- pg_probackup restore -B <replaceable >backup_dir</replaceable > --instance <replaceable >instance_name</replaceable > --recovery-target=' latest'
1955
+ pg_probackup restore -B <replaceable >backup_dir</replaceable > --instance <replaceable >instance_name</replaceable > --recovery-target=" latest"
1956
1956
</programlisting >
1957
1957
</listitem >
1958
1958
<listitem >
@@ -2079,14 +2079,14 @@ pg_probackup restore -B <replaceable>backup_dir</replaceable> --instance <replac
2079
2079
Provided arguments will be used to construct the <command >restore_command</command >:
2080
2080
</para >
2081
2081
<programlisting >
2082
- restore_command = '<replaceable >install_dir</replaceable >/pg_probackup archive-get -B <replaceable >backup_dir</replaceable > --instance <replaceable >instance_name</replaceable > --wal-file-path=%p --wal-file-name=%f --remote-host=192.168.0.3 --remote-port=2303 --remote-user=backup'
2082
+ restore_command = '" <replaceable >install_dir</replaceable >/pg_probackup" archive-get -B " <replaceable >backup_dir</replaceable >" --instance <replaceable >instance_name</replaceable > --wal-file-path=%p --wal-file-name=%f --remote-host=192.168.0.3 --remote-port=2303 --remote-user=backup'
2083
2083
</programlisting >
2084
2084
<para >
2085
2085
Alternatively, you can use the <option >--restore-command</option >
2086
2086
option to provide the entire <parameter >restore_command</parameter >:
2087
2087
</para >
2088
2088
<programlisting >
2089
- pg_probackup restore -B <replaceable >backup_dir</replaceable > --instance <replaceable >instance_name</replaceable > --remote-user=postgres --remote-host=192.168.0.2 --remote-port=2302 --restore-command='<replaceable >install_dir</replaceable >/pg_probackup archive-get -B <replaceable >backup_dir</replaceable > --instance <replaceable >instance_name</replaceable > --wal-file-path=%p --wal-file-name=%f --remote-host=192.168.0.3 --remote-port=2303 --remote-user=backup'
2089
+ pg_probackup restore -B <replaceable >backup_dir</replaceable > --instance <replaceable >instance_name</replaceable > --remote-user=postgres --remote-host=192.168.0.2 --remote-port=2302 --restore-command='" <replaceable >install_dir</replaceable >/pg_probackup" archive-get -B " <replaceable >backup_dir</replaceable >" --instance <replaceable >instance_name</replaceable > --wal-file-path=%p --wal-file-name=%f --remote-host=192.168.0.3 --remote-port=2303 --remote-user=backup'
2090
2090
</programlisting >
2091
2091
<note >
2092
2092
<para >
@@ -3134,7 +3134,7 @@ pg_probackup set-backup -B <replaceable>backup_dir</replaceable> --instance <rep
3134
3134
using the <option >--expire-time</option > option. For example:
3135
3135
</para >
3136
3136
<programlisting >
3137
- pg_probackup set-backup -B <replaceable >backup_dir</replaceable > --instance <replaceable >instance_name</replaceable > -i <replaceable >backup_id</replaceable > --expire-time=' 2020-01-01 00:00:00+03'
3137
+ pg_probackup set-backup -B <replaceable >backup_dir</replaceable > --instance <replaceable >instance_name</replaceable > -i <replaceable >backup_id</replaceable > --expire-time=" 2020-01-01 00:00:00+03"
3138
3138
</programlisting >
3139
3139
<para >
3140
3140
Alternatively, you can use the <option >--ttl</option > and
@@ -3144,7 +3144,7 @@ pg_probackup set-backup -B <replaceable>backup_dir</replaceable> --instance <rep
3144
3144
</para >
3145
3145
<programlisting >
3146
3146
pg_probackup backup -B <replaceable >backup_dir</replaceable > --instance <replaceable >instance_name</replaceable > -b FULL --ttl=30d
3147
- pg_probackup backup -B <replaceable >backup_dir</replaceable > --instance <replaceable >instance_name</replaceable > -b FULL --expire-time=' 2020-01-01 00:00:00+03'
3147
+ pg_probackup backup -B <replaceable >backup_dir</replaceable > --instance <replaceable >instance_name</replaceable > -b FULL --expire-time=" 2020-01-01 00:00:00+03"
3148
3148
</programlisting >
3149
3149
<para >
3150
3150
To check if the backup is pinned,
@@ -3868,7 +3868,7 @@ pg_probackup restore -B <replaceable>backup_dir</replaceable> --instance <replac
3868
3868
This option will be ignored unless the <option >-R</option > flag is specified.
3869
3869
</para >
3870
3870
<para >
3871
- Example: <literal >--primary-conninfo=' host=192.168.1.50 port=5432 user=foo password=foopass' </literal >
3871
+ Example: <literal >--primary-conninfo=" host=192.168.1.50 port=5432 user=foo password=foopass" </literal >
3872
3872
</para >
3873
3873
</listitem >
3874
3874
</varlistentry >
@@ -4469,7 +4469,7 @@ pg_probackup archive-get -B <replaceable>backup_dir</replaceable> --instance <re
4469
4469
If the time zone offset is not specified, the local time zone is used.
4470
4470
</para >
4471
4471
<para >
4472
- Example: <literal >--recovery-target-time=' 2020-01-01 00:00:00+03' </literal >
4472
+ Example: <literal >--recovery-target-time=" 2020-01-01 00:00:00+03" </literal >
4473
4473
</para >
4474
4474
</listitem >
4475
4475
</varlistentry >
@@ -4659,7 +4659,7 @@ pg_probackup archive-get -B <replaceable>backup_dir</replaceable> --instance <re
4659
4659
If the time zone offset is not specified, the local time zone is used.
4660
4660
</para >
4661
4661
<para >
4662
- Example: <literal >--expire-time=' 2020-01-01 00:00:00+03' </literal >
4662
+ Example: <literal >--expire-time=" 2020-01-01 00:00:00+03" </literal >
4663
4663
</para >
4664
4664
</listitem >
4665
4665
</varlistentry >
@@ -5202,7 +5202,7 @@ pg_probackup archive-get -B <replaceable>backup_dir</replaceable> --instance <re
5202
5202
Provides a string of SSH command-line options. For example,
5203
5203
the following options can be used to set <parameter >keep-alive</parameter > for SSH
5204
5204
connections opened by <application >pg_probackup</application >:
5205
- <literal >--ssh-options=' -o ServerAliveCountMax=5 -o ServerAliveInterval=60' </literal >.
5205
+ <literal >--ssh-options=" -o ServerAliveCountMax=5 -o ServerAliveInterval=60" </literal >.
5206
5206
For the full list of possible options, see
5207
5207
<ulink url =" https://man.openbsd.org/ssh_config.5" >ssh_config
5208
5208
manual page</ulink >.
@@ -5555,14 +5555,14 @@ INFO: Backup catalog '/mnt/backups' successfully inited
5555
5555
<step id =" pbk-add-instance-pg-11-to-backup-catalog" >
5556
5556
<title >Add instance <literal >pg-11</literal > to the backup catalog:</title >
5557
5557
<programlisting >
5558
- [backupman@backup_host]$ pg_probackup-11 add-instance -B /mnt/backups --instance ' pg-11' --remote-host=postgres_host --remote-user=postgres -D /var/lib/postgresql/11/main
5558
+ [backupman@backup_host]$ pg_probackup-11 add-instance -B /mnt/backups --instance pg-11 --remote-host=postgres_host --remote-user=postgres -D /var/lib/postgresql/11/main
5559
5559
INFO: Instance 'node' successfully inited
5560
5560
</programlisting >
5561
5561
</step >
5562
5562
<step id =" pbk-take-full-backup" >
5563
5563
<title >Take a FULL backup:</title >
5564
5564
<programlisting >
5565
- [backupman@backup_host] pg_probackup-11 backup -B /mnt/backups --instance ' pg-11' -b FULL --stream --remote-host=postgres_host --remote-user=postgres -U backup -d backupdb
5565
+ [backupman@backup_host] pg_probackup-11 backup -B /mnt/backups --instance pg-11 -b FULL --stream --remote-host=postgres_host --remote-user=postgres -U backup -d backupdb
5566
5566
INFO: Backup start, pg_probackup version: 2.2.0, instance: node, backup ID: PZ7YK2, backup mode: FULL, wal mode: STREAM, remote: true, compress-algorithm: none, compress-level: 1
5567
5567
INFO: Start transferring data files
5568
5568
INFO: Data files are transferred
@@ -5577,7 +5577,7 @@ INFO: Backup PZ7YK2 completed
5577
5577
<step id =" pbk-lets-take-a-look-at-the-backup-catalog" >
5578
5578
<title >Let's take a look at the backup catalog:</title >
5579
5579
<programlisting >
5580
- [backupman@backup_host] pg_probackup-11 show -B /mnt/backups --instance ' pg-11'
5580
+ [backupman@backup_host] pg_probackup-11 show -B /mnt/backups --instance pg-11
5581
5581
5582
5582
BACKUP INSTANCE 'pg-11'
5583
5583
==================================================================================================================================
@@ -5589,7 +5589,7 @@ BACKUP INSTANCE 'pg-11'
5589
5589
<step id =" pbk-take-incremental-backup-in-delta-mode" >
5590
5590
<title >Take an incremental backup in the DELTA mode:</title >
5591
5591
<programlisting >
5592
- [backupman@backup_host] pg_probackup-11 backup -B /mnt/backups --instance ' pg-11' -b delta --stream --remote-host=postgres_host --remote-user=postgres -U backup -d backupdb
5592
+ [backupman@backup_host] pg_probackup-11 backup -B /mnt/backups --instance pg-11 -b delta --stream --remote-host=postgres_host --remote-user=postgres -U backup -d backupdb
5593
5593
INFO: Backup start, pg_probackup version: 2.2.0, instance: node, backup ID: PZ7YMP, backup mode: DELTA, wal mode: STREAM, remote: true, compress-algorithm: none, compress-level: 1
5594
5594
INFO: Parent backup: PZ7YK2
5595
5595
INFO: Start transferring data files
@@ -5606,14 +5606,14 @@ INFO: Backup PZ7YMP completed
5606
5606
<title >Let's add some parameters to <application >pg_probackup</application >
5607
5607
configuration file, so that you can omit them from the command line:</title >
5608
5608
<programlisting >
5609
- [backupman@backup_host] pg_probackup-11 set-config -B /mnt/backups --instance ' pg-11' --remote-host=postgres_host --remote-user=postgres -U backup -d backupdb
5609
+ [backupman@backup_host] pg_probackup-11 set-config -B /mnt/backups --instance pg-11 --remote-host=postgres_host --remote-user=postgres -U backup -d backupdb
5610
5610
</programlisting >
5611
5611
</step >
5612
5612
<step id =" pbk-take-another-incremental-backup-in-delta-mode-omitting-some-of-the-previous-parameters" >
5613
5613
<title >Take another incremental backup in the DELTA mode, omitting
5614
5614
some of the previous parameters:</title >
5615
5615
<programlisting >
5616
- [backupman@backup_host] pg_probackup-11 backup -B /mnt/backups --instance ' pg-11' -b delta --stream
5616
+ [backupman@backup_host] pg_probackup-11 backup -B /mnt/backups --instance pg-11 -b delta --stream
5617
5617
INFO: Backup start, pg_probackup version: 2.2.0, instance: node, backup ID: PZ7YR5, backup mode: DELTA, wal mode: STREAM, remote: true, compress-algorithm: none, compress-level: 1
5618
5618
INFO: Parent backup: PZ7YMP
5619
5619
INFO: Start transferring data files
@@ -5629,7 +5629,7 @@ INFO: Backup PZ7YR5 completed
5629
5629
<step id =" pbk-lets-take-a-look-at-instance-config" >
5630
5630
<title >Let's take a look at the instance configuration:</title >
5631
5631
<programlisting >
5632
- [backupman@backup_host] pg_probackup-11 show-config -B /mnt/backups --instance ' pg-11'
5632
+ [backupman@backup_host] pg_probackup-11 show-config -B /mnt/backups --instance pg-11
5633
5633
5634
5634
# Backup instance information
5635
5635
pgdata = /var/lib/postgresql/11/main
@@ -5668,7 +5668,7 @@ remote-host = postgres_host
5668
5668
<step id =" pbk-lets-take-a-look-at-the-backup-catalog-1" >
5669
5669
<title >Let's take a look at the backup catalog:</title >
5670
5670
<programlisting >
5671
- [backupman@backup_host] pg_probackup-11 show -B /mnt/backups --instance ' pg-11'
5671
+ [backupman@backup_host] pg_probackup-11 show -B /mnt/backups --instance pg-11
5672
5672
5673
5673
====================================================================================================================================
5674
5674
Instance Version ID Recovery Time Mode WAL Mode TLI Time Data WAL Zratio Start LSN Stop LSN Status
0 commit comments