Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit17665f6

Browse files
committed
Re-add documentation recommendation to use gzip/gunzip for archive file
storage.
1 parent75fcb93 commit17665f6

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

‎doc/src/sgml/backup.sgml

Lines changed: 11 additions & 0 deletions
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)

[8]ページ先頭

©2009-2025 Movatter.jp