Commit 39fa4d0b authored by Bruce Momjian's avatar Bruce Momjian

Re-add documentation for Win32 copy syntax for archive_command.

Backpatch to 9.0.X.
parent 5eb15c99
<!-- $PostgreSQL: pgsql/doc/src/sgml/backup.sgml,v 2.157 2010/08/15 23:04:49 tgl Exp $ --> <!-- $PostgreSQL: pgsql/doc/src/sgml/backup.sgml,v 2.158 2010/09/12 13:47:12 momjian Exp $ -->
<chapter id="backup"> <chapter id="backup">
<title>Backup and Restore</title> <title>Backup and Restore</title>
...@@ -577,7 +577,8 @@ tar -cf backup.tar /usr/local/pgsql/data ...@@ -577,7 +577,8 @@ tar -cf backup.tar /usr/local/pgsql/data
character in the command. The simplest useful command is something character in the command. The simplest useful command is something
like: like:
<programlisting> <programlisting>
archive_command = 'cp -i %p /mnt/server/archivedir/%f &lt;/dev/null' archive_command = 'cp -i %p /mnt/server/archivedir/%f &lt;/dev/null' # Unix
archive_command = 'copy "%p" "C:\\server\\archivedir\\%f"' # Windows
</programlisting> </programlisting>
which will copy archivable WAL segments to the directory which will copy archivable WAL segments to the directory
<filename>/mnt/server/archivedir</>. (This is an example, not a <filename>/mnt/server/archivedir</>. (This is an example, not a
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment