Re: Backup from a hot standby

From: Fujii Masao <masao(dot)fujii(at)gmail(dot)com>
To: mpartio(at)gmail(dot)com
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Backup from a hot standby
Date: 2010-04-05 08:34:47
Message-ID: u2s3f0b79eb1004050134v969191cbxe40b90b60732c091@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Sorry for the delay.

On Thu, Mar 4, 2010 at 3:47 PM, Mikko Partio <mpartio(at)gmail(dot)com> wrote:
> Hi
> I'm currently testing Pg 9.0.0 alpha 4 and the hot standby feature (with
> streaming replication) is working great. I tried to take a filesystem backup
> from a hot standby, but I guess that is not possible since executing "SELECT
> pg_start_backup('ss')" returns an error? Or can I just tar $PGDATA and copy
> the xlog files generated during the backup, since the server is in constant
> recovery mode?  In Oracle it is possible to take backups from a data guard
> standby, which is very useful since that way making the backups does not
> stress the master server.

You can take a base backup of the standby while it's in progress, without
calling pg_start_backup() and pg_stop_backup(). Please see the following
document.
http://developer.postgresql.org/pgdocs/postgres/backup-incremental-updated.html

Regards,

--
Fujii Masao
NIPPON TELEGRAPH AND TELEPHONE CORPORATION
NTT Open Source Software Center

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Brad Nicholson 2010-04-05 12:29:57 Re: Migrate postgres to newer hardware
Previous Message Guillaume Lelarge 2010-04-05 06:29:15 Re: Execute VACUUM FULL when DB touches a specific size ?