From: | Greg Smith <gsmith(at)gregsmith(dot)com> |
---|---|
To: | "Joey K(dot)" <pguser(at)gmail(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: PITR and base + full backups |
Date: | 2008-09-16 20:55:10 |
Message-ID: | Pine.GSO.4.64.0809161636540.17288@westnet.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Tue, 16 Sep 2008, Joey K. wrote:
> (1) pg_start_backup(`date`)
> (2) perform hot rsync first (while the database is running)
> $ rsync -avr pgdata /backup/`date`/
> (3) stop pg
You need to call pg_stop_backup() here and wait until the last WAL file it
references has been archived before this backup is complete. You can't
finish that backup with pg_stop_backup after the server has been stopped.
The upcoming PostgreSQL 8.4 won't even let you stop the server normally if
a backup is in process because you're not supposed to do that.
If you're running 8.2 or later, you can set archive_timeout to bound how
long it will take before that last segment shows up, or you can manually
call pg_switch_xlog. See http://wiki.postgresql.org/wiki/Warm_Standby for
how to force that on 8.1 (and the walkthrough on that page may be helpful
to you as well).
--
* Greg Smith gsmith(at)gregsmith(dot)com http://www.gregsmith.com Baltimore, MD
From | Date | Subject | |
---|---|---|---|
Next Message | Andrew Sullivan | 2008-09-16 21:04:19 | Re: Is there a parameter to tell postgresql to not attempt to open an IPv6 socket? |
Previous Message | Reid.Thompson | 2008-09-16 20:46:37 | Is there a parameter to tell postgresql to not attempt to open an IPv6 socket? |