dalibo / pitrery

DEPRECATED. PostgreSQL Point In Time Recovery made easy
http://dalibo.github.io/pitrery/
Other
108 stars 31 forks source link

pitrery restore: WARNING: could not get the ending timestamp #138

Closed OrioQuezac closed 3 years ago

OrioQuezac commented 3 years ago

Hi,

With pitrery 3.2, this error appears when we try to restore a backup :

$ pitrery restore -D /PGDATA/data -d "2020-12-04 11:26:06 CET"
2020-12-07 09:41:38 CET INFO: searching backup directory
/bin/pitrery: line 983: /pgbackups/pitr/2020-12-04T10:25:06+0100/backup_timestamp/backup_timestamp: Not a directory
2020-12-07 09:41:38 CET WARNING: could not get the ending timestamp of /local_pgbackups/prod/pitr/2020-12-04T10:25:06+0100/backup_timestamp

With pitrery 3.1, everythings works fine.

madtibo commented 3 years ago

Merci @OrioQuezac pour l'info

@blogh cela semble provenir de l'évolution _abort check if backuptimestamp is not available (240abf67).

Un manque de protection de la string ici ??

madtibo commented 3 years ago

Found the problem.

I push a PR that you can try out.

OrioQuezac commented 3 years ago

It's ok for me ! Everything works find with this PR.

madtibo commented 3 years ago

Corrected in v3.3