barman.clients.cloud_walrestore module#

barman.clients.cloud_walrestore.main(args=None)View on GitHub#

The main script entry point

Parameters:

args (list[str]) – the raw arguments list. When not provided it defaults to sys.args[1:]

barman.clients.cloud_walrestore.parse_arguments(args=None)View on GitHub#

Parse command line arguments

Note

The --no-partial option addresses a specific Postgres behavior with partial WAL segments. If a standby server is archiving and gets promoted to primary, it will attempt to archive the incomplete WAL segment as a .partial file, and then the WALs from the new timeline. When executing a barman-cloud-wal-restore through restore_command, it might find the .partial file instead of the complete WAL file and unintentionally apply those changes. Using --no-partial allows barman-cloud-wal-restore to intentionally skip partial files, forcing Postgres to continue replay on the new timeline instead.

Parameters:

args (list[str]) – Command line arguments to parse

Returns:

The options parsed