diff --git a/doc/src/sgml/backup.sgml b/doc/src/sgml/backup.sgml index 39168deda50..e8f093d4f01 100644 --- a/doc/src/sgml/backup.sgml +++ b/doc/src/sgml/backup.sgml @@ -1,5 +1,5 @@ Backup and Restore @@ -501,8 +501,10 @@ tar -cf backup.tar /usr/local/pgsql/data linkend="guc-archive-command"> configuration parameter, which in practice will always be placed in the postgresql.conf file. In this string, - any %p is replaced by the absolute path of the file to + any %p is replaced by the path name of the file to archive, while any %f is replaced by the file name only. + (The path name is relative to the working directory of the server, + i.e., the cluster's data directory.) Write %% if you need to embed an actual % character in the command. The simplest useful command is something like @@ -882,7 +884,9 @@ SELECT pg_stop_backup(); WAL file segments. Like the archive_command, this is a shell command string. It may contain %f, which is replaced by the name of the desired log file, and %p, - which is replaced by the absolute path to copy the log file to. + which is replaced by the path name to copy the log file to. + (The path name is relative to the working directory of the server, + i.e., the cluster's data directory.) Write %% if you need to embed an actual % character in the command. The simplest useful command is something like @@ -956,8 +960,10 @@ restore_command = 'cp /mnt/server/archivedir/%f %p' the WAL file series. This parameter is required. Any %f in the string is replaced by the name of the file to retrieve from the archive, - and any %p is replaced by the absolute path to copy + and any %p is replaced by the path name to copy it to on the server. + (The path name is relative to the working directory of the server, + i.e., the cluster's data directory.) Write %% to embed an actual % character in the command. diff --git a/doc/src/sgml/config.sgml b/doc/src/sgml/config.sgml index bd0c8a6dcc9..75da5f2bfd9 100644 --- a/doc/src/sgml/config.sgml +++ b/doc/src/sgml/config.sgml @@ -1,5 +1,5 @@ Server Configuration @@ -1496,9 +1496,11 @@ SET ENABLE_SEQSCAN TO OFF; The shell command to execute to archive a completed segment of the WAL file series. If this is an empty string (the default), WAL archiving is disabled. Any %p in the string is - replaced by the absolute path of the file to archive, and any - %f is replaced by the file name only. Use - %% to embed an actual % character in the + replaced by the path name of the file to archive, and any + %f is replaced by the file name only. + (The path name is relative to the working directory of the server, + i.e., the cluster's data directory.) + Use %% to embed an actual % character in the command. For more information see . This option can only be set at server start or in the postgresql.conf