periodicbackup

package
v0.0.0-...-3674750 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 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

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