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)
}
Click to show internal directories.
Click to hide internal directories.