Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 17665f6

Browse files
committed
Re-add documentation recommendation to use gzip/gunzip for archive file
storage.
1 parent 75fcb93 commit 17665f6

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

doc/src/sgml/backup.sgml

+11
Original file line numberDiff line numberDiff line change
@@ -1246,6 +1246,17 @@ tar -rf /var/lib/pgsql/backup.tar /var/lib/pgsql/archive/
12461246
Please remember to add error handling to your backup scripts.
12471247
</para>
12481248

1249+
<para>
1250+
If archive storage size is a concern, you can use
1251+
<application>gzip</application> to compress the archive files:
1252+
<programlisting>
1253+
archive_command = 'gzip &lt; %p &gt; /var/lib/pgsql/archive/%f'
1254+
</programlisting>
1255+
You will then need to use <application>gunzip</> during recovery:
1256+
<programlisting>
1257+
restore_command = 'gunzip &lt; /mnt/server/archivedir/%f &gt; %p'
1258+
</programlisting>
1259+
</para>
12491260
</sect3>
12501261

12511262
<sect3 id="backup-scripts">

0 commit comments

Comments
 (0)