Properly document archive/restore command examples on Windows.

ITAGAKI Takahiro
This commit is contained in:
Bruce Momjian 2008-07-18 17:33:40 +00:00
parent aae91a5055
commit df22da6173
2 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
<!-- $PostgreSQL: pgsql/doc/src/sgml/backup.sgml,v 2.113.2.1 2008/03/07 01:46:50 momjian Exp $ --> <!-- $PostgreSQL: pgsql/doc/src/sgml/backup.sgml,v 2.113.2.2 2008/07/18 17:33:40 momjian Exp $ -->
<chapter id="backup"> <chapter id="backup">
<title>Backup and Restore</title> <title>Backup and Restore</title>
@ -1106,7 +1106,7 @@ restore_command = 'cp /mnt/server/archivedir/%f %p'
when so asked. Examples: when so asked. Examples:
<programlisting> <programlisting>
restore_command = 'cp /mnt/server/archivedir/%f "%p"' restore_command = 'cp /mnt/server/archivedir/%f "%p"'
restore_command = 'copy /mnt/server/archivedir/%f "%p"' # Windows restore_command = 'copy "C:\\server\\archivedir\\%f" "%p"' # Windows
</programlisting> </programlisting>
</para> </para>
</listitem> </listitem>

View File

@ -1,4 +1,4 @@
<!-- $PostgreSQL: pgsql/doc/src/sgml/config.sgml,v 1.164.2.4 2008/03/11 16:59:09 momjian Exp $ --> <!-- $PostgreSQL: pgsql/doc/src/sgml/config.sgml,v 1.164.2.5 2008/07/18 17:33:40 momjian Exp $ -->
<chapter Id="runtime-config"> <chapter Id="runtime-config">
<title>Server Configuration</title> <title>Server Configuration</title>
@ -1698,7 +1698,7 @@ SET ENABLE_SEQSCAN TO OFF;
and only if it succeeds. Examples: and only if it succeeds. Examples:
<programlisting> <programlisting>
archive_command = 'cp "%p" /mnt/server/archivedir/"%f"' archive_command = 'cp "%p" /mnt/server/archivedir/"%f"'
archive_command = 'copy "%p" /mnt/server/archivedir/"%f"' # Windows archive_command = 'copy "%p" "C:\\server\\archivedir\\%f"' # Windows
</programlisting> </programlisting>
</para> </para>
</listitem> </listitem>