Files
codex-app-server/deploy/codex-pg-backup.timer

16 lines
481 B
SYSTEMD

# 每日 Postgres 备份定时器(HA 阶段 0)。
#
# 注意:unit 文件不在 deploy tar 里,改动后须单独 scp 到
# /etc/systemd/system/ 再 daemon-reload + enable,不要只重启服务。
# 19:00 UTC = 次日 03:00 CST(主机时区为 UTC 时以 UTC 为准,见注释)。
[Unit]
Description=Daily Postgres backup timer for codex-app-server
[Timer]
OnCalendar=*-*-* 19:00:00 UTC
Persistent=true
Unit=codex-pg-backup.service
[Install]
WantedBy=timers.target