Skip to content

Commit 39fa4d0

Browse files
committed
Re-add documentation for Win32 copy syntax for archive_command.
Backpatch to 9.0.X.
1 parent 5eb15c9 commit 39fa4d0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

doc/src/sgml/backup.sgml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- $PostgreSQL: pgsql/doc/src/sgml/backup.sgml,v 2.157 2010/08/15 23:04:49 tgl Exp $ -->
1+
<!-- $PostgreSQL: pgsql/doc/src/sgml/backup.sgml,v 2.158 2010/09/12 13:47:12 momjian Exp $ -->
22

33
<chapter id="backup">
44
<title>Backup and Restore</title>
@@ -577,7 +577,8 @@ tar -cf backup.tar /usr/local/pgsql/data
577577
character in the command. The simplest useful command is something
578578
like:
579579
<programlisting>
580-
archive_command = 'cp -i %p /mnt/server/archivedir/%f &lt;/dev/null'
580+
archive_command = 'cp -i %p /mnt/server/archivedir/%f &lt;/dev/null' # Unix
581+
archive_command = 'copy "%p" "C:\\server\\archivedir\\%f"' # Windows
581582
</programlisting>
582583
which will copy archivable WAL segments to the directory
583584
<filename>/mnt/server/archivedir</>. (This is an example, not a

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy