# One-shot: tells sandod to pull the latest prod backup. # Paired with sandod-backup-fetch.timer for daily execution. # # Place at /etc/systemd/system/sandod-backup-fetch.service on the Sando host. [Unit] Description=Sando: fetch latest prod backup After=sandod.service network-online.target Wants=network-online.target Requires=sandod.service [Service] Type=oneshot # Reuse the same env file the daemon does — gives us $SANDO_DAEMON. EnvironmentFile=/etc/sando/sando.env ExecStart=/usr/bin/curl -fsS --max-time 600 -X POST ${SANDO_DAEMON}/backup/fetch # Service exits non-zero if the daemon refuses; fine — we want the timer to # log + retry on the next cycle. Don't restart aggressively.