mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-24 18:55:04 +08:00
Re-add documentation recommendation to use gzip/gunzip for archive file
storage.
This commit is contained in:
parent
75fcb935bc
commit
17665f6115
@ -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.
|
Please remember to add error handling to your backup scripts.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
|
<para>
|
||||||
|
If archive storage size is a concern, you can use
|
||||||
|
<application>gzip</application> to compress the archive files:
|
||||||
|
<programlisting>
|
||||||
|
archive_command = 'gzip < %p > /var/lib/pgsql/archive/%f'
|
||||||
|
</programlisting>
|
||||||
|
You will then need to use <application>gunzip</> during recovery:
|
||||||
|
<programlisting>
|
||||||
|
restore_command = 'gunzip < /mnt/server/archivedir/%f > %p'
|
||||||
|
</programlisting>
|
||||||
|
</para>
|
||||||
</sect3>
|
</sect3>
|
||||||
|
|
||||||
<sect3 id="backup-scripts">
|
<sect3 id="backup-scripts">
|
||||||
|
Loading…
Reference in New Issue
Block a user