Back up the database nightly with a timer
CI / tests (Python 3.10) (pull_request) Successful in 23s
CI / tests (Python 3.11) (pull_request) Successful in 25s
CI / tests (Python 3.12) (pull_request) Successful in 24s
CI / tests (Python 3.13) (pull_request) Successful in 24s
CI / lint (pull_request) Successful in 3s
CI / tests (Python 3.10) (pull_request) Successful in 23s
CI / tests (Python 3.11) (pull_request) Successful in 25s
CI / tests (Python 3.12) (pull_request) Successful in 24s
CI / tests (Python 3.13) (pull_request) Successful in 24s
CI / lint (pull_request) Successful in 3s
kernelwatch scheduled-backup writes kernelwatch-YYYY-MM-DD.db into backup_dir and prunes dated copies backup_keep_days or older, only after the new backup succeeded and only files with exactly that name. kernelwatch-backup.timer runs it at about 03:30 as the unprivileged service user with no network, and server/install.sh enables it. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
3624f0e5d9
commit
4a9bc77a08
10 files changed
+281
-3
No files matched your search
@@ -14,6 +14,13 @@ apt_stale_after_hours = 48.0
|
||||
|
||||
report_retention_days = 30
|
||||
|
||||
# kernelwatch-backup.timer writes a dated copy of the database here every night
|
||||
# and deletes copies this many days old or older (0 keeps them all). Keep the
|
||||
# directory under /var/lib/kernelwatch; the unit can't write elsewhere. Copy the
|
||||
# files off this machine yourself: they don't protect against losing it.
|
||||
backup_dir = "/var/lib/kernelwatch/backups"
|
||||
backup_keep_days = 7
|
||||
|
||||
# Refuse (HTTP 429) a report that arrives sooner than this after the host's
|
||||
# previous one. Agents report hourly; this only stops a stuck or abusive client
|
||||
# from flooding the history. 0 disables.
|
||||
|
||||
Reference in new issue
Block a user