[Unit] Description=Local CI/CD — weekly backup of VMware templates Documentation=file:///opt/ci/local-ci-cd-system/deploy/systemd/README.md After=network-online.target [Service] Type=oneshot User=ci-runner Group=ci-runner EnvironmentFile=/etc/ci/environment WorkingDirectory=/opt/ci/local-ci-cd-system # NOTE: requires PowerShell Core (`pwsh`) on the Linux host. # See deploy/systemd/README.md "Nota PowerShell su Linux". ExecStart=/usr/bin/pwsh -NoProfile -NonInteractive -File scripts/Backup-CITemplate.ps1 TimeoutStartSec=4h IOSchedulingClass=best-effort IOSchedulingPriority=7 Nice=19 ProtectSystem=strict ProtectHome=true PrivateTmp=true NoNewPrivileges=true ReadWritePaths=/var/lib/ci /var/backups/ci [Install] WantedBy=multi-user.target