]> granicus.if.org Git - postgresql/commitdiff
Re-add documentation recommendation to use gzip/gunzip for archive file
authorBruce Momjian <bruce@momjian.us>
Mon, 9 Apr 2012 18:50:48 +0000 (14:50 -0400)
committerBruce Momjian <bruce@momjian.us>
Mon, 9 Apr 2012 18:50:48 +0000 (14:50 -0400)
storage.

doc/src/sgml/backup.sgml

index bd7e42d0bbb813f9c44b00cf2b5b1f96b04627ac..0180df5ddb7408a38a780a07a671c14bf3f2bbb5 100644 (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">