barman recover - timestamp format

34 views
Skip to first unread message

dulh...@mailbox.org

unread,
Jan 10, 2022, 12:58:04 PM1/10/22
to pgba...@googlegroups.com
there is an option --target-timestamp for the barman recover command

where can I find an explanation of the format required to specify the timesamp (i.e. Jan 01 2021 14:22 PM)?
unfortunately I can not see any specs in the documentation

dulh...@mailbox.org

unread,
Jan 10, 2022, 2:03:10 PM1/10/22
to pgba...@googlegroups.com
I figured out 2 working formats
  • 20210101T142200
  • '2021-01-01 14:22:00'
there may be others. Still I find it strange those are not listed in the documenation

Luca Ferrari

unread,
Jan 11, 2022, 3:45:11 AM1/11/22
to Barman, Backup and Recovery Manager for PostgreSQL
On Mon, Jan 10, 2022 at 8:03 PM dulhaver via Barman, Backup and
Recovery Manager for PostgreSQL <pgba...@googlegroups.com> wrote:
> there may be others. Still I find it strange those are not listed in the documenation

It is not as strange as you think: the recovery options are not barman
specific, they are PostgreSQL parameters that barmans "passes" to the
server.
This means, you need to have a look at the PostgreSQL documentation:
<https://www.postgresql.org/docs/14/runtime-config-wal.html#RUNTIME-CONFIG-WAL-RECOVERY-TARGET>.

Luca
Reply all
Reply to author
Forward
0 new messages