[Unit]
Description=Prove the newest backup can actually be restored

[Service]
Type=oneshot
WorkingDirectory=/opt/quantum-arcade
Environment=ARCADE_BACKUP_DIR=/var/backups/quantum-arcade
# A backup nobody has restored is a rumour. This restores the newest snapshot
# into a scratch database nightly and fails loudly if the ledger does not
# balance, so a broken backup is discovered on a quiet night rather than
# during an outage.
ExecStart=/opt/quantum-arcade/ops/backup.sh verify
