pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Matthias Apitz <guru@unixarea.de>
To: pgsql-general@lists.postgresql.org
Subject: Re: Size of PostgreSQL backup ./. Sybase DUMP
Date: Fri, 16 Apr 2021 15:59:09 +0200
Message-ID: <616119102ade0feacd7f0a1ec376859a26ffe83d.camel@cybertec.at> (raw)
In-Reply-To: <YHmVYdr2uuMIz38Q@c720-r368166.fritz.box>
References: <YHmVYdr2uuMIz38Q@c720-r368166.fritz.box>

On Fri, 2021-04-16 at 15:47 +0200, Matthias Apitz wrote:
> We migrated a customer from Sybase ASE 15.7 to PostgreSQL 11.10, both on
> Linux server. With Sybase you create DUMP of only the database in
> question, not the server, and the gzip'ed DUMP files is around 2,6 GByte in size.
> 
> For PostgreSQL we do backup with something like this cmd:
> 
> pg_basebackup -U ${DBSUSER} -Ft -z -D ${BACKUPDIR}-${DATE}-${NUM}
> 
> The resulting files
> 
> # ls -lh backup-20210416-3
> insgesamt 999M
> -rw------- 1 postgres postgres 999M 16. Apr 14:02 base.tar.gz
> -rw------- 1 postgres postgres  17K 16. Apr 14:02 pg_wal.tar.gz
> 
> are less than 1 GByte.
> 
> Any ideas about the cause of the difference? Can the backup somehow be
> checked without doing a recovery-restore in a new server?

I don't know anything about Sybase, but if that dump is something
akin to "pg_dump", then you are comparing apples and oranges.

Moreover, the base backup is compressed, and I don't know if the
Sybase dump is.

If you had used PostgreSQL v13, you could check the backup for
completenes. But the best test for a backup is to restore it.

Yours,
Laurenz Albe
-- 
Cybertec | https://www.cybertec-postgresql.com






view thread (5+ messages)  latest in thread

Message-ID: <616119102ade0feacd7f0a1ec376859a26ffe83d.camel@cybertec.at>
Permalink:  ../616119102ade0feacd7f0a1ec376859a26ffe83d.camel@cybertec.at/
Also on:    postgresql.org/message-id/616119102ade0feacd7f0a1ec376859a26ffe83d.camel@cybertec.at

 · 

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: laurenz.albe@cybertec.at, guru@unixarea.de
  Subject: Re: Size of PostgreSQL backup ./. Sybase DUMP
  In-Reply-To: <616119102ade0feacd7f0a1ec376859a26ffe83d.camel@cybertec.at>
  References: <YHmVYdr2uuMIz38Q@c720-r368166.fritz.box> <616119102ade0feacd7f0a1ec376859a26ffe83d.camel@cybertec.at>

* 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