barman package#
Subpackages#
- barman.clients package
- Submodules
- barman.clients.cloud_backup module
- barman.clients.cloud_backup_delete module
- barman.clients.cloud_backup_keep module
- barman.clients.cloud_backup_list module
- barman.clients.cloud_backup_show module
- barman.clients.cloud_check_wal_archive module
- barman.clients.cloud_cli module
- barman.clients.cloud_compression module
- barman.clients.cloud_restore module
- barman.clients.cloud_walarchive module
- barman.clients.cloud_walrestore module
- barman.clients.walarchive module
- barman.clients.walrestore module
- Module contents
- Submodules
- barman.cloud_providers package
- Submodules
- Module contents
CloudProviderOptionUnsupported
CloudProviderUnsupported
_get_azure_credential()
_make_azure_cloud_interface()
_make_google_cloud_interface()
_make_s3_cloud_interface()
_update_kwargs()
get_cloud_interface()
get_snapshot_interface()
get_snapshot_interface_from_backup_info()
get_snapshot_interface_from_server_config()
snapshots_info_from_dict()
- barman.storage package
Submodules#
- barman.annotations module
AnnotationManager
AnnotationManagerCloud
AnnotationManagerCloud.__init__()
AnnotationManagerCloud._abc_impl
AnnotationManagerCloud._get_annotation_path()
AnnotationManagerCloud._get_base_path()
AnnotationManagerCloud._populate_annotation_cache()
AnnotationManagerCloud.delete_annotation()
AnnotationManagerCloud.get_annotation()
AnnotationManagerCloud.put_annotation()
AnnotationManagerFile
KeepManager
KeepManagerMixin
KeepManagerMixinCloud
- barman.backup module
BackupManager
BackupManager.DEFAULT_STATUS_FILTER
BackupManager.DELETE_ANNOTATION
BackupManager.__init__()
BackupManager._abc_impl
BackupManager._load_backup_cache()
BackupManager._set_backup_sizes()
BackupManager._validate_incremental_backup_configs()
BackupManager.archive_wal()
BackupManager.backup()
BackupManager.backup_cache_add()
BackupManager.backup_cache_remove()
BackupManager.backup_fsync_and_set_sizes()
BackupManager.check()
BackupManager.check_backup()
BackupManager.check_delete_annotation()
BackupManager.cron_retention_policy()
BackupManager.delete_backup()
BackupManager.delete_backup_data()
BackupManager.delete_basebackup()
BackupManager.delete_wal()
BackupManager.fetch_remote_status()
BackupManager.find_next_backup_in()
BackupManager.find_previous_backup_in()
BackupManager.get_available_backups()
BackupManager.get_backup()
BackupManager.get_backup_id_from_name()
BackupManager.get_first_backup_id()
BackupManager.get_last_backup_id()
BackupManager.get_last_full_backup_id()
BackupManager.get_latest_archived_wals_info()
BackupManager.get_next_backup()
BackupManager.get_previous_backup()
BackupManager.get_timelines_to_protect()
BackupManager.mode
BackupManager.put_delete_annotation()
BackupManager.rebuild_xlogdb()
BackupManager.recover()
BackupManager.release_delete_annotation()
BackupManager.remove_wal_before_backup()
BackupManager.should_remove_wals()
BackupManager.status()
BackupManager.validate_backup_args()
BackupManager.validate_last_backup_maximum_age()
BackupManager.validate_last_backup_min_size()
BackupManager.verify_backup()
- barman.backup_executor module
BackupExecutor
BackupExecutor.__init__()
BackupExecutor._abc_impl
BackupExecutor._purge_unused_wal_files()
BackupExecutor._start_backup_copy_message()
BackupExecutor._stop_backup_copy_message()
BackupExecutor.backup()
BackupExecutor.check()
BackupExecutor.fetch_remote_status()
BackupExecutor.init()
BackupExecutor.mode
BackupExecutor.status()
BackupStrategy
BackupStrategy.START_TIME_RE
BackupStrategy.WAL_RE
BackupStrategy.__init__()
BackupStrategy._abc_impl
BackupStrategy._backup_info_from_backup_label()
BackupStrategy._backup_info_from_start_location()
BackupStrategy._backup_info_from_stop_location()
BackupStrategy._pg_get_metadata()
BackupStrategy._read_backup_label()
BackupStrategy.check()
BackupStrategy.start_backup()
BackupStrategy.status()
BackupStrategy.stop_backup()
ConcurrentBackupStrategy
ExclusiveBackupStrategy
ExternalBackupExecutor
ExternalBackupExecutor.__init__()
ExternalBackupExecutor._abc_impl
ExternalBackupExecutor._local_check()
ExternalBackupExecutor._remote_check()
ExternalBackupExecutor._update_action_from_strategy()
ExternalBackupExecutor.backup()
ExternalBackupExecutor.backup_copy()
ExternalBackupExecutor.check()
ExternalBackupExecutor.fetch_remote_status()
ExternalBackupExecutor.status()
LocalConcurrentBackupStrategy
PassiveBackupExecutor
PostgresBackupExecutor
PostgresBackupExecutor.__init__()
PostgresBackupExecutor._abc_impl
PostgresBackupExecutor._err_handler()
PostgresBackupExecutor._prepare_backup_destination()
PostgresBackupExecutor._retry_handler()
PostgresBackupExecutor._start_backup_copy_message()
PostgresBackupExecutor._validate_compression()
PostgresBackupExecutor.backup()
PostgresBackupExecutor.backup_copy()
PostgresBackupExecutor.check()
PostgresBackupExecutor.fetch_remote_status()
PostgresBackupExecutor.validate_configuration()
PostgresBackupStrategy
RsyncBackupExecutor
SnapshotBackupExecutor
SnapshotBackupExecutor.__init__()
SnapshotBackupExecutor._abc_impl
SnapshotBackupExecutor._start_backup_copy_message()
SnapshotBackupExecutor._stop_backup_copy_message()
SnapshotBackupExecutor._validate_aws_lock_configuration()
SnapshotBackupExecutor.add_mount_data_to_volume_metadata()
SnapshotBackupExecutor.backup_copy()
SnapshotBackupExecutor.check()
SnapshotBackupExecutor.find_missing_and_unmounted_disks()
SnapshotBackupExecutor.validate_configuration()
_parse_ssh_command()
- barman.backup_manifest module
- barman.cli module
OrderedHelpFormatter
archive_wal()
argument()
backup()
backup_completer()
check()
check_backup()
check_target_action()
check_wal_archive()
command()
config_switch()
config_update()
cron()
delete()
diagnose()
generate_manifest()
get_model()
get_models_list()
get_server()
get_server_list()
get_wal()
global_config()
help()
keep()
list_backups()
list_files()
list_servers()
lock_directory_cleanup()
main()
manage_model_command()
manage_server_command()
parse_backup_id()
pretty_args()
put_wal()
rebuild_xlogdb()
receive_wal()
replication_status()
restore()
server_completer()
server_completer_all()
show_backup()
show_servers()
status()
switch_wal()
sync_backup()
sync_info()
sync_wals()
verify_backup()
- barman.cloud module
BackupFileInfo
CloudBackup
CloudBackup.__init__()
CloudBackup._abc_impl
CloudBackup._add_stats_to_backup_info()
CloudBackup._check_postgres_version()
CloudBackup._coordinate_backup()
CloudBackup._create_restore_point()
CloudBackup._finalise_copy()
CloudBackup._get_backup_info()
CloudBackup._log_end_of_backup()
CloudBackup._start_backup()
CloudBackup._stop_backup()
CloudBackup._take_backup()
CloudBackup._upload_backup_info()
CloudBackup._upload_backup_label()
CloudBackup.backup()
CloudBackup.handle_backup_errors()
CloudBackupCatalog
CloudBackupCatalog.__init__()
CloudBackupCatalog._abc_impl
CloudBackupCatalog._get_backup_info_from_name()
CloudBackupCatalog.get_backup_files()
CloudBackupCatalog.get_backup_info()
CloudBackupCatalog.get_backup_list()
CloudBackupCatalog.get_wal_paths()
CloudBackupCatalog.get_wal_prefixes()
CloudBackupCatalog.parse_backup_id()
CloudBackupCatalog.remove_backup_from_cache()
CloudBackupCatalog.remove_wal_from_cache()
CloudBackupSnapshot
CloudBackupSnapshot.__init__()
CloudBackupSnapshot._abc_impl
CloudBackupSnapshot._add_stats_to_backup_info()
CloudBackupSnapshot._check_backup_preconditions()
CloudBackupSnapshot._finalise_copy()
CloudBackupSnapshot._take_backup()
CloudBackupSnapshot._upload_backup_label()
CloudBackupSnapshot.backup()
CloudBackupUploader
CloudBackupUploader.__init__()
CloudBackupUploader._abc_impl
CloudBackupUploader._add_stats_to_backup_info()
CloudBackupUploader._backup_config_files()
CloudBackupUploader._backup_data_files()
CloudBackupUploader._create_upload_controller()
CloudBackupUploader._finalise_copy()
CloudBackupUploader._get_tablespace_location()
CloudBackupUploader._pgdata_dir
CloudBackupUploader._take_backup()
CloudBackupUploader._upload_backup_label()
CloudBackupUploader.backup()
CloudBackupUploaderBarman
CloudInterface
CloudInterface.MAX_ARCHIVE_SIZE
CloudInterface.MAX_CHUNKS_PER_FILE
CloudInterface.MAX_DELETE_BATCH_SIZE
CloudInterface.MIN_CHUNK_SIZE
CloudInterface.__init__()
CloudInterface._abc_impl
CloudInterface._abort()
CloudInterface._abort_multipart_upload()
CloudInterface._check_bucket_existence()
CloudInterface._complete_multipart_upload()
CloudInterface._create_bucket()
CloudInterface._delete_objects_batch()
CloudInterface._ensure_async()
CloudInterface._handle_async_errors()
CloudInterface._reinit_session()
CloudInterface._retrieve_results()
CloudInterface._upload_part()
CloudInterface._worker_process_execute_job()
CloudInterface._worker_process_main()
CloudInterface.async_complete_multipart_upload()
CloudInterface.async_upload_part()
CloudInterface.close()
CloudInterface.create_multipart_upload()
CloudInterface.delete_objects()
CloudInterface.delete_under_prefix()
CloudInterface.download_file()
CloudInterface.extract_tar()
CloudInterface.get_prefixes()
CloudInterface.list_bucket()
CloudInterface.remote_open()
CloudInterface.setup_bucket()
CloudInterface.test_connectivity()
CloudInterface.upload_fileobj()
CloudInterface.wait_for_multipart_upload()
CloudProviderError
CloudSnapshotInterface
CloudSnapshotInterface._abc_impl
CloudSnapshotInterface._required_config_for_backup
CloudSnapshotInterface._required_config_for_restore
CloudSnapshotInterface.delete_snapshot_backup()
CloudSnapshotInterface.get_attached_volumes()
CloudSnapshotInterface.instance_exists()
CloudSnapshotInterface.take_snapshot_backup()
CloudSnapshotInterface.validate_backup_config()
CloudSnapshotInterface.validate_restore_config()
CloudTarUploader
CloudUploadController
CloudUploadController.__init__()
CloudUploadController._build_dest_name()
CloudUploadController._get_tar()
CloudUploadController.add_file()
CloudUploadController.add_fileobj()
CloudUploadController.close()
CloudUploadController.copy_end_time
CloudUploadController.copy_start_time
CloudUploadController.statistics()
CloudUploadController.upload_directory()
CloudUploadController.upload_stats
CloudUploadingError
DecompressingStreamingIO
FileUploadStatistics
SnapshotMetadata
SnapshotsInfo
TarFileIgnoringTruncate
VolumeMetadata
configure_logging()
copyfileobj_pad_truncate()
- barman.command_wrappers module
- barman.compression module
BZip2Compressor
CommandCompressor
Compression
CompressionManager
Compressor
CustomCompressor
GZipCompression
GZipCompressor
GZipPgBaseBackupCompressionOption
InternalCompressor
LZ4Compression
LZ4Compressor
LZ4PgBaseBackupCompressionOption
NoneCompression
NonePgBaseBackupCompressionOption
PgBaseBackupCompression
PgBaseBackupCompressionConfig
PgBaseBackupCompressionOption
PigzCompressor
PyBZip2Compressor
PyGZipCompressor
XZCompressor
ZSTDCompression
ZSTDCompressor
ZSTDPgBaseBackupCompressionOption
_try_import_lz4()
_try_import_zstd()
get_pg_basebackup_compression()
- barman.config module
BackupOptions
BaseChange
BaseConfig
Config
Config.CONFIG_FILES
Config._QUOTE_RE
Config.__init__()
Config._apply_models()
Config._check_conflicting_paths()
Config._detect_missing_keys()
Config._is_global_config_changed()
Config._is_model()
Config._parse_global_config()
Config._populate_servers_and_models()
Config._validate_with_keys()
Config.get()
Config.get_config_source()
Config.get_model()
Config.get_server()
Config.global_config_to_json()
Config.load_config_file()
Config.load_configuration_files_directory()
Config.model_names()
Config.models()
Config.server_names()
Config.servers()
Config.validate_global_config()
Config.validate_model_config()
Config.validate_server_config()
ConfigChange
ConfigChangeSet
ConfigChangeSetEncoder
ConfigChangesProcessor
ConfigChangesQueue
ConfigMapping
CsvOption
ModelConfig
PathConflict
RecoveryOptions
ServerConfig
ServerConfig.BARMAN_KEYS
ServerConfig.DEFAULTS
ServerConfig.FIXED
ServerConfig.KEYS
ServerConfig.PARSERS
ServerConfig.__init__()
ServerConfig.apply_model()
ServerConfig.get_bwlimit()
ServerConfig.get_wal_conninfo()
ServerConfig.reset_model()
ServerConfig.to_json()
ServerConfig.update_msg_list_and_disable_server()
_main()
parse_backup_compression()
parse_backup_compression_format()
parse_backup_compression_location()
parse_backup_method()
parse_boolean()
parse_create_slot()
parse_reuse_backup()
parse_si_suffix()
parse_slot_name()
parse_snapshot_disks()
parse_staging_path()
parse_time_interval()
- barman.copy_controller module
RsyncCopyController
RsyncCopyController.CONFIG_CLASS
RsyncCopyController.LIST_ONLY_RE
RsyncCopyController.PGCONTROL_CLASS
RsyncCopyController.PGDATA_CLASS
RsyncCopyController.TABLESPACE_CLASS
RsyncCopyController.VANISHED_RE
RsyncCopyController.__init__()
RsyncCopyController._analyze_directory()
RsyncCopyController._apply_rate_limit()
RsyncCopyController._copy()
RsyncCopyController._create_dir_and_purge()
RsyncCopyController._execute_job()
RsyncCopyController._fill_buckets()
RsyncCopyController._job_generator()
RsyncCopyController._list_files()
RsyncCopyController._progress_init()
RsyncCopyController._progress_message()
RsyncCopyController._retry_handler()
RsyncCopyController._reuse_args()
RsyncCopyController._rsync_factory()
RsyncCopyController._rsync_ignore_vanished_files()
RsyncCopyController._rsync_set_pre_31_mode()
RsyncCopyController.add_directory()
RsyncCopyController.add_file()
RsyncCopyController.copy()
RsyncCopyController.copy_end_time
RsyncCopyController.copy_start_time
RsyncCopyController.current_step
RsyncCopyController.item_list
RsyncCopyController.jobs_done
RsyncCopyController.rsync_cache
RsyncCopyController.statistics()
RsyncCopyController.temp_dir
RsyncCopyController.total_steps
_FileItem
_RsyncCopyItem
_RsyncJob
_init_worker()
_run_worker()
_worker_callable
- barman.diagnose module
- barman.exceptions module
AbortedRetryHookScript
ArchivalBackupException
ArchiverFailure
BackupException
BackupFunctionsAccessRequired
BackupInfoBadInitialisation
BackupManifestException
BackupPreconditionException
BadHistoryFileContents
BadXlogPrefix
BadXlogSegmentName
BarmanException
CommandException
CommandFailedException
CommandMaxRetryExceeded
CompressionException
CompressionIncompatibility
ConfigurationException
ConninfoException
DataTransferFailure
DuplicateWalFile
FileNotFoundException
FsOperationFailed
HookScriptException
InvalidRetentionPolicy
LockFileBusy
LockFileException
LockFileParsingError
LockFilePermissionDenied
MatchingDuplicateWalFile
PostgresAppNameError
PostgresCheckpointPrivilegesRequired
PostgresConnectionError
PostgresConnectionLost
PostgresDuplicateReplicationSlot
PostgresException
PostgresInvalidReplicationSlot
PostgresIsInRecovery
PostgresObsoleteFeature
PostgresReplicationSlotInUse
PostgresReplicationSlotsFull
PostgresSuperuserRequired
PostgresUnsupportedFeature
RecoveryException
RecoveryInvalidTargetException
RecoveryPreconditionException
RecoveryStandbyModeException
RecoveryTargetActionException
RsyncListFilesFailure
SnapshotBackupException
SnapshotInstanceNotFoundException
SshCommandException
SyncError
SyncException
SyncNothingToDo
SyncToBeDeleted
TimeoutError
UnknownBackupIdException
UnrecoverableHookScriptError
WALFileException
WalArchiveContentError
- barman.fs module
LocalLibPathDeletionCommand
PathDeletionCommand
UnixCommandPathDeletionCommand
UnixLocalCommand
UnixLocalCommand.__init__()
UnixLocalCommand.check_directory_exists()
UnixLocalCommand.check_write_permission()
UnixLocalCommand.cmd()
UnixLocalCommand.create_dir_if_not_exists()
UnixLocalCommand.create_symbolic_link()
UnixLocalCommand.delete_if_exists()
UnixLocalCommand.exists()
UnixLocalCommand.findmnt()
UnixLocalCommand.get_file_content()
UnixLocalCommand.get_file_mode()
UnixLocalCommand.get_last_output()
UnixLocalCommand.get_system_info()
UnixLocalCommand.is_osx()
UnixLocalCommand.list_dir_content()
UnixLocalCommand.move()
UnixLocalCommand.ping()
UnixLocalCommand.validate_file_mode()
UnixRemoteCommand
_match_path()
_translate_to_regexp()
_wildcard_match_path()
path_allowed()
unix_command_factory()
- barman.hooks module
- barman.infofile module
BackupInfo
BackupInfo.DONE
BackupInfo.EMPTY
BackupInfo.FAILED
BackupInfo.KEEP_FULL
BackupInfo.KEEP_STANDALONE
BackupInfo.NONE
BackupInfo.OBSOLETE
BackupInfo.POTENTIALLY_OBSOLETE
BackupInfo.RETENTION_STATUS
BackupInfo.STARTED
BackupInfo.STATUS_ALL
BackupInfo.STATUS_ARCHIVING
BackupInfo.STATUS_COPY_DONE
BackupInfo.STATUS_NOT_EMPTY
BackupInfo.SYNCING
BackupInfo.VALID
BackupInfo.WAITING_FOR_WALS
BackupInfo.__init__()
BackupInfo._hide_if_null
BackupInfo.backup_id
BackupInfo.backup_label
BackupInfo.backup_name
BackupInfo.backup_type
BackupInfo.backup_version
BackupInfo.begin_offset
BackupInfo.begin_time
BackupInfo.begin_wal
BackupInfo.begin_xlog
BackupInfo.children_backup_ids
BackupInfo.cluster_size
BackupInfo.compression
BackupInfo.config_file
BackupInfo.copy_stats
BackupInfo.data_checksums
BackupInfo.deduplicated_size
BackupInfo.deduplication_ratio
BackupInfo.end_offset
BackupInfo.end_time
BackupInfo.end_wal
BackupInfo.end_xlog
BackupInfo.error
BackupInfo.from_json()
BackupInfo.get_external_config_files()
BackupInfo.get_required_wal_segments()
BackupInfo.has_children
BackupInfo.hba_file
BackupInfo.ident_file
BackupInfo.included_files
BackupInfo.is_incremental
BackupInfo.mode
BackupInfo.parent_backup_id
BackupInfo.pg_major_version()
BackupInfo.pgdata
BackupInfo.server_name
BackupInfo.set_attribute()
BackupInfo.size
BackupInfo.snapshots_info
BackupInfo.status
BackupInfo.summarize_wal
BackupInfo.systemid
BackupInfo.tablespaces
BackupInfo.timeline
BackupInfo.to_dict()
BackupInfo.to_json()
BackupInfo.version
BackupInfo.wal_directory()
BackupInfo.xlog_segment_size
Field
FieldListFile
LocalBackupInfo
LocalBackupInfo.__init__()
LocalBackupInfo.backup_manager
LocalBackupInfo.config
LocalBackupInfo.detect_backup_id()
LocalBackupInfo.get_backup_manifest_path()
LocalBackupInfo.get_basebackup_directory()
LocalBackupInfo.get_child_backup_info()
LocalBackupInfo.get_data_directory()
LocalBackupInfo.get_filename()
LocalBackupInfo.get_list_of_files()
LocalBackupInfo.get_parent_backup_info()
LocalBackupInfo.is_checksum_consistent()
LocalBackupInfo.is_full_and_eligible_for_incremental()
LocalBackupInfo.is_orphan
LocalBackupInfo.save()
LocalBackupInfo.server
LocalBackupInfo.walk_backups_tree()
LocalBackupInfo.walk_to_root()
SyntheticBackupInfo
Tablespace
TypedFile
WalFileInfo
dump_backup_ids()
load_backup_ids()
load_datetime_tz()
load_snapshots_info()
load_tablespace_list()
null_repr()
output_snapshots_info()
output_tablespace_list()
- barman.lockfile module
- barman.output module
AVAILABLE_WRITERS
ConsoleOutputWriter
ConsoleOutputWriter.SERVER_OUTPUT_PREFIX
ConsoleOutputWriter.__init__()
ConsoleOutputWriter._err()
ConsoleOutputWriter._out()
ConsoleOutputWriter._print()
ConsoleOutputWriter._record_check()
ConsoleOutputWriter.active
ConsoleOutputWriter.close()
ConsoleOutputWriter.debug()
ConsoleOutputWriter.error()
ConsoleOutputWriter.error_occurred()
ConsoleOutputWriter.exception()
ConsoleOutputWriter.info()
ConsoleOutputWriter.init_check()
ConsoleOutputWriter.init_check_wal_archive()
ConsoleOutputWriter.init_list_backup()
ConsoleOutputWriter.init_list_server()
ConsoleOutputWriter.init_replication_status()
ConsoleOutputWriter.init_show_server()
ConsoleOutputWriter.init_status()
ConsoleOutputWriter.is_debug()
ConsoleOutputWriter.is_quiet()
ConsoleOutputWriter.minimal
ConsoleOutputWriter.render_show_backup()
ConsoleOutputWriter.render_show_backup_base()
ConsoleOutputWriter.render_show_backup_catalog_info()
ConsoleOutputWriter.render_show_backup_general()
ConsoleOutputWriter.render_show_backup_server()
ConsoleOutputWriter.render_show_backup_snapshots()
ConsoleOutputWriter.render_show_backup_tablespaces()
ConsoleOutputWriter.render_show_backup_walinfo()
ConsoleOutputWriter.result_backup()
ConsoleOutputWriter.result_check()
ConsoleOutputWriter.result_check_list
ConsoleOutputWriter.result_check_wal_archive()
ConsoleOutputWriter.result_list_backup()
ConsoleOutputWriter.result_list_server()
ConsoleOutputWriter.result_recovery()
ConsoleOutputWriter.result_replication_status()
ConsoleOutputWriter.result_show_backup()
ConsoleOutputWriter.result_show_server()
ConsoleOutputWriter.result_status()
ConsoleOutputWriter.warning()
DEFAULT_WRITER
JsonOutputWriter
JsonOutputWriter.__init__()
JsonOutputWriter._mangle_key()
JsonOutputWriter._out_to_field()
JsonOutputWriter.close()
JsonOutputWriter.debug()
JsonOutputWriter.error()
JsonOutputWriter.exception()
JsonOutputWriter.info()
JsonOutputWriter.init_check()
JsonOutputWriter.init_check_wal_archive()
JsonOutputWriter.init_list_backup()
JsonOutputWriter.init_list_server()
JsonOutputWriter.init_replication_status()
JsonOutputWriter.init_show_server()
JsonOutputWriter.init_status()
JsonOutputWriter.json_output
JsonOutputWriter.result_backup()
JsonOutputWriter.result_check()
JsonOutputWriter.result_check_wal_archive()
JsonOutputWriter.result_list_backup()
JsonOutputWriter.result_list_server()
JsonOutputWriter.result_recovery()
JsonOutputWriter.result_replication_status()
JsonOutputWriter.result_show_backup()
JsonOutputWriter.result_show_server()
JsonOutputWriter.result_status()
JsonOutputWriter.warning()
NagiosOutputWriter
close()
close_and_exit()
debug()
error()
error_occurred
exception()
info()
result()
set_output_writer()
warning()
- barman.postgres module
PostgreSQL
PostgreSQL.CHECK_QUERY
PostgreSQL.MINIMAL_VERSION
PostgreSQL.__init__()
PostgreSQL._abc_impl
PostgreSQL._check_connection()
PostgreSQL._cursor()
PostgreSQL.close()
PostgreSQL.connect()
PostgreSQL.encode_dsn()
PostgreSQL.get_connection_string()
PostgreSQL.int_version_to_string_version()
PostgreSQL.is_minimal_postgres_version()
PostgreSQL.minimal_txt_version
PostgreSQL.parse_dsn()
PostgreSQL.server_major_version
PostgreSQL.server_txt_version
PostgreSQL.server_version
PostgreSQLConnection
PostgreSQLConnection.ANY_STREAMING_CLIENT
PostgreSQLConnection.HEARTBEAT_QUERY
PostgreSQLConnection.STANDBY
PostgreSQLConnection.WALSTREAMER
PostgreSQLConnection.__init__()
PostgreSQLConnection._abc_impl
PostgreSQLConnection.archive_timeout
PostgreSQLConnection.checkpoint()
PostgreSQLConnection.checkpoint_timeout
PostgreSQLConnection.connect()
PostgreSQLConnection.create_restore_point()
PostgreSQLConnection.current_size
PostgreSQLConnection.current_xlog_file_name
PostgreSQLConnection.current_xlog_info
PostgreSQLConnection.current_xlog_location
PostgreSQLConnection.fetch_remote_status()
PostgreSQLConnection.get_archiver_stats()
PostgreSQLConnection.get_configuration_files()
PostgreSQLConnection.get_replication_slot()
PostgreSQLConnection.get_replication_stats()
PostgreSQLConnection.get_setting()
PostgreSQLConnection.get_synchronous_standby_names()
PostgreSQLConnection.get_systemid()
PostgreSQLConnection.get_tablespaces()
PostgreSQLConnection.has_backup_privileges
PostgreSQLConnection.has_checkpoint_privileges
PostgreSQLConnection.has_connection
PostgreSQLConnection.has_monitoring_privileges
PostgreSQLConnection.is_in_recovery
PostgreSQLConnection.is_superuser
PostgreSQLConnection.name_map
PostgreSQLConnection.send_heartbeat_query()
PostgreSQLConnection.server_txt_version
PostgreSQLConnection.start_concurrent_backup()
PostgreSQLConnection.start_exclusive_backup()
PostgreSQLConnection.stop_concurrent_backup()
PostgreSQLConnection.stop_exclusive_backup()
PostgreSQLConnection.switch_wal()
PostgreSQLConnection.xlog_segment_size
PostgresKeepAlive
StandbyPostgreSQLConnection
StandbyPostgreSQLConnection.__init__()
StandbyPostgreSQLConnection._abc_impl
StandbyPostgreSQLConnection._start_wal_switch()
StandbyPostgreSQLConnection._stop_backup()
StandbyPostgreSQLConnection._stop_wal_switch()
StandbyPostgreSQLConnection.close()
StandbyPostgreSQLConnection.stop_concurrent_backup()
StandbyPostgreSQLConnection.stop_exclusive_backup()
StandbyPostgreSQLConnection.switch_wal()
StandbyPostgreSQLConnection.switch_wal_in_background()
StreamingConnection
_atexit()
_live_connections
- barman.postgres_plumbing module
- barman.process module
- barman.recovery_executor module
Assertion
ConfigIssueDetection
ConfigurationFileMangeler
IncrementalRecoveryExecutor
IncrementalRecoveryExecutor.__init__()
IncrementalRecoveryExecutor._backup_copy()
IncrementalRecoveryExecutor._combine_backups()
IncrementalRecoveryExecutor._end_message()
IncrementalRecoveryExecutor._fetch_remote_status()
IncrementalRecoveryExecutor._get_backup_chain_paths()
IncrementalRecoveryExecutor._move_to_destination()
IncrementalRecoveryExecutor._prepare_destination()
IncrementalRecoveryExecutor._retry_handler()
IncrementalRecoveryExecutor._start_message()
IncrementalRecoveryExecutor.recover()
RecoveryExecutor
RecoveryExecutor.__init__()
RecoveryExecutor._analyse_temporary_config_files()
RecoveryExecutor._backup_copy()
RecoveryExecutor._backup_copy_failure_message()
RecoveryExecutor._conf_files_exist()
RecoveryExecutor._copy_conf_files_to_tempdir()
RecoveryExecutor._copy_temporary_config_files()
RecoveryExecutor._generate_archive_status()
RecoveryExecutor._generate_recovery_conf()
RecoveryExecutor._map_temporary_config_files()
RecoveryExecutor._prepare_tablespaces()
RecoveryExecutor._retrieve_safe_horizon()
RecoveryExecutor._set_pitr_targets()
RecoveryExecutor._setup()
RecoveryExecutor._start_backup_copy_message()
RecoveryExecutor._xlog_copy()
RecoveryExecutor.close()
RecoveryExecutor.recover()
RemoteConfigRecoveryExecutor
SnapshotRecoveryExecutor
SnapshotRecoveryExecutor._backup_copy()
SnapshotRecoveryExecutor._backup_copy_failure_message()
SnapshotRecoveryExecutor._prepare_tablespaces()
SnapshotRecoveryExecutor._start_backup_copy_message()
SnapshotRecoveryExecutor.check_mount_points()
SnapshotRecoveryExecutor.check_recovery_dir_exists()
SnapshotRecoveryExecutor.get_attached_volumes_for_backup()
SnapshotRecoveryExecutor.recover()
TarballRecoveryExecutor
recovery_executor_factory()
- barman.remote_status module
- barman.retention_policies module
RecoveryWindowRetentionPolicy
RecoveryWindowRetentionPolicy.__init__()
RecoveryWindowRetentionPolicy._abc_impl
RecoveryWindowRetentionPolicy._backup_report()
RecoveryWindowRetentionPolicy._kw
RecoveryWindowRetentionPolicy._point_of_recoverability()
RecoveryWindowRetentionPolicy._re
RecoveryWindowRetentionPolicy._wal_report()
RecoveryWindowRetentionPolicy.create()
RecoveryWindowRetentionPolicy.debug()
RedundancyRetentionPolicy
RetentionPolicy
RetentionPolicy.__init__()
RetentionPolicy._abc_impl
RetentionPolicy._backup_report()
RetentionPolicy._propagate_retention_status_to_children()
RetentionPolicy._wal_report()
RetentionPolicy.backup_status()
RetentionPolicy.create()
RetentionPolicy.debug()
RetentionPolicy.first_backup()
RetentionPolicy.first_wal()
RetentionPolicy.report()
RetentionPolicy.to_json()
RetentionPolicyFactory
ServerMetadata
ServerMetadataLive
SimpleWALRetentionPolicy
- barman.server module
CheckOutputStrategy
CheckStrategy
Server
Server.XLOG_DB
Server.__default_check_strategy
Server.__init__()
Server._abc_impl
Server._build_path()
Server._check_has_monitoring_privileges()
Server._check_replication_slot()
Server._check_standby()
Server._check_streaming_supported()
Server._check_wal_info()
Server._check_wal_level()
Server._check_wal_queue()
Server._check_wal_streaming_preflight()
Server._init_archivers()
Server._init_bandwidth_limits()
Server._init_minimum_redundancy()
Server._init_postgres()
Server._init_retention_policies()
Server._make_directories()
Server.archive_wal()
Server.background_receive_wal()
Server.backup()
Server.check()
Server.check_archive()
Server.check_archiver_errors()
Server.check_backup()
Server.check_backup_validity()
Server.check_configuration()
Server.check_directories()
Server.check_identity()
Server.check_postgres()
Server.check_retention_policy_settings()
Server.check_sync_required()
Server.check_wal_streaming()
Server.check_wal_validity()
Server.close()
Server.create_physical_repslot()
Server.cron()
Server.cron_archive_wal()
Server.cron_check_backup()
Server.delete_backup()
Server.drop_repslot()
Server.fetch_remote_status()
Server.get_available_backups()
Server.get_backup()
Server.get_backup_ext_info()
Server.get_backup_id_from_name()
Server.get_children_timelines()
Server.get_first_backup_id()
Server.get_identity_file_path()
Server.get_last_backup_id()
Server.get_last_full_backup_id()
Server.get_next_backup()
Server.get_previous_backup()
Server.get_required_xlog_files()
Server.get_wal()
Server.get_wal_full_path()
Server.get_wal_info()
Server.get_wal_possible_paths()
Server.get_wal_sendfile()
Server.get_wal_until_next_backup()
Server.is_backup_locally_obsolete()
Server.kill()
Server.list_backups()
Server.load_primary_info()
Server.load_sync_wals_info()
Server.perform_delete_backup()
Server.primary_node_info()
Server.put_wal()
Server.read_identity_file()
Server.rebuild_xlogdb()
Server.receive_wal()
Server.recover()
Server.replication_status()
Server.report_backups()
Server.restart_processes()
Server.set_sync_starting_point()
Server.show()
Server.show_backup()
Server.status()
Server.status_postgres()
Server.status_retention_policies()
Server.status_wal_archiver()
Server.switch_wal()
Server.sync_backup()
Server.sync_cron()
Server.sync_status()
Server.sync_wals()
Server.systemid
Server.wait_for_wal()
Server.write_identity_file()
Server.write_sync_wals_info_file()
Server.xlogdb()
Server.xlogdb_file_name
SyncWalInfo
- barman.utils module
BarmanEncoder
BarmanEncoderV2
ChecksumAlgorithm
SHA256
check_aws_expiration_date_format()
check_aws_snapshot_lock_cool_off_period_range()
check_aws_snapshot_lock_duration_range()
check_aws_snapshot_lock_mode()
check_backup_name()
check_non_negative()
check_positive()
check_size()
check_tli()
configure_logging()
drop_privileges()
edit_config()
file_hash()
force_str()
fsync_dir()
fsync_file()
get_backup_id_using_shortcut()
get_backup_info_from_name()
get_log_levels()
human_readable_timedelta()
is_backup_id()
is_power_of_two()
lock_files_cleanup()
mkpath()
parse_log_level()
pretty_size()
range_fun()
redact_passwords()
simplify_version()
timeout()
timestamp()
total_seconds()
which()
with_metaclass()
- barman.version module
- barman.wal_archiver module
FileWalArchiver
StreamingWalArchiver
StreamingWalArchiver.__init__()
StreamingWalArchiver._abc_impl
StreamingWalArchiver._is_synchronous()
StreamingWalArchiver._reset_streaming_status()
StreamingWalArchiver._truncate_partial_file_if_needed()
StreamingWalArchiver.check()
StreamingWalArchiver.fetch_remote_status()
StreamingWalArchiver.get_next_batch()
StreamingWalArchiver.receive_wal()
StreamingWalArchiver.status()
WalArchiver
WalArchiverQueue
- barman.xlog module
DEFAULT_XLOG_SEG_SIZE
HistoryFileData
_validate_timeline()
_wal_archive_filter_fun()
check_archive_usable()
decode_hash_dir()
decode_history_file()
decode_segment_name()
diff_lsn()
encode_history_file_name()
encode_segment_name()
format_lsn()
generate_segment_names()
hash_dir()
is_any_xlog_file()
is_backup_file()
is_history_file()
is_partial_file()
is_wal_file()
location_from_xlogfile_name_offset()
location_to_xlogfile_name_offset()
parse_lsn()
xlog_segment_mask()
xlog_segments_per_file()
Module contents#
The main Barman module