Backup/Restore to a point in time

Started by Troy Campanoalmost 22 years ago2 messagesgeneral
Jump to latest
#1Troy Campano
troycampano@yahoo.com

Hello,

1) I know that Postgresql writes its transactions to logs (WAL).

If I take exports once a day (say 7am) and I have a client that somehow
ruins their database at 5pm today and it is now 7pm, can I somehow get the
database back to the state it was in at 4:59 (right before they blew up
their database)?

2) Where are the WAL files located?

Thank you!

~ Troy Campano ~

#2Doug McNaught
doug@mcnaught.org
In reply to: Troy Campano (#1)
Re: Backup/Restore to a point in time

"Troy Campano" <troycampano@yahoo.com> writes:

Hello,

1) I know that Postgresql writes its transactions to logs (WAL).

If I take exports once a day (say 7am) and I have a client that
somehow ruins their database at 5pm today and it is now 7pm, can I
somehow get the database back to the state it was in at 4:59 (right
before they blew up their database)?

Not with current versions. This feature is called point-in-time
recovery (PITR) and is being reviewed for inclusion in the upcoming
7.5 release.

-Doug