On Thu, Jul 29, 2021 at 07:15:21PM +0200, Daniel Gustafsson wrote:
> > On 29 Jul 2021, at 17:29, Bruce Momjian <br...@momjian.us> wrote:
> > 
> > On Thu, Jul 29, 2021 at 05:23:20PM +0200, Daniel Gustafsson wrote:
> >>> On 29 Jul 2021, at 16:58, Bruce Momjian <br...@momjian.us> wrote:
> >> 
> >>> OK, I can adjust it to say "GNU split" or just skip this addition.
> >> 
> >> I don't have strong feelings either way, with a slight preference for 
> >> writing
> >> it as "GNU split" since it's still a good tip for a large amount of 
> >> readers.
> > 
> > Yes, I am on the fence for the same reasons but lean toward moving
> > forward for your same reasons.
> 
> Making it two separate examples is a good idea, tipping the scale to a +1 
> from me.
> 
> +     If using <application>GNU split</application>, it is possible to
> A small nitpick is that we write this as GNU <application>..</application>
> elsewhere on this page (like GNU tar for example).

OK, updated patch attached.  FYI, I put the GNU inside the application
name in the first version because we specifically only want the GNU
version of that application, but I think taking it out for consistency
is fine.

-- 
  Bruce Momjian  <br...@momjian.us>        https://momjian.us
  EDB                                      https://enterprisedb.com

  If only the physical world exists, free will is an illusion.

diff --git a/doc/src/sgml/backup.sgml b/doc/src/sgml/backup.sgml
index 8c9186d277..cba32b6eb3 100644
--- a/doc/src/sgml/backup.sgml
+++ b/doc/src/sgml/backup.sgml
@@ -273,10 +273,10 @@ cat <replaceable class="parameter">filename</replaceable>.gz | gunzip | psql <re
      The <command>split</command> command
      allows you to split the output into smaller files that are
      acceptable in size to the underlying file system. For example, to
-     make chunks of 1 megabyte:
+     make 2 gigabyte chunks:
 
 <programlisting>
-pg_dump <replaceable class="parameter">dbname</replaceable> | split -b 1m - <replaceable class="parameter">filename</replaceable>
+pg_dump <replaceable class="parameter">dbname</replaceable> | split -b 2G - <replaceable class="parameter">filename</replaceable>
 </programlisting>
 
      Reload with:
@@ -284,6 +284,15 @@ pg_dump <replaceable class="parameter">dbname</replaceable> | split -b 1m - <rep
 <programlisting>
 cat <replaceable class="parameter">filename</replaceable>* | psql <replaceable class="parameter">dbname</replaceable>
 </programlisting>
+
+     If using GNU <application>split</application>, it is possible to
+     use it and <application>gzip</application> together:
+
+<programlisting>
+pg_dump <replaceable class="parameter">dbname</replaceable> | split -b 2G --filter='gzip > $FILE.gz'
+</programlisting>
+
+     It can be restored using <command>zcat</command>.
     </para>
    </formalpara>
 

Reply via email to