File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Filter options
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Original file line number Diff line number Diff line change @@ -1520,11 +1520,11 @@ tar -rf /var/lib/pgsql/backup.tar /var/lib/pgsql/archive/
1520
1520
If archive storage size is a concern, you can use
1521
1521
<application>gzip</application> to compress the archive files:
1522
1522
<programlisting>
1523
- archive_command = 'gzip < %p > /var/lib/pgsql/archive/%f '
1523
+ archive_command = 'gzip < %p > /mnt/server/archivedir/%f.gz '
1524
1524
</programlisting>
1525
1525
You will then need to use <application>gunzip</application> during recovery:
1526
1526
<programlisting>
1527
- restore_command = 'gunzip < /mnt/server/archivedir/%f > %p'
1527
+ restore_command = 'gunzip < /mnt/server/archivedir/%f.gz > %p'
1528
1528
</programlisting>
1529
1529
</para>
1530
1530
</sect3>
You can’t perform that action at this time.
0 commit comments