copier

package
v0.31.1 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSourceAndDestinationStores

func GetSourceAndDestinationStores(sourceSnapStoreConfig *brtypes.SnapstoreConfig, destSnapStoreConfig *brtypes.SnapstoreConfig) (brtypes.SnapStore, brtypes.SnapStore, error)

GetSourceAndDestinationStores returns the source and destination stores for the given source and destination and store configs.

Types

type Copier

type Copier struct {
	// contains filtered or unexported fields
}

Copier can be used to copy backups from a source to a destination store.

func NewCopier

func NewCopier(
	logger *logrus.Entry,
	sourceSnapStore brtypes.SnapStore,
	destSnapStore brtypes.SnapStore,
	maxBackups int,
	maxBackupAge int,
	maxParallelCopyOperations int,
	waitForFinalSnapshot bool,
	waitForFinalSnapshotTimeout time.Duration,
) *Copier

NewCopier creates a new copier.

func (*Copier) CopyBackups

func (c *Copier) CopyBackups(ctx context.Context) error

CopyBackups copies all backups from the source store to the destination store when a final full snapshot is detected in the source store.

func (*Copier) Run

func (c *Copier) Run(ctx context.Context) error

Run executes the copy command.

Jump to

Keyboard shortcuts

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