|
1 | | -<!-- $PostgreSQL: pgsql/doc/src/sgml/backup.sgml,v 2.126 2009/05/14 20:31:09 heikki Exp $ --> |
| 1 | +<!-- $PostgreSQL: pgsql/doc/src/sgml/backup.sgml,v 2.127 2009/05/27 12:28:55 momjian Exp $ --> |
2 | 2 |
|
3 | 3 | <chapter id="backup"> |
4 | 4 | <title>Backup and Restore</title> |
@@ -1130,21 +1130,21 @@ restore_command = 'copy "C:\\server\\archivedir\\%f" "%p"' # Windows |
1130 | 1130 | <term><varname>recovery_end_command</varname> (<type>string</type>)</term> |
1131 | 1131 | <listitem> |
1132 | 1132 | <para> |
1133 | | -This parameter specifies a shell command that will be executed once only |
1134 | | -at the end of recovery. This parameter is optional. The purpose of the |
1135 | | -recovery_end_command is to provide a mechanism for cleanup following |
1136 | | -replication or recovery. |
1137 | | -Any <literal>%r</> is replaced by the name of the file |
1138 | | -containing the last valid restart point. That is the earliest file that |
1139 | | -must be kept to allow a restore to be restartable, so this information |
1140 | | -can be used to truncate the archive to just the minimum required to |
1141 | | -support restart of the current restore. <literal>%r</> would only be |
1142 | | -used in a warm-standby configuration (see <xref linkend="warm-standby">). |
| 1133 | +This parameter specifies a shell command that will be executed once only |
| 1134 | +at the end of recovery. This parameter is optional. The purpose of the |
| 1135 | +recovery_end_command is to provide a mechanism for cleanup following |
| 1136 | +replication or recovery. |
| 1137 | +Any <literal>%r</> is replaced by the name of the file |
| 1138 | +containing the last valid restart point. That is the earliest file that |
| 1139 | +must be kept to allow a restore to be restartable, so this information |
| 1140 | +can be used to truncate the archive to just the minimum required to |
| 1141 | +support restart of the current restore. <literal>%r</> would only be |
| 1142 | +used in a warm-standby configuration (see <xref linkend="warm-standby">). |
1143 | 1143 | Write <literal>%%</> to embed an actual <literal>%</> character |
1144 | 1144 | in the command. |
1145 | | -If the command returns a non-zero exit status then a WARNING log |
1146 | | -message will be written, unless signalled in which case we return |
1147 | | -a FATAL error. |
| 1145 | +If the command returns a non-zero exit status then a WARNING log |
| 1146 | +message will be written, unless signalled in which case we return |
| 1147 | +a FATAL error. |
1148 | 1148 | </para> |
1149 | 1149 | </listitem> |
1150 | 1150 | </varlistentry> |
|