EnterpriseDB / barman

Barman - Backup and Recovery Manager for PostgreSQL

Home Page:https://www.pgbarman.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Disable automatic download of partial files with `barman-cloud-wal-restore`

gbartolini opened this issue · comments

Currently, barman-cloud-wal-restore automatically downloads a .partial file if the requested one is absent. It would be great to introduce an option that disables this behaviour (which I think I introduced).

The option could be --disable-partial-fallback or --strict-name (-S)?.

Note: CloudNativePG needs this feature to provide more control over when the operator can request the download of a partial file.

I don't like --strict-name because barman-cloud-wal-restore also tries to detect the presence of compressed files by cycling over possible compression extensions, and --strict-name would imply to ignore not only the partial file but also the compressed files.