periodicbackup

package
v2.9.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BackupConfig added in v2.3.0

type BackupConfig interface {
	URL() *url.URL
	Dir() string
	Mode() config.DatabaseBackupMode
	Frequency() time.Duration
}

type DatabaseBackup

type DatabaseBackup interface {
	services.Service
	RunBackup(version string) error
}

func NewDatabaseBackup

func NewDatabaseBackup(dbUrl url.URL, rootDir string, backupConfig BackupConfig, lggr logger.Logger) (DatabaseBackup, error)

NewDatabaseBackup instantiates a *databaseBackup

Jump to

Keyboard shortcuts

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