pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Edmundo Robles <edmundo@sw-argos.com>
To: pgsql-general@postgresql.org
Subject: Re: About compress in pg_dump
Date: Fri, 17 Jul 2020 13:18:09 -0700
Message-ID: <80c81630-6e09-6ff4-be3d-66697d667f39@aklaver.com> (raw)
In-Reply-To: <CAOXzpYBq98WKHje8B0ap7j4wap-BeNeovYWq4DyUxKFFZmr5WQ@mail.gmail.com>
References: <CAOXzpYBq98WKHje8B0ap7j4wap-BeNeovYWq4DyUxKFFZmr5WQ@mail.gmail.com>

On 7/17/20 7:48 AM, Edmundo Robles wrote:
> To backup  a database  I do:
>   nice -n +19  pg_dump -Fc  database | nice -n +19 gzip --rsyncable   
> -nc >  database.dump
> 
> If -Fc  option  is compressed  by default  I dont need gzip the backup,  
> but I need pass --rsyncable  and -n options.
> 
> How can  I pass  gzip options  to compress in pg_dump?
> 
> if not   I will use :
> nice -n +19  pg_dump -Fc -Z 0 database | nice -n +19 gzip --rsyncable   
> -nc >  database.dump
> but I dont want to do that. :)

Do you need the custom format on the other end?

Or can you just use the plain format dump and pipe that to gzip with 
appropriate options?

You will then need to use psql to do the restore though.

> 
> Thanks   for your help...
> 
> -- 
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com





view thread (5+ messages)  latest in thread

Message-ID: <80c81630-6e09-6ff4-be3d-66697d667f39@aklaver.com>
Permalink:  ../80c81630-6e09-6ff4-be3d-66697d667f39@aklaver.com/
Also on:    postgresql.org/message-id/80c81630-6e09-6ff4-be3d-66697d667f39@aklaver.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, edmundo@sw-argos.com
  Subject: Re: About compress in pg_dump
  In-Reply-To: <80c81630-6e09-6ff4-be3d-66697d667f39@aklaver.com>
  References: <CAOXzpYBq98WKHje8B0ap7j4wap-BeNeovYWq4DyUxKFFZmr5WQ@mail.gmail.com> <80c81630-6e09-6ff4-be3d-66697d667f39@aklaver.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox