Re: Basebackup

From: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
To: Rajesh Kumar <rajeshkumar(dot)dba09(at)gmail(dot)com>, Pgsql-admin <pgsql-admin(at)lists(dot)postgresql(dot)org>
Subject: Re: Basebackup
Date: 2024-09-03 14:52:55
Message-ID: 6202aa6d565279470c4b1fe4c895342d954f8df4.camel@cybertec.at
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Tue, 2024-09-03 at 18:01 +0530, Rajesh Kumar wrote:
> How different is basebackup from new server with primary host and rsync from primary,  move to new server and start cluster?

The main difference is that you have to stop the server if you want to use "rsync",
otherwise the backup will be inconsistent.

A backup taken with "pg_basebackup" will be recovered when you start it.

You *can* perform an online file system backup with "rsync", but then you will
have to use the low-level backup API:
https://www.postgresql.org/docs/current/continuous-archiving.html#BACKUP-LOWLEVEL-BASE-BACKUP

Yours,
Laurenz Albe

In response to

  • Basebackup at 2024-09-03 12:31:16 from Rajesh Kumar

Browse pgsql-admin by date

  From Date Subject
Next Message Asad Ali 2024-09-04 08:19:27 Re: Basebackup
Previous Message ajit wangkhem 2024-09-03 14:45:23 Re: Basebackup