[Unit] Description=Prove the latest GITv backup restores: copy it out and fsck every repository RequiresMountsFor=/mnt/gitv-backup [Service] Type=oneshot Environment=GITV_BACKUP_DIR=/mnt/gitv-backup ExecStart=/usr/local/sbin/gitv-restore check Nice=10 IOSchedulingClass=idle NoNewPrivileges=yes ProtectSystem=strict ReadWritePaths=/mnt/gitv-backup ProtectHome=yes PrivateTmp=yes PrivateDevices=yes PrivateNetwork=yes ProtectKernelTunables=yes ProtectKernelModules=yes ProtectControlGroups=yes RestrictSUIDSGID=yes ProtectProc=invisible ProtectClock=yes ProtectKernelLogs=yes ProtectHostname=yes LockPersonality=yes MemoryDenyWriteExecute=yes RestrictNamespaces=yes RestrictRealtime=yes SystemCallArchitectures=native SystemCallFilter=@system-service SystemCallErrorNumber=EPERM CapabilityBoundingSet=CAP_DAC_OVERRIDE CAP_DAC_READ_SEARCH CAP_CHOWN CAP_FOWNER