mirror of
https://github.com/postgres/postgres.git
synced 2025-08-31 17:02:12 +03:00
Use test -e rather than test -f.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<!-- $PostgreSQL: pgsql/doc/src/sgml/backup.sgml,v 2.147 2010/03/31 23:51:41 momjian Exp $ -->
|
||||
<!-- $PostgreSQL: pgsql/doc/src/sgml/backup.sgml,v 2.148 2010/04/01 00:31:00 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 && cp %p .../%f'
|
||||
archive_command = 'test ! -e .../%f && cp %p .../%f'
|
||||
</programlisting>
|
||||
works correctly on most Unix variants.
|
||||
</para>
|
||||
|
Reference in New Issue
Block a user