projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
75fcb93
)
Re-add documentation recommendation to use gzip/gunzip for archive file
author
Bruce Momjian
Mon, 9 Apr 2012 18:50:48 +0000
(14:50 -0400)
committer
Bruce Momjian
Mon, 9 Apr 2012 18:50:48 +0000
(14:50 -0400)
storage.
doc/src/sgml/backup.sgml
patch
|
blob
|
blame
|
history
diff --git
a/doc/src/sgml/backup.sgml
b/doc/src/sgml/backup.sgml
index bd7e42d0bbb813f9c44b00cf2b5b1f96b04627ac..0180df5ddb7408a38a780a07a671c14bf3f2bbb5 100644
(file)
--- a/
doc/src/sgml/backup.sgml
+++ b/
doc/src/sgml/backup.sgml
@@
-1246,6
+1246,17
@@
tar -rf /var/lib/pgsql/backup.tar /var/lib/pgsql/archive/
Please remember to add error handling to your backup scripts.
+
+ If archive storage size is a concern, you can use
+
gzip
to compress the archive files:
+
+archive_command = 'gzip < %p > /var/lib/pgsql/archive/%f'
+
+ You will then need to use
gunzip> during recovery:
+
+restore_command = 'gunzip < /mnt/server/archivedir/%f > %p'
+
+