#!/usr/bin/env bash # Cron wrapper — sources the deployed env file and runs the real backup script, logging to # syslog (visible via journalctl and shipped to Loki by promtail like every other unit) in # addition to whatever cron itself captures. set -euo pipefail set -a source /etc/rootnode/backup.env set +a exec /opt/rootnode/backup/backup-postgres.sh 2>&1 | systemd-cat -t rootnode-backup