Compare commits

...
Author SHA1 Message Date
issue-fix-bot 10cfcbba0c fix: [alert] NetbirdVpsBackupStale (netbird-backup) (#714)
ci/woodpecker/pr/pr-review Pipeline was successful
ci/woodpecker/pr/ci-scripts-test Pipeline was successful
2026-08-29 03:45:07 +00:00
@@ -14,5 +14,10 @@
set -eu
tmp=$(mktemp -d)
trap 'rm -rf "$tmp"' EXIT
sqlite3 /opt/netbird/management/store.db ".backup '$tmp/store.db'"
# sqlite3's busy timeout defaults to 0 ms, so the online-backup API gives
# up the instant it cannot take its read lock on store.db — which is what
# a live netbird-management write does. Wait the writer out instead of
# failing the nightly job; 60 s fits well inside the puller's
# activeDeadlineSeconds: 600 against a normal runtime of ~15-19 s.
sqlite3 -cmd '.timeout 60000' /opt/netbird/management/store.db ".backup '$tmp/store.db'"
tar -C "$tmp" -czf - store.db