Postgresql基于时间点恢复PITR(二)

Postgresql基于时间点恢复PITR案例(二)

最后都变了- 提交于 2019-12-06 00:13:59
一个朋友说参考了网址:http://www.mkyong.com/database/postgresql-point-in-time-recovery-incremental-backup/后做了一个基于时间点的数据库恢复操作,但是失败了。其过程大致如下: 测试环境:vmware 8 os :centos 5.7 (final) PG: version 9.1.2 ####以下是他的测试过程记录 postgres=# create table testPITR1 as select * from pg_class, pg_description; SELECT 936936 postgres=# select * from current_timestamp(0); timestamptz ------------------------ 2012-07-02 01:53:16-07 (1 row) postgres=# select pg_start_backup('full_backup-testing_20120702'); pg_start_backup ----------------- 0/60000020 (1 row) postgres=# select pg_current_xlog_location(); pg_current_xlog_location ---