diff --git a/doc/src/sgml/backup.sgml b/doc/src/sgml/backup.sgml index bd7e42d0bb..0180df5ddb 100644 --- a/doc/src/sgml/backup.sgml +++ b/doc/src/sgml/backup.sgml @@ -1246,6 +1246,17 @@ tar -rf /var/lib/pgsql/backup.tar /var/lib/pgsql/archive/ Please remember to add error handling to your backup scripts. + + If archive storage size is a concern, you can use + gzip to compress the archive files: + +archive_command = 'gzip < %p > /var/lib/pgsql/archive/%f' + + You will then need to use gunzip during recovery: + +restore_command = 'gunzip < /mnt/server/archivedir/%f > %p' + +