Versions in this module Expand all Collapse all v0 v0.1.0 Nov 21, 2026 Changes in this version + const KindManual + const KindScheduled + var ErrInvalidName = errors.New("invalid backup name") + var ErrNotFound = errors.New("backup not found") + func ApplyStagedRestore(dbPath string) (bool, error) + func StagingPath(dbPath string) string + type Backup struct + CreatedAt time.Time + Kind string + Name string + Size int64 + type Service struct + func NewService(sqlDB *sql.DB, q db.Querier, dbPath string) *Service + func (s *Service) Create(ctx context.Context, kind string) (Backup, error) + func (s *Service) Delete(name string) error + func (s *Service) Dir() string + func (s *Service) GetSettings(ctx context.Context) (Settings, error) + func (s *Service) List() ([]Backup, error) + func (s *Service) Path(name string) (string, error) + func (s *Service) Restore(name string) error + func (s *Service) RunScheduled(ctx context.Context) (bool, error) + func (s *Service) SaveSettings(ctx context.Context, st Settings) error + type Settings struct + IntervalDays int + RetentionDays int + func DefaultSettings() Settings + func (s Settings) Validate() error + type ValidationError struct + Msg string + func (e *ValidationError) Error() string