backup

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2026 License: AGPL-3.0 Imports: 14 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanupExpiredBackups

func CleanupExpiredBackups(db *gorm.DB) error

func CreateBackupJob

func CreateBackupJob(db *gorm.DB, adminUserID uuid.UUID, includeFiles, includeConfigs bool, userIDs []uuid.UUID) (*database.BackupJob, error)

func DeleteBackupJob

func DeleteBackupJob(db *gorm.DB, jobID uuid.UUID, adminUserID uuid.UUID) error

func EnsureWorkerRunning added in v1.5.4

func EnsureWorkerRunning(db *gorm.DB)

EnsureWorkerRunning starts the backup worker if it's not already running

func GetBackupJob

func GetBackupJob(db *gorm.DB, jobID uuid.UUID, adminUserID uuid.UUID) (*database.BackupJob, error)

func GetBackupJobs

func GetBackupJobs(db *gorm.DB, adminUserID uuid.UUID) ([]database.BackupJob, error)

func GetWorkerStatus added in v1.5.4

func GetWorkerStatus() map[string]interface{}

GetWorkerStatus returns the current status of the global worker for debugging

Types

type Worker

type Worker struct {
	// contains filtered or unexported fields
}

func NewWorker

func NewWorker(db *gorm.DB) *Worker

func (*Worker) IsRunning added in v1.5.4

func (w *Worker) IsRunning() bool

IsRunning returns true if the worker is currently running

func (*Worker) Start

func (w *Worker) Start()

func (*Worker) Stop

func (w *Worker) Stop()

Jump to

Keyboard shortcuts

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