Spell out full archive directory specification in 'test -f' continuous

archiving example, per suggestion from Greg Smith.
This commit is contained in:
Bruce Momjian 2010-04-12 19:08:28 +00:00
parent 30556568f5
commit 202c655810
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
<!-- $PostgreSQL: pgsql/doc/src/sgml/backup.sgml,v 2.150 2010/04/03 07:22:52 petere Exp $ -->
<!-- $PostgreSQL: pgsql/doc/src/sgml/backup.sgml,v 2.151 2010/04/12 19:08:28 momjian Exp $ -->
<chapter id="backup">
<title>Backup and Restore</title>
@ -611,7 +611,7 @@ cp -i pg_xlog/00000001000000A900000065 /mnt/server/archivedir/00000001000000A900
add a command to test for the existence of the archive file. For
example, something like:
<programlisting>
archive_command = 'test ! -f .../%f &amp;&amp; cp %p .../%f'
archive_command = 'test ! -f /mnt/server/archivedir/%f &amp;&amp; cp %p /mnt/server/archivedir/%f'
</programlisting>
works correctly on most Unix variants.
</para>