File tree 1 file changed +11
-2
lines changed
1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -273,17 +273,26 @@ cat <replaceable class="parameter">filename</replaceable>.gz | gunzip | psql <re
273
273
The <command>split</command> command
274
274
allows you to split the output into smaller files that are
275
275
acceptable in size to the underlying file system. For example, to
276
- make chunks of 1 megabyte :
276
+ make 2 gigabyte chunks :
277
277
278
278
<programlisting>
279
- pg_dump <replaceable class="parameter">dbname</replaceable> | split -b 1m - <replaceable class="parameter">filename</replaceable>
279
+ pg_dump <replaceable class="parameter">dbname</replaceable> | split -b 2G - <replaceable class="parameter">filename</replaceable>
280
280
</programlisting>
281
281
282
282
Reload with:
283
283
284
284
<programlisting>
285
285
cat <replaceable class="parameter">filename</replaceable>* | psql <replaceable class="parameter">dbname</replaceable>
286
286
</programlisting>
287
+
288
+ If using GNU <application>split</application>, it is possible to
289
+ use it and <application>gzip</application> together:
290
+
291
+ <programlisting>
292
+ pg_dump <replaceable class="parameter">dbname</replaceable> | split -b 2G --filter='gzip > $FILE.gz'
293
+ </programlisting>
294
+
295
+ It can be restored using <command>zcat</command>.
287
296
</para>
288
297
</formalpara>
289
298
You can’t perform that action at this time.
0 commit comments