|
1 | | -<!-- $PostgreSQL: pgsql/doc/src/sgml/backup.sgml,v 2.92 2006/10/30 00:08:02 neilc Exp $ --> |
| 1 | +<!-- $PostgreSQL: pgsql/doc/src/sgml/backup.sgml,v 2.93 2006/11/04 18:20:27 tgl Exp $ --> |
2 | 2 |
|
3 | 3 | <chapter id="backup"> |
4 | 4 | <title>Backup and Restore</title> |
@@ -518,8 +518,10 @@ tar -cf backup.tar /usr/local/pgsql/data |
518 | 518 | linkend="guc-archive-command"> configuration parameter, which in practice |
519 | 519 | will always be placed in the <filename>postgresql.conf</filename> file. |
520 | 520 | In this string, |
521 | | - any <literal>%p</> is replaced by the absolute path of the file to |
| 521 | + any <literal>%p</> is replaced by the path name of the file to |
522 | 522 | archive, while any <literal>%f</> is replaced by the file name only. |
| 523 | + (The path name is relative to the working directory of the server, |
| 524 | + i.e., the cluster's data directory.) |
523 | 525 | Write <literal>%%</> if you need to embed an actual <literal>%</> |
524 | 526 | character in the command. The simplest useful command is something |
525 | 527 | like |
@@ -915,7 +917,9 @@ SELECT pg_stop_backup(); |
915 | 917 | WAL file segments. Like the <varname>archive_command</>, this is |
916 | 918 | a shell command string. It may contain <literal>%f</>, which is |
917 | 919 | replaced by the name of the desired log file, and <literal>%p</>, |
918 | | - which is replaced by the absolute path to copy the log file to. |
| 920 | + which is replaced by the path name to copy the log file to. |
| 921 | + (The path name is relative to the working directory of the server, |
| 922 | + i.e., the cluster's data directory.) |
919 | 923 | Write <literal>%%</> if you need to embed an actual <literal>%</> |
920 | 924 | character in the command. The simplest useful command is |
921 | 925 | something like |
@@ -1003,8 +1007,10 @@ restore_command = 'cp /mnt/server/archivedir/%f %p' |
1003 | 1007 | the WAL file series. This parameter is required. |
1004 | 1008 | Any <literal>%f</> in the string is |
1005 | 1009 | replaced by the name of the file to retrieve from the archive, |
1006 | | - and any <literal>%p</> is replaced by the absolute path to copy |
| 1010 | + and any <literal>%p</> is replaced by the path name to copy |
1007 | 1011 | it to on the server. |
| 1012 | + (The path name is relative to the working directory of the server, |
| 1013 | + i.e., the cluster's data directory.) |
1008 | 1014 | Write <literal>%%</> to embed an actual <literal>%</> character |
1009 | 1015 | in the command. |
1010 | 1016 | </para> |
|
0 commit comments