You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>To back up a directory located outside of the data directory, use the optional <code>--external-dirs</code> parameter that specifies the path to this directory. If you would like to add more than one external directory, provide several paths separated by colons.</p>
364
+
<p>To back up a directory located outside of the data directory, use the optional <code>--external-dirs</code> parameter that specifies the path to this directory. If you would like to add more than one external directory, provide several paths separated by colons, on Windows system paths must be separated by semicolon instead.</p>
365
365
<p>For example, to include ‘/etc/dir1/’ and ‘/etc/dir2/’ directories into the full backup of your <em>instance_name</em> instance that will be stored under the <em>backup_dir</em> directory, run:</p>
366
366
<pre><code>pg_probackup backup -B backup_dir --instance instance_name -b FULL --external-dirs=/etc/dir1:/etc/dir2</code></pre>
367
+
<p>For example, to include ‘C:1’ and ‘C:2’ directories into the full backup of your <em>instance_name</em> instance that will be stored under the <em>backup_dir</em> directory on Windows system, run:</p>
368
+
<pre><code>pg_probackup backup -B backup_dir --instance instance_name -b FULL --external-dirs=C:\dir1;C:\dir2</code></pre>
367
369
<p>pg_probackup creates a separate subdirectory in the backup directory for each external directory. Since external directories included into different backups do not have to be the same, when you are restoring the cluster from an incremental backup, only those directories that belong to this particular backup will be restored. Any external directories stored in the previous backups will be ignored.</p>
368
370
<p>To include the same directories into each backup of your instance, you can specify them in the pg_probackup.conf configuration file using the <ahref="#set-config">set-config</a> command with the <code>--external-dirs</code> option.</p>
369
371
<h3id="verifying-a-cluster">Verifying a Cluster</h3>
@@ -437,9 +439,10 @@ <h3 id="using-pg_probackup-in-the-remote-mode">Using pg_probackup in the Remote
437
439
<li><p>If you would like to take remote backup in <ahref="#creating-a-backup">PAGE</a> mode, or rely on <ahref="#archive-mode">ARCHIVE</a> WAL delivery mode, or use <ahref="#performing-point-in-time-pitr-recovery">PITR</a>, then configure continuous WAL archiving from database host to the backup host as explained in the section <ahref="#setting-up-continuous-wal-archiving">Setting up continuous WAL archiving</a>. For the <ahref="#archive-push">archive-push</a> and <ahref="#archive-get">archive-get</a> commands, you must specify the <ahref="#remote-mode-options">remote options</a> that point to backup host with backup catalog.</p></li>
438
440
<li><p>Run <ahref="#backup">backup</a> or <ahref="#restore">restore</a> commands with <ahref="#remote-mode-options">remote options</a><strong>on backup host</strong>. pg_probackup connects to the remote system via SSH and creates a backup locally or restores the previously taken backup on the remote system, respectively.</p></li>
439
441
</ul>
440
-
<p>For example, to create archive full backup using remote mode via ssh, run:</p>
441
-
<pre><code>pg_probackup backup -B backup_dir --instance instance_name -b FULL --remote-host=192.168.0.2 --remote-user=postgres</code></pre>
442
-
<p>For example, to restore backup on remote system using ssh, run:</p>
442
+
<p>For example, to create archive full backup using remote mode through SSH connection to user <code>postgres</code> on host with address <code>192.168.0.2</code> via port <code>2302</code>, run:</p>
<p>For example, to restore latest backup on remote system using remote mode through SSH connection to user <code>postgres</code> on host with address <code>192.168.0.2</code> via port <code>2302</code>, run:</p>
0 commit comments