feat(backup): timestamps and schedule in Africa/Nairobi TZ #11

Merged
kianiadee merged 1 commit from quality-program-2026-04-12 into main 2026-04-24 08:31:24 +00:00
Owner

Localises backup sidecar timestamps and schedule to Africa/Nairobi. Filenames become ..._EAT.sql.gz, logs show +0300, and BACKUP_TIMES is interpreted in local TZ.

Legacy BACKUP_TIMES_UTC / BACKUP_HOUR+MINUTE env vars remain honored for back-compat.

Localises backup sidecar timestamps and schedule to Africa/Nairobi. Filenames become `..._EAT.sql.gz`, logs show `+0300`, and `BACKUP_TIMES` is interpreted in local TZ. Legacy `BACKUP_TIMES_UTC` / `BACKUP_HOUR+MINUTE` env vars remain honored for back-compat.
kianiadee added 1 commit 2026-04-24 08:31:14 +00:00
feat(backup): timestamp and schedule in Africa/Nairobi local time
Some checks failed
Static Analysis / static (push) Has been cancelled
Tests / test (push) Has been cancelled
Static Analysis / static (pull_request) Has been cancelled
Tests / test (pull_request) Has been cancelled
85cb408dea
- Default TZ=Africa/Nairobi baked into the sidecar image; override via
  compose TZ env var if another region is ever needed.
- Rename BACKUP_TIMES_UTC → BACKUP_TIMES (legacy var still honored for
  back-compat). Times are now interpreted in the container's local TZ,
  so "02:30" means 02:30 EAT, not UTC.
- Log timestamps and dump filenames use %FT%T%z / %Y%m%d_%H%M%S_%Z
  (e.g. tracksolid_db_20260424_115729_EAT.sql.gz) so the TZ is visible
  on every artifact.
- Prune cutoff computed in local time; YYYYMMDD regex unchanged so it
  still matches legacy UTC filenames during the transition.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
kianiadee merged commit 4b738fbcb7 into main 2026-04-24 08:31:24 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: kianiadee/tracksolid_timescale_grafana_prod#11
No description provided.