Hi, I'm using pg_rman 1.2.5 with PostgreSQL 9.1.5 on RHEL 6.3 x86_64 Server.
When I tried to restore postgres using pg_rman restore --recovery-target-xid=xxxx
Then pg_rman failed to restore and shows following error message:
-- snip --
========================================
restore start
WARNING: can't open pg_controldata file "/usr/local/pgsql/data/global/pg_control": No such file or directory.
current timeline ID = 0
latest full backup timeline ID = 10
target timeline ID = 10
----------------------------------------
backup online WAL and serverlog start
online WALs have been already backed up, use them.
----------------------------------------
clearing restore destination
restoring timeline history files
copy "0000000A.history"
ERROR: can't open destination file "/usr/local/pgsql/data/archive_log/0000000A.history": No such file or directory.
-- snip end --
After that I delete the history file from backup directory ($BACKUP/timeline_history/0000000A.history)
and try again then restore succeeded.
I'm taking full backup every day and backup archive logs every 5 minutes.
Is there any work around?
Thanks.