backup

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BackupAndUpload

func BackupAndUpload(repo *backuprepo.BackupRepo) error

BackupAndUpload takes a BackupRepoConfig, pulls the changes, and uploads them to S3.

Types

type BackupDispatcher

type BackupDispatcher struct {
	RepositoryAdder
	// contains filtered or unexported fields
}

BackupDispatcher is responsible for managing the backup process for multiple repositories.

func NewBackupDispatcher

func NewBackupDispatcher() *BackupDispatcher

NewBackupDispatcher creates a new BackupDispatcher instance.

func (*BackupDispatcher) AddRepository

func (d *BackupDispatcher) AddRepository(repo *backuprepo.BackupRepo)

AddRepository adds a new repository to the backup dispatcher.

func (*BackupDispatcher) Start

func (d *BackupDispatcher) Start()

Start starts the backup dispatcher and runs the backup process for each repository at the specified intervals.

func (*BackupDispatcher) Stop

func (d *BackupDispatcher) Stop()

Stop stops the backup dispatcher and waits for the backup process to complete.

type RepositoryAdder

type RepositoryAdder interface {
	AddRepository(repo *backuprepo.BackupRepo)
}

Jump to

Keyboard shortcuts

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