Backup from a hot standby

--0015173fe9d06b4e350480f3f86c
Content-Type: text/plain; charset=ISO-8859-1

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

--0015173fe9d06b4e350480f3f86c
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hi<div><br></div><div>I'm currently testing Pg 9.0.0 alpha 4 and the ho=
t 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 possi=
ble since executing "SELECT pg_start_backup('ss')" return=
s an error? Or can I just tar $PGDATA and copy the xlog files generated dur=
ing the backup, since the server is in constant recovery mode? =A0In Oracle=
it is possible to take backups from a data guard standby, which is very us=
eful since that way making the backups does not stress the master server.</=
div>
<div><br></div><div>Anyway, I must say that we are very pleased to see HS a=
nd SR features, and we hope that 9.0.0 goes to beta (and to an official rel=
ease) soon!</div><div><br></div><div>Regards</div><div><br></div><div>Mikko=
</div>

--0015173fe9d06b4e350480f3f86c--
Mikko Partio [ Do, 04 März 2010 07:47 ] [ ID #2034024 ]

Re: Backup from a hot standby

Sorry for the delay.

On Thu, Mar 4, 2010 at 3:47 PM, Mikko Partio <mpartio [at] 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 bac=
kup
> from a hot standby, but I guess that is not possible since executing "SEL=
ECT
> pg_start_backup('ss')" returns an error? Or can I just tar $PGDATA and co=
py
> the xlog files generated during the backup, since the server is in consta=
nt
> recovery mode? =A0In Oracle it is possible to take backups from a data gu=
ard
> 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-incre mental-updated.=
html

Regards,

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

--
Sent via pgsql-admin mailing list (pgsql-admin [at] postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
Fujii Masao [ Mo, 05 April 2010 10:34 ] [ ID #2037787 ]
Datenbanken » gmane.comp.db.postgresql.admin » Backup from a hot standby

Vorheriges Thema: Database clone stuck in the middle
Nächstes Thema: Execute VACUUM FULL when DB touches a specific size ?