backup

package
v0.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 11, 2025 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Overview

Package backup implements the functions needed to invoke barman-cloud-backup

Index

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,
) *Command

NewBackupCommand creates a new barman backup command

func (*Command) GetBarmanCloudBackupOptions

func (b *Command) GetBarmanCloudBackupOptions(
	ctx context.Context,
	backupName string,
	serverName string,
) ([]string, error)

GetBarmanCloudBackupOptions extract the list of command line options to be used with barman-cloud-backup

func (*Command) GetDataConfiguration

func (b *Command) GetDataConfiguration(
	options []string,
) ([]string, error)

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,
	env []string,
) (*barmanCatalog.BarmanBackup, error)

GetExecutedBackupInfo get the status information about the executed backup

func (*Command) Take

func (b *Command) Take(
	ctx context.Context,
	backupName string,
	serverName string,
	env []string,
	backupTemporaryDirectory string,
) error

Take takes a backup

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL