|
1 | 1 | <!--
|
2 |
| -$PostgreSQL: pgsql/doc/src/sgml/runtime.sgml,v 1.275 2004/08/08 20:17:33 tgl Exp $ |
| 2 | +$PostgreSQL: pgsql/doc/src/sgml/runtime.sgml,v 1.276 2004/08/12 19:03:17 momjian Exp $ |
3 | 3 | -->
|
4 | 4 |
|
5 | 5 | <Chapter Id="runtime">
|
@@ -1435,16 +1435,24 @@ SET ENABLE_SEQSCAN TO OFF;
|
1435 | 1435 | <term><varname>archive_command</varname> (<type>string</type>)</term>
|
1436 | 1436 | <listitem>
|
1437 | 1437 | <para>
|
1438 |
| - The shell command to execute to archive a completed segment of the |
1439 |
| - WAL file series. If this is an empty string (which is the default), |
1440 |
| - WAL archiving is disabled. Any <literal>%p</> in the string is |
1441 |
| - replaced |
1442 |
| - by the absolute path of the file to archive, while any <literal>%f</> |
1443 |
| - is replaced by the file name only. Write <literal>%%</> if you need |
1444 |
| - to embed an actual <literal>%</> character in the command. For more |
1445 |
| - information see <xref linkend="backup-archiving-wal">. This option |
1446 |
| - can only be set at server start or in the |
1447 |
| - <filename>postgresql.conf</filename> file. |
| 1438 | + The shell command to execute to archive a completed segment of |
| 1439 | + the WAL file series. If this is an empty string (the default), |
| 1440 | + WAL archiving is disabled. Any <literal>%p</> in the string is |
| 1441 | + replaced by the absolute path of the file to archive, and any |
| 1442 | + <literal>%f</> is replaced by the file name only. Use |
| 1443 | + <literal>%%</> to embed an actual <literal>%</> character in the |
| 1444 | + command. For more information see <xref |
| 1445 | + linkend="backup-archiving-wal">. This option can only be set at |
| 1446 | + server start or in the <filename>postgresql.conf</filename> |
| 1447 | + file. |
| 1448 | + </para> |
| 1449 | + <para> |
| 1450 | + It is important for the command to return a zero exit status only if |
| 1451 | + it succeeds. Examples: |
| 1452 | +<programlisting> |
| 1453 | +archive_command = 'cp "%p" /mnt/server/archivedir/"%f"' |
| 1454 | +archive_command = 'copy "%p" /mnt/server/archivedir/"%f"' # Win32 |
| 1455 | +</programlisting> |
1448 | 1456 | </para>
|
1449 | 1457 | </listitem>
|
1450 | 1458 | </varlistentry>
|
|
0 commit comments