-
+
Backup and Restore
on>, and set up an archive_command> that performs
archiving only when a switch file> exists. For example:
-archive_command = 'if [ -f /var/lib/pgsql/backup_in_progress ]; then cp -i %p /var/lib/pgsql/archive/%f </dev/null ; fi'
+archive_command = 'test ! -f /var/lib/pgsql/backup_in_progress || cp -i %p /var/lib/pgsql/archive/%f < /dev/null'
This command will perform archiving when
/var/lib/pgsql/backup_in_progress> exists, and otherwise