-
+
Backup and Restore
WAL files are part of the same
tar> file.
Please remember to add error handling to your backup scripts.
+
+ If archive storage size is a concern, use
pg_compresslog>,
+ remove unnecessary and trailing
+ space from the WAL files. You can then use
+
gzip to further compress the output of
+archive_command = 'pg_compresslog %p - | gzip > /var/lib/pgsql/archive/%f'
+
+ You will then need to use
gunzip> and
+
pg_decompresslog> during recovery:
+restore_command = 'gunzip < /mnt/server/archivedir/%f | pg_decompresslog - %p'
+
+