pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Backup from a hot standby
2+ messages / 2 participants
[nested] [flat]

* Backup from a hot standby
@ 2010-03-04 06:47 Mikko Partio <mpartio@gmail.com>
  2010-04-05 08:34 ` Re: Backup from a hot standby Fujii Masao <masao.fujii@gmail.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Mikko Partio @ 2010-03-04 06:47 UTC (permalink / raw)
  To: pgsql-admin

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.

Anyway, I must say that we are very pleased to see HS and SR features, and
we hope that 9.0.0 goes to beta (and to an official release) soon!

Regards

Mikko

^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Backup from a hot standby
  2010-03-04 06:47 Backup from a hot standby Mikko Partio <mpartio@gmail.com>
@ 2010-04-05 08:34 ` Fujii Masao <masao.fujii@gmail.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Fujii Masao @ 2010-04-05 08:34 UTC (permalink / raw)
  To: mpartio@gmail.com; +Cc: pgsql-admin

Sorry for the delay.

On Thu, Mar 4, 2010 at 3:47 PM, Mikko Partio <mpartio@gmail.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



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2010-04-05 08:34 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2010-03-04 06:47 Backup from a hot standby Mikko Partio <mpartio@gmail.com>
2010-04-05 08:34 ` Fujii Masao <masao.fujii@gmail.com>

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