Re-add documentation recommendation to use gzip/gunzip for archive file

storage.
This commit is contained in:
Bruce Momjian 2012-04-09 14:50:48 -04:00
parent 75fcb935bc
commit 17665f6115
1 changed files with 11 additions and 0 deletions

View File

@ -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.
</para>
<para>
If archive storage size is a concern, you can use
<application>gzip</application> to compress the archive files:
<programlisting>
archive_command = 'gzip &lt; %p &gt; /var/lib/pgsql/archive/%f'
</programlisting>
You will then need to use <application>gunzip</> during recovery:
<programlisting>
restore_command = 'gunzip &lt; /mnt/server/archivedir/%f &gt; %p'
</programlisting>
</para>
</sect3>
<sect3 id="backup-scripts">