[Unit] Description=MCIAS Database Backup Documentation=man:mciasdb(1) After=mcias.service # Backup runs against the live database using VACUUM INTO, which is safe # while mciassrv is running (WAL mode allows concurrent readers). [Service] Type=oneshot User=mcias Group=mcias EnvironmentFile=/srv/mcias/env ExecStart=/usr/local/bin/mciasdb -config /srv/mcias/mcias.toml snapshot # Filesystem restrictions (read-write to /srv/mcias for the backup output). ProtectSystem=strict ProtectHome=true PrivateTmp=true ReadWritePaths=/srv/mcias NoNewPrivileges=true PrivateDevices=true CapabilityBoundingSet= RestrictSUIDSGID=true RestrictNamespaces=true RestrictRealtime=true LockPersonality=true MemoryDenyWriteExecute=true ProtectKernelTunables=true ProtectKernelModules=true ProtectControlGroups=true