-
+
Backup and Restore
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
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
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.
-
+
Server Configuration
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
linkend="backup-archiving-wal">.
This parameter can only be set in the postgresql.conf>