diff options
author | Michael Paquier <michael@paquier.xyz> | 2021-02-26 14:39:03 +0900 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2021-02-26 14:39:03 +0900 |
commit | 329784e11849ff691f0157f3b27c50f652bce76a (patch) | |
tree | 0b030d0808f3c36907e49e8a3d1f78660bda01b2 /doc/src/sgml/backup.sgml | |
parent | 8556267b2b1b8e1c26037c4c25cf390ee5afb5d9 (diff) | |
download | postgresql-329784e11849ff691f0157f3b27c50f652bce76a.tar.gz |
doc: Improve {archive,restore}_command for compressed logs
The commands mentioned in the docs with gzip and gunzip did not prefix
the archives with ".gz" and used inconsistent paths for the archives,
which can be confusing.
Reported-by: Philipp Gramzow
Reviewed-by: Fujii Masao
Discussion: https://postgr.es/m/161397938841.15451.13129264141285167267@wrigleys.postgresql.org
Diffstat (limited to 'doc/src/sgml/backup.sgml')
-rw-r--r-- | doc/src/sgml/backup.sgml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/src/sgml/backup.sgml b/doc/src/sgml/backup.sgml index 3c8aaed0b6..21094c6a9d 100644 --- a/doc/src/sgml/backup.sgml +++ b/doc/src/sgml/backup.sgml @@ -1520,11 +1520,11 @@ tar -rf /var/lib/pgsql/backup.tar /var/lib/pgsql/archive/ If archive storage size is a concern, you can use <application>gzip</application> to compress the archive files: <programlisting> -archive_command = 'gzip < %p > /var/lib/pgsql/archive/%f' +archive_command = 'gzip < %p > /mnt/server/archivedir/%f.gz' </programlisting> You will then need to use <application>gunzip</application> during recovery: <programlisting> -restore_command = 'gunzip < /mnt/server/archivedir/%f > %p' +restore_command = 'gunzip < /mnt/server/archivedir/%f.gz > %p' </programlisting> </para> </sect3> |