Add a weekly dump of the Weather database

weather-dump.timer runs weather-dump weekly, keeping the two newest ISO weeks in
~/.local/share/ens-forecast/dumps, which simple_backup then copies; the login comes
from ~/.config/ens-forecast/dump.cnf (not tracked).
This commit is contained in:
Daniele Fucini
2026-10-31 19:00:06 +01:00
parent 5b6e381c89
commit 90a81ea960
4 changed files with 45 additions and 1 deletions
+11
View File
@@ -0,0 +1,11 @@
[Unit]
Description=Dump the Weather database to ~/.local/share/ens-forecast/dumps
StartLimitIntervalSec=2h
StartLimitBurst=4
[Service]
Type=oneshot
ExecStart=%h/.local/bin/weather-dump
# MariaDB not up yet (e.g. caught up right after boot)? retry a few times
Restart=on-failure
RestartSec=5min