|
1 | | -<!-- $PostgreSQL: pgsql/doc/src/sgml/backup.sgml,v 2.111 2007/12/1704:30:05 tgl Exp $ --> |
| 1 | +<!-- $PostgreSQL: pgsql/doc/src/sgml/backup.sgml,v 2.112 2007/12/1709:03:52 momjian Exp $ --> |
2 | 2 |
|
3 | 3 | <chapter id="backup"> |
4 | 4 | <title>Backup and Restore</title> |
@@ -1290,7 +1290,7 @@ restore_command = 'copy /mnt/server/archivedir/%f "%p"' # Windows |
1290 | 1290 | <literal>on</>, and set up an <varname>archive_command</> that performs |
1291 | 1291 | archiving only when a <quote>switch file</> exists. For example: |
1292 | 1292 | <programlisting> |
1293 | | -archive_command = 'if [ -f /var/lib/pgsql/backup_in_progress]; thencp -i %p /var/lib/pgsql/archive/%f </dev/null ; fi' |
| 1293 | +archive_command = 'test ! -f /var/lib/pgsql/backup_in_progress||cp -i %p /var/lib/pgsql/archive/%f </dev/null' |
1294 | 1294 | </programlisting> |
1295 | 1295 | This command will perform archiving when |
1296 | 1296 | <filename>/var/lib/pgsql/backup_in_progress</> exists, and otherwise |
|