barman.clients.cloud_walrestore module#

class barman.clients.cloud_walrestore.CloudWalDownloader(cloud_interface, server_name)View on GitHub#

Bases: object

Cloud storage download client

__init__(cloud_interface, server_name)View on GitHub#

Object responsible for handling interactions with cloud storage

Parameters:
  • cloud_interface (CloudInterface) – The interface to use to upload the backup

  • server_name (str) – The name of the server as configured in Barman

download_wal(wal_name, wal_dest, no_partial)View on GitHub#

Download a WAL file from cloud storage

Parameters:
  • wal_name (str) – Name of the WAL file

  • wal_dest (str) – Full path of the destination WAL file

  • no_partial (bool) – Do not download partial WAL files

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

Returns:

The options parsed