pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rory Campbell-Lange <rory@campbell-lange.net>
To: Suhail Bamzena <suhailsalem@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Cc: pgeu-general@lists.postgresql.org
Subject: Re: Inherited an 18TB DB & need to backup
Date: Fri, 15 May 2020 14:02:46 +0100
Message-ID: <20200515130246.GB25570@campbell-lange.net> (raw)
In-Reply-To: <CAA7EztXsnSSMv7u85Hx1mNYZK23moFcQ5q5aZ1fUBT76NCB1UQ@mail.gmail.com>
References: <CAA7EztXsnSSMv7u85Hx1mNYZK23moFcQ5q5aZ1fUBT76NCB1UQ@mail.gmail.com>

On 15/05/20, Suhail Bamzena (suhailsalem@gmail.com) wrote:
> Hello All,
> I have very recently inherited an 18 TB DB that is running version 9.2.
> Apparently this database has never been backed up and I have been tasked to
> set in a periodic backup routine (weekly full & daily incremental) and dump
> it into a NAS. What is the best way to go about this? Did some reading and
> hear that pgbackrest does a good job with such huge sizes. Your expert
> advise is needed.

Incremental backups suggest the need to backup WAL archives. See
https://www.postgresql.org/docs/9.2/continuous-archiving.html

pgbackrest looks very cool but we haven't used it.

A very simple solution could be just to dump the database daily with
pg_dump, if you have the space and machine capacity to do it. Depending
on what you are storing, you can achieve good compression with this, and
it is a great way of having a simple file from which to restore a
database.

Our ~200GB cluster resolves to under 10GB of pg_dump files, although
18TB is a whole different order of size.

Rory





view thread (34+ messages)  latest in thread

Message-ID: <20200515130246.GB25570@campbell-lange.net>
Permalink:  ../20200515130246.GB25570@campbell-lange.net/
Also on:    postgresql.org/message-id/20200515130246.GB25570@campbell-lange.net

 · 

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: rory@campbell-lange.net, suhailsalem@gmail.com, pgeu-general@lists.postgresql.org
  Subject: Re: Inherited an 18TB DB & need to backup
  In-Reply-To: <20200515130246.GB25570@campbell-lange.net>
  References: <CAA7EztXsnSSMv7u85Hx1mNYZK23moFcQ5q5aZ1fUBT76NCB1UQ@mail.gmail.com> <20200515130246.GB25570@campbell-lange.net>

* 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