File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -552,7 +552,7 @@ tar -cf backup.tar /usr/local/pgsql/data
552552 character in the command. The simplest useful command is something
553553 like:
554554<programlisting>
555- archive_command = 'test ! -f /mnt/server/archivedir/%f && cp %p /mnt/server/archivedir/%f' # Unix
555+ archive_command = 'test ! -f /mnt/server/archivedir/%f && cp %p /mnt/server/archivedir/%f' # Unix
556556archive_command = 'copy "%p" "C:\\server\\archivedir\\%f"' # Windows
557557</programlisting>
558558 which will copy archivable WAL segments to the directory
@@ -1299,7 +1299,7 @@ restore_command = 'copy "C:\\server\\archivedir\\%f" "%p"' # Windows
12991299 <literal>on</>, and set up an <varname>archive_command</> that performs
13001300 archiving only when a <quote>switch file</> exists. For example:
13011301<programlisting>
1302- archive_command = 'test ! -f /var/lib/pgsql/backup_in_progress || cp -i %p /var/lib/pgsql/archive/%f < /dev/null '
1302+ archive_command = 'test ! -f /var/lib/pgsql/backup_in_progress || (test ! -f /var/lib/pgsql/archive/%f && cp %p /var/lib/pgsql/archive/%f) '
13031303</programlisting>
13041304 This command will perform archiving when
13051305 <filename>/var/lib/pgsql/backup_in_progress</> exists, and otherwise
You can’t perform that action at this time.
0 commit comments