Re: How to get a more RSYNC compatible output of pg_dump?

From: hubert depesz lubaczewski <depesz(at)depesz(dot)com>
To: Thorsten Schöning <tschoening(at)am-soft(dot)de>
Cc: pgsql-admin(at)lists(dot)postgresql(dot)org
Subject: Re: How to get a more RSYNC compatible output of pg_dump?
Date: 2022-05-16 12:28:29
Message-ID: 20220516122829.GA28062@depesz.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Mon, May 16, 2022 at 09:56:34AM +0200, Thorsten Schöning wrote:
> Is that simply the way it is or are there some optimizations possible
> when using pg_dump? Am using Postgres 11 and don't see anything which
> seems to help in this use-case.

What I'd suggest:
1. Use -Fd, to have each table separately
2. Use -Z0 to avoid normal compression
3. Use `gzip --rsyncable` on the data, to make the backup smaller for
transmit (though you will need to unpack it to restore), or play with
other compressors, like xz

depesz

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Thorsten Schöning 2022-05-16 12:50:30 Re: How to get a more RSYNC compatible output of pg_dump?
Previous Message Holger Jakobs 2022-05-16 10:52:41 Re: How to get a more RSYNC compatible output of pg_dump?