diff options
author | Bruce Momjian <bruce@momjian.us> | 2012-04-09 14:50:48 -0400 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2012-04-09 14:50:48 -0400 |
commit | 17665f61155babff93ff916f1d080dcc9b5397d3 (patch) | |
tree | 0b42ddd9d1ac9e8e2299470e08d5e03df5d89c2e /doc/src | |
parent | 75fcb935bc162b466eadac95e6eec6a0c415d18e (diff) | |
download | postgresql-17665f61155babff93ff916f1d080dcc9b5397d3.tar.gz postgresql-17665f61155babff93ff916f1d080dcc9b5397d3.zip |
Re-add documentation recommendation to use gzip/gunzip for archive file
storage.
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/sgml/backup.sgml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/src/sgml/backup.sgml b/doc/src/sgml/backup.sgml index bd7e42d0bbb..0180df5ddb7 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. </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 id="backup-scripts"> |