Skip to content

Scheduled backups #4

Description

@rokartur

What

A "daily at HH:MM" field in system settings, executed by the scheduler that
already runs.

Why

A backup you have to remember to click is a backup that does not exist on the
day the disk dies.

How

  • scheduler() in manager/cmd/server/main.go:186 already ticks every 6h and
    already calls backupService.Prune(10). Add a backupService.Create when
    more than a day has passed since the newest entry from List(). No cron
    dependency, no new table, no new goroutine.
  • Two keys in system_settings via db.SetSetting: backup_schedule and
    backup_include_volumes. Follow the pattern in handlePutSettings
    (manager/internal/api/system_handlers.go:230).
  • Roughly 40 lines. Ship it alongside the restore work since it shares the
    settings screen.

Pairs with #3 (same settings screen).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions