-
+
Backup and Restore
To configure standalone backups you should use a switch file. If the
file exists then archives are made, otherwise archiving is ignored.
-archive_command = 'test -f /var/lib/pgsql/backup_in_progress && cp -i %p /var/lib/pgsql/archive/%f </dev/null'
+archive_command = 'if [ -f /var/lib/pgsql/backup_in_progress ]; then cp -i %p /var/lib/pgsql/archive/%f </dev/null ; fi'
Backup can then be taken using a script like the following: