EnterpriseDB / barman

Barman - Backup and Recovery Manager for PostgreSQL
https://www.pgbarman.org/
GNU General Public License v3.0
2.07k stars 191 forks source link

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

Closed gbartolini closed 3 months ago

gbartolini commented 4 months ago

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.

mnencia commented 3 months ago

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.