#!/usr/bin/env bash # Manual trigger for the daily backup. # # The real script lives at /usr/local/sbin/server-backup and runs as ROOT via # server-backup.service. It is kept out of ~/Server on purpose: ~/Server is # user-writable, and a root-executed script sitting in a user-writable directory # is an obvious footgun. Run it through systemd so a manual run behaves exactly # like the nightly one (same environment, same logging, same lock). # # status: systemctl status server-backup.service # log: tail -f ~/Server/logs/backup.log # timer: systemctl list-timers server-backup.timer # restore: see ~/Server/RESTORE.md exec sudo systemctl start --wait server-backup.service