Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit57ad59a

Browse files
committed
Fix missed use of "cp -i" in an example, per Fujii Masao.
Also be more careful about markup: use & not just &.
1 parent5f129cf commit57ad59a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎doc/src/sgml/backup.sgml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ 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 = 'test ! -f /mnt/server/archivedir/%f && cp %p /mnt/server/archivedir/%f' # Unix
580+
archive_command = 'test ! -f /mnt/server/archivedir/%f &amp;&amp; cp %p /mnt/server/archivedir/%f' # Unix
581581
archive_command = 'copy "%p" "C:\\server\\archivedir\\%f"' # Windows
582582
</programlisting>
583583
which will copy archivable WAL segments to the directory
@@ -1199,7 +1199,7 @@ restore_command = 'cp /mnt/server/archivedir/%f %p'
11991199
<literal>on</>, and set up an <varname>archive_command</> that performs
12001200
archiving only when a <emphasis>switch file</> exists. For example:
12011201
<programlisting>
1202-
archive_command = 'test ! -f /var/lib/pgsql/backup_in_progress ||cp -i %p/var/lib/pgsql/archive/%f &lt; /dev/null'
1202+
archive_command = 'test ! -f /var/lib/pgsql/backup_in_progress ||(test ! -f/var/lib/pgsql/archive/%f &amp;&amp; cp %p /var/lib/pgsql/archive/%f)'
12031203
</programlisting>
12041204
This command will perform archiving when
12051205
<filename>/var/lib/pgsql/backup_in_progress</> exists, and otherwise

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp