@@ -239,7 +239,7 @@ doc/src/sgml/pgprobackup.sgml
239
239
</listitem>
240
240
</itemizedlist>
241
241
<para><emphasis role="strong">See Also</emphasis></para>
242
- <para><xref linkend="pg-probackup-creating-backup"></para>
242
+ <para><link linkend="pg-probackup-creating-backup">Creating Backups</link ></para>
243
243
244
244
<refsect2 id="pg-probackup-limitations">
245
245
<title>Limitations</title>
@@ -293,7 +293,7 @@ doc/src/sgml/pgprobackup.sgml
293
293
</listitem>
294
294
<listitem>
295
295
<para>
296
- <link linkend="configuring-the- database-cluster-for-backups ">Configure the database cluster for backups</link>.
296
+ <link linkend="configuring-database-cluster">Configure the database cluster to enable <application>pg_probackup</application> backups</link>.
297
297
</para>
298
298
</listitem>
299
299
</orderedlist>
@@ -385,8 +385,8 @@ pg_probackup init -B <replaceable>backupdir</replaceable> -D <replaceable>datadi
385
385
For details, see <xref linkend="configuring-pg-probackup">.
386
386
</para>
387
387
</refsect2>
388
- <refsect2 id="configuring-the- database-cluster-for-backups ">
389
- <title>Configuring the Database Cluster for Backups </title>
388
+ <refsect2 id="configuring-database-cluster">
389
+ <title>Configuring the Database Cluster</title>
390
390
<para>Depending on whether you are going to use autonomous or archive backup
391
391
strategies, <productname>&productname;</productname> cluster configuration
392
392
will differ. To backup the database cluster from a standby
@@ -415,7 +415,7 @@ pg_probackup init -B <replaceable>backupdir</replaceable> -D <replaceable>datadi
415
415
<orderedlist numeration="arabic">
416
416
<listitem>
417
417
<para>
418
- Create the <literal>backup</literal> role with the
418
+ Create the <literal>backup</literal> role with
419
419
<link linkend="role-attributes"><literal>LOGIN</literal> and <literal>REPLICATION</literal> privileges</link>.
420
420
</para>
421
421
<programlisting>
@@ -501,8 +501,8 @@ CREATE ROLE backup WITH LOGIN;
501
501
<listitem>
502
502
<para>
503
503
Set <varname>archive_command</varname> to
504
- <literal>test ! -f backup_dir /wal/%f && cp %p backup_dir /wal/%f</literal>
505
- where <replaceable>backup_dir </replaceable> is the initialized
504
+ <literal>test ! -f backupdir /wal/%f && cp %p backupdir /wal/%f</literal>
505
+ where <replaceable>backupdir </replaceable> is the initialized
506
506
backup catalog.
507
507
</para>
508
508
</listitem>
@@ -1255,7 +1255,7 @@ pg_probackup help [<replaceable>command</replaceable>]
1255
1255
<title>Creating a Backup</title>
1256
1256
<para>To create a backup, run the following command:
1257
1257
<programlisting>
1258
- pg_probackup backup -b <replaceable>backup_mode</replaceable>
1258
+ pg_probackup backup -B <replaceable>backupdir</replaceable> - b <replaceable>backup_mode</replaceable>
1259
1259
</programlisting>
1260
1260
where <replaceable>backup_mode</replaceable> can take one of the following values:</para>
1261
1261
<itemizedlist spacing="compact">
@@ -1297,7 +1297,7 @@ Thus, you must create at least one full backup before taking incremental ones.
1297
1297
To make a backup autonomous, add the <option>--stream</option> option to the above command. For example, to create a full autonomous backup, run:
1298
1298
</para>
1299
1299
<programlisting>
1300
- pg_probackup backup -b FULL --stream
1300
+ pg_probackup backup -B <replaceable>backupdir</replaceable> - b FULL --stream
1301
1301
</programlisting>
1302
1302
1303
1303
<para>
@@ -1359,7 +1359,7 @@ pg_probackup backup -b FULL --stream
1359
1359
<replaceable>xid</replaceable> transaction ID, run this command:
1360
1360
</para>
1361
1361
<programlisting>
1362
- pg_probackup validate --xid=<replaceable>xid</replaceable>
1362
+ pg_probackup validate -B <replaceable>backupdir</replaceable> - -xid=<replaceable>xid</replaceable>
1363
1363
</programlisting>
1364
1364
<para>
1365
1365
If validation completes successfully,
@@ -1396,7 +1396,7 @@ pg_probackup validate --xid=<replaceable>xid</replaceable>
1396
1396
</listitem>
1397
1397
</orderedlist>
1398
1398
<programlisting>
1399
- pg_probackup restore -D <replaceable>datadir</replaceable> -i <replaceable>backup_id</replaceable>
1399
+ pg_probackup restore -B <replaceable>backupdir</replaceable> - D <replaceable>datadir</replaceable> -i <replaceable>backup_id</replaceable>
1400
1400
</programlisting>
1401
1401
<para>
1402
1402
where:
@@ -1446,13 +1446,13 @@ pg_probackup restore -D <replaceable>datadir</replaceable> -i <replaceable>backu
1446
1446
format. For example:
1447
1447
</para>
1448
1448
<programlisting>
1449
- pg_probackup restore --time='2017-05-18 14:18:11'
1449
+ pg_probackup restore -B <replaceable>backupdir</replaceable> - -time='2017-05-18 14:18:11'
1450
1450
</programlisting>
1451
1451
<para>
1452
1452
To restore the cluster state up to a specific transaction ID, use the <option>xid</option>:
1453
1453
</para>
1454
1454
<programlisting>
1455
- pg_probackup restore --xid=687
1455
+ pg_probackup restore -B <replaceable>backupdir</replaceable> - -xid=687
1456
1456
</programlisting>
1457
1457
<para>
1458
1458
If the cluster to restore contains tablespaces,
@@ -1471,7 +1471,7 @@ pg_probackup restore --xid=687
1471
1471
tablespaces. For example:
1472
1472
</para>
1473
1473
<programlisting>
1474
- pg_probackup restore -D <replaceable>datadir</replaceable> -j 4 -i <replaceable>backup_id</replaceable> -T <replaceable>/tmp/tablespace1 </replaceable>=<replaceable>/tmp/tablespace1_new </replaceable> -T <replaceable>/tmp/tablespace2 </replaceable>=<replaceable>/tmp/tablespace2_new </replaceable>
1474
+ pg_probackup restore -B <replaceable>backupdir</replaceable> - D <replaceable>datadir</replaceable> -j 4 -i <replaceable>backup_id</replaceable> -T <replaceable>tablespace1_dir </replaceable>=<replaceable>tablespace1_newdir </replaceable> -T <replaceable>tablespace2_dir </replaceable>=<replaceable>tablespace2_newdir </replaceable>
1475
1475
</programlisting>
1476
1476
<para>
1477
1477
Once the <literal>restore</literal> command is complete, start the
@@ -1494,7 +1494,7 @@ pg_probackup restore -D <replaceable>datadir</replaceable> -j 4 -i <replaceable>
1494
1494
Parallel execution is controlled by the <option>-j</option>/<option>--threads</option>
1495
1495
command line option. For example, to create a backup using four parallel threads, run:
1496
1496
<programlisting>
1497
- pg_probackup backup -b full -j 4
1497
+ pg_probackup backup -B <replaceable>backupdir</replaceable> -b FULL -j 4
1498
1498
</programlisting>
1499
1499
</para>
1500
1500
@@ -1593,16 +1593,16 @@ pg_probackup delete --expired
1593
1593
<refsect1 id="managing-backup-catalog">
1594
1594
<title>Managing the Backup Catalog</title>
1595
1595
<para>
1596
- With <application>pg_probackup</application>, you can manage and configure
1596
+ With <application>pg_probackup</application>, you can manage
1597
1597
backups from the command line:
1598
1598
</para>
1599
1599
<itemizedlist>
1600
1600
<listitem>
1601
- <para><xref linkend="viewing-backup-info">
1601
+ <para><link linkend="viewing-backup-info">View available backups</link >
1602
1602
</para>
1603
1603
</listitem>
1604
1604
<listitem>
1605
- <para><xref linkend="pg-probackup-deleting-backups">
1605
+ <para><link linkend="pg-probackup-deleting-backups">Delete backups</link >
1606
1606
</para>
1607
1607
</listitem>
1608
1608
</itemizedlist>
0 commit comments