barman.clients.cloud_walrestore module#
- barman.clients.cloud_walrestore.main(args=None)View on GitHub#
The main script entry point
- barman.clients.cloud_walrestore.parse_arguments(args=None)View on GitHub#
Parse command line arguments
Note
The
--no-partialoption 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 abarman-cloud-wal-restorethroughrestore_command, it might find the .partial file instead of the complete WAL file and unintentionally apply those changes. Using--no-partialallowsbarman-cloud-wal-restoreto intentionally skip partial files, forcing Postgres to continue replay on the new timeline instead.