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 ¶
CopyBackups copies all backups from the source store to the destination store when a final full snapshot is detected in the source store.
Click to show internal directories.
Click to hide internal directories.