Re: postgres large database backup

From: Vijaykumar Jain <vijaykumarjain(dot)github(at)gmail(dot)com>
To: Atul Kumar <akumar14871(at)gmail(dot)com>
Cc: pgsql-general <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: postgres large database backup
Date: 2022-11-30 17:41:02
Message-ID: CAM+6J96m9rM+jXw8n_-_ZyiUDXOQ555XH0UOJEt6TLFYH2zLDA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Nov 30, 2022, 9:10 PM Atul Kumar <akumar14871(at)gmail(dot)com> wrote:

> Hi,
>
> I have a 10TB database running on postgres 11 version running on centos 7
> "on premises", I need to schedule the backup of this database in a faster
> way.
>
> The scheduled backup will be used for PITR purposes.
>
> So please let me know how I should do it in a quicker backup for my 10TB
> database ? Is there any tool to take backups and subsequently incremental
> backups in a faster way and restore it for PITR in a faster way when
> required.
>
> What should be the exact approach for scheduling such backups so that it
> can be restored in a faster way ?
>

We had a 96 cpu, 385gb ram, nvme storage and 10g network baremetal server.
We used pgbackrest for full backup.
It supports pitr and differential backup.

28tb db took 2.5 hours for backup on remote storage, and restore from the
remote storage took 3.5 hours when immediately restored (a lot of time is
later due to wal replay to catch up)

pg_basebackup took 9 hours.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Brad White 2022-11-30 17:51:39 Re: postgresql 13.1: precision of spatial operations
Previous Message Christophe Pettus 2022-11-30 17:31:37 Re: postgres large database backup