Documentation
¶
Overview ¶
Package backup implements the functions needed to invoke barman-cloud-backup
Index ¶
- type Command
- func (b *Command) GetBarmanCloudBackupOptions(ctx context.Context, backupName string, serverName string, ...) ([]string, error)
- func (b *Command) GetDataConfiguration(options []string) ([]string, error)
- func (b *Command) GetExecutedBackupInfo(ctx context.Context, backupName string, serverName string, ...) (*barmanCatalog.BarmanBackup, error)
- func (b *Command) IsCompatible(postgresVers semver.Version) error
- func (b *Command) Take(ctx context.Context, backupName string, serverName string, env []string, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command struct {
// contains filtered or unexported fields
}
Command represents a barman backup command
func NewBackupCommand ¶
func NewBackupCommand( configuration *barmanApi.BarmanObjectStoreConfiguration, capabilities *barmanCapabilities.Capabilities, ) *Command
NewBackupCommand creates a new barman backup command
func (*Command) GetBarmanCloudBackupOptions ¶
func (b *Command) GetBarmanCloudBackupOptions( ctx context.Context, backupName string, serverName string, exec barmanCapabilities.LegacyExecutor, ) ([]string, error)
GetBarmanCloudBackupOptions extract the list of command line options to be used with barman-cloud-backup
func (*Command) GetDataConfiguration ¶
GetDataConfiguration gets the configuration in the `Data` object of the Barman configuration
func (*Command) GetExecutedBackupInfo ¶
func (b *Command) GetExecutedBackupInfo( ctx context.Context, backupName string, serverName string, exec barmanCapabilities.LegacyExecutor, env []string, ) (*barmanCatalog.BarmanBackup, error)
GetExecutedBackupInfo get the status information about the executed backup
func (*Command) IsCompatible ¶
IsCompatible checks if barman can back up this version of PostgreSQL
Click to show internal directories.
Click to hide internal directories.