About compress in pg_dump

From: Edmundo Robles <edmundo(at)sw-argos(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: About compress in pg_dump
Date: 2020-07-17 14:48:30
Message-ID: CAOXzpYBq98WKHje8B0ap7j4wap-BeNeovYWq4DyUxKFFZmr5WQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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. :)

Thanks for your help...

--

Responses

Browse pgsql-general by date

  From Date Subject
Next Message David G. Johnston 2020-07-17 15:07:31 Re: About compress in pg_dump
Previous Message Paul Förster 2020-07-17 14:10:15 Re: Where Do I Find...