8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75fcb93 commit 17665f6Copy full SHA for 17665f6
doc/src/sgml/backup.sgml
@@ -1246,6 +1246,17 @@ tar -rf /var/lib/pgsql/backup.tar /var/lib/pgsql/archive/
1246
Please remember to add error handling to your backup scripts.
1247
</para>
1248
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 < %p > /var/lib/pgsql/archive/%f'
1254
+</programlisting>
1255
+ You will then need to use <application>gunzip</> during recovery:
1256
1257
+restore_command = 'gunzip < /mnt/server/archivedir/%f > %p'
1258
1259
+ </para>
1260
</sect3>
1261
1262
<sect3 id="backup-scripts">
0 commit comments