[Unit] Description={{ backup_product | default('Nextcloud') }} {{ instance_name }} backup to TrueNAS After=network-online.target Wants=network-online.target OnFailure=nextcloud-backup-failed@%n.service [Service] Type=oneshot ExecStart={{ script_path }} # Type=oneshot disables the start timeout by default, so a wedged rsync would # leave the unit "activating" forever and every subsequent daily trigger would # be silently skipped. Bound it. TimeoutStartSec={{ backup_timeout | default('4h') }} Nice=10