Skip to content

Workshop invoicing: operations, backup and recovery

Invoicing is a precursor to external financial accounting. Before operational release, approve the issuer, EUR, tax codes and special rules, number ranges, accounts/DATEV codes, recipients and output formats. Tax-specialist review and documented operating procedures are part of release. Technical checks do not guarantee a GoBD audit outcome.

Installation and access separation

The Windows installer provisions FleetMiraArchive with a dedicated virtual service identity. Pro uses SQLite and the in-process worker; Enterprise uses PostgreSQL and FleetMiraWorker. The archive service contains no business logic. Clients receive only validated object access. The installer binds the client to its path and file hash; upgrades refresh this binding. Service installation and validated client access must succeed; otherwise setup stops with an error. Uninstall preserves originals and keys.

Run the following PowerShell examples from the installation directory or use the full executable path. The | Out-Null pipeline waits for the Windows application; interactive passwords are requested in the same console without echo. Check $LASTEXITCODE afterward; only 0 confirms success. Administrative errors return a failure status without blocking on a hidden dialog.

Client verification binds the pipe server to the process ID, launch command and virtual identity of the registered archive service. It requests read-only SCM rights. Ordinary users need no debug privilege for the service process. The service identifies the client executable briefly under the pipe client identity and reverts to its own identity before key or archive access. References: Microsoft: process tokens, service access rights.

The protected archive root is %ProgramData%\eh-systemhaus\Fleet Mira Archive, separate from application data. Only SYSTEM, administrators and the archive service identity may write originals, journal, keys and checkpoints. The signing key must match the independently retained public trust anchor. An unavailable service, damaged resources or missing keys blocks invoice finalization.

The runtime contains pinned generators, Java, Node, fonts and validators. Finalization requires no downloads. KoSIT validates XRechnung and veraPDF validates PDF/A-3; the archive host additionally checks visible content, structured XML and snapshot. Administrative resource changes require another integration and installation test.

The packaged application provides a separate offline runtime check under ordinary user permissions:

.\DLTNGDownloadTool.exe --archive-service validate-runtime --snapshot D:\Acceptance\approved-invoice-snapshot.json --target D:\Acceptance\runtime-check-new | Out-Null

Use an approved test snapshot and a new target directory. This command generates and validates XRechnung and ZUGFeRD, verifies all pinned resources and preserves originals and validation reports. result.json contains frozen, success, artifact hashes and validation results. It performs no database, numbering or archive-service postings. This check proves the document runtime; service installation and business processes need additional acceptance.

REST credentials are endpoint-bound and machine-encrypted on the archive host. From an elevated console:

.\DLTNGDownloadTool.exe --archive-service credential-set --reference accounting-production --endpoint https://accounting.example/api/invoices | Out-Null

JSON headers are prompted without echo. The UI stores only the reference. Keep credentials out of URLs, command lines, logs and documentation. Check uncertain transmission outcomes using the receiver reference before releasing another transfer.

Complete external backup

A normal database backup alone does not protect the archive root. Workshop backup includes a matching database state, originals and staged packages, manifests, signatures, archive journal, checkpoint and encrypted key escrow. It creates an encrypted, signed recovery package outside the archive root. Additionally retain the public trust anchor and current checkpoint independently; store the password separately.

Stop clients, background processing and the archive service first. --quiesced explicitly confirms this state; the administrative command additionally checks that the archive service is stopped. Commands require an elevated Windows administrator. Pro example:

.\DLTNGDownloadTool.exe --archive-service backup --backend SQLite --database-file D:\FleetMira\state\fleet.db --file E:\FleetBackup\workshop-2026-10-04.fmarchive --quiesced | Out-Null
.\DLTNGDownloadTool.exe --archive-service export-key --file E:\KeyEscrow\fleet-archive-key.pem --quiesced | Out-Null

SQLite is copied consistently through the existing backup adapter including WAL and checked for integrity and foreign keys. Existing backup or escrow files are not overwritten. Password input is hidden. For Enterprise, first create a PostgreSQL dump while quiesced and then its bound identity file:

.\DLTNGDownloadTool.exe --archive-service identity-export --enterprise-data-root D:\FleetMiraEnterprise --database-file E:\FleetBackup\fleet.dump --file E:\FleetBackup\fleet-identities.json --quiesced | Out-Null
.\DLTNGDownloadTool.exe --archive-service backup --backend PostgreSQL --database-file E:\FleetBackup\fleet.dump --identities-file E:\FleetBackup\fleet-identities.json --file E:\FleetBackup\workshop.fmarchive --quiesced | Out-Null

The identity file must match that exact dump. Backup status is confirmed only after package validation. Later archive sequences make it stale; missing or changed external files are detected. Backup status must not conflate offline finalization with an external backup that has not occurred.

Recovery and key restoration

First validate the package against the independently retained trust anchor and latest known checkpoint. Do not silently approve an older checkpoint as current. Restore writes only to a new staging directory and never overwrites existing production data.

.\DLTNGDownloadTool.exe --archive-service verify-backup --file E:\FleetBackup\workshop.fmarchive --trust-key E:\IndependentTrust\public-key.json --checkpoint-file E:\IndependentTrust\journal.json | Out-Null
.\DLTNGDownloadTool.exe --archive-service restore-backup --file E:\FleetBackup\workshop.fmarchive --target D:\FleetRestore\review --trust-key E:\IndependentTrust\public-key.json --checkpoint-file E:\IndependentTrust\journal.json | Out-Null

Validation checks encryption, signatures, every file hash, contiguous journal, key identity and invoice/database binding. A rolled-back database missing sealed invoices is rejected. Independent audit-evidence packages additionally detect removed or modified journal and audit rows on restart.

On a replacement host, provision the service and protected directories without generating a new archive identity. Stop the service. Import the recovered key using import-key --file ... --trust-key ... --quiesced; a different existing key is never replaced. Restore verified originals, journal and checkpoint under the same service permissions and restore the database through its backend adapter. verify-state then checks invoice binding against the database. Restart clients and workers only after integrity, audit, original-document and recovery tests. Preserve failed staging output for investigation.

Procedures and release approval

Document capture, responsibilities, permissions, approvals, price/tax changes, corrections, delivery, interfaces, backup, recovery, system migration and auditor export with effective periods and change history. Retain originals according to versioned document class, actual commencement date, linked documents and legal hold. Deadline extension, hold release and individual review require reasons and are recorded in the workshop area. A review report performs no physical removal; sealed packages remain protected. Sealed packages have no general overwrite or deletion command.

Full release requires offline Pro testing under ordinary user permissions, central Enterprise operation without a logged-in desktop, actual replacement-host recovery and independent recalculation of a complete auditor export. Current technical tests do not replace operational acceptance. The later Fleet wizard imports approved masters and openings; historical invoices are not reissued.

See the workshop guide and architecture/release gates.