barman.clients.cloud_backup module#

barman.clients.cloud_backup.__is_hook_script()View on GitHub#

Check the environment and determine if we are running as a hook script

barman.clients.cloud_backup._find_space(string, pos=0, endpos=9223372036854775807)#

Scan through string looking for a match, and return a corresponding match object instance.

Return None if no position in the string matches.

barman.clients.cloud_backup._validate_config(config)View on GitHub#

Additional validation for config such as mutually inclusive options.

Raises a ConfigurationException if any options are missing or incompatible.

Parameters:

config (argparse.Namespace) – The backup options provided at the command line.

barman.clients.cloud_backup.build_conninfo(config)View on GitHub#

Build a DSN to connect to postgres using command-line arguments

barman.clients.cloud_backup.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_backup.parse_arguments(args=None)View on GitHub#

Parse command line arguments

Returns:

The options parsed

barman.clients.cloud_backup.quote_conninfo(value)View on GitHub#

Quote a connection info parameter

Parameters:

value (str)

Return type:

str