|
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 $ --> |
2 | 2 |
|
3 | 3 | <chapter id="backup"> |
4 | 4 | <title>Backup and Restore</title> |
@@ -577,7 +577,8 @@ tar -cf backup.tar /usr/local/pgsql/data |
577 | 577 | character in the command. The simplest useful command is something |
578 | 578 | like: |
579 | 579 | <programlisting> |
580 | | -archive_command = 'cp -i %p /mnt/server/archivedir/%f </dev/null' |
| 580 | +archive_command = 'cp -i %p /mnt/server/archivedir/%f </dev/null' # Unix |
| 581 | +archive_command = 'copy "%p" "C:\\server\\archivedir\\%f"' # Windows |
581 | 582 | </programlisting> |
582 | 583 | which will copy archivable WAL segments to the directory |
583 | 584 | <filename>/mnt/server/archivedir</>. (This is an example, not a |
|