Systemd
Timer systemd
Service
[Unit]
Description= rustic %i service
[Service]
Type=oneshot
ExecStart=/usr/local/bin/rustic --use-profile %i backup --json
StandardOutput=file:/backups/zabbix/%i.json
Timer
[Unit]
Description=Run restic@.service night
[Timer]
OnCalendar=*-*-* 00:00:00
AccuracySec=1us
Persistent=true
RandomizedDelaySec=10800
FixedRandomDelay=true