# from https://fedoramagazine.org/automate-backups-with-restic-and-systemd/ [Unit] Description=Restic backup service After=network-online.target Wants=network-online.service StartLimitIntervalSec=6000 StartLimitBurst=30 [Service] Type=oneshot ExecStart=/usr/bin/restic backup --host $HOST --verbose --one-file-system --tag systemd.timer $BACKUP_EXCLUDES $BACKUP_PATHS EnvironmentFile=/root/restic-backup.conf Restart=on-failure RestartSec=60 [Install] WantedBy=default.target