2026-10-13 23:11:40 +02:00
|
|
|
# The hourly off-site backup of learn.halkyon.eu, on its server: deploy/backup.sh, as
|
2026-10-03 16:45:40 +02:00
|
|
|
# deploy, started by halkyon-backup.timer. Installed with the timer as
|
|
|
|
|
# /etc/systemd/system/halkyon-backup.service; deploy/backups.md has the steps.
|
|
|
|
|
#
|
|
|
|
|
# deploy is in the docker group, which is as good as root, so sandboxing this unit
|
|
|
|
|
# would protect little: it keeps to the basics.
|
|
|
|
|
[Unit]
|
|
|
|
|
Description=Off-site backup of learn.halkyon.eu's database
|
2026-11-02 18:53:11 +01:00
|
|
|
Documentation=file:///home/deploy/halkyon/deploy/backups.md
|
2026-10-03 16:45:40 +02:00
|
|
|
After=network-online.target docker.service
|
|
|
|
|
Wants=network-online.target
|
|
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
|
Type=oneshot
|
|
|
|
|
User=deploy
|
|
|
|
|
Group=deploy
|
2026-11-02 18:53:11 +01:00
|
|
|
ExecStart=/home/deploy/halkyon/deploy/backup.sh
|
2026-10-03 16:45:40 +02:00
|
|
|
PrivateTmp=yes
|
|
|
|
|
NoNewPrivileges=yes
|
|
|
|
|
ProtectSystem=full
|
|
|
|
|
# Behind the instance for CPU and disk.
|
|
|
|
|
Nice=10
|
|
|
|
|
IOSchedulingClass=best-effort
|
|
|
|
|
IOSchedulingPriority=7
|