KMU | base
MUbase

Solutions for your tasks

Docu | base11 min readUpdated:

Your backup in your own hands: archive on your NAS

Collect your archive backup onto your own NAS automatically: package contents, curl interface, Synology and QNAP setup, verification without contacting us.

KMU | base editorial team

By emailLinkedIn
Wooden shelf with neatly arranged filing compartments

Anyone who keeps documents in a cloud archive wants a copy of their own that stays readable even when the provider cannot be reached. Docu | base provides a backup package for that purpose. Your NAS or server collects it by itself, through a secured interface, with a key that only you create and can revoke at any time. This guide shows what is in the package, how to set up the collection on a Synology or QNAP NAS and how to verify a package without any connection to us.

What the archive package contains

The “KMU base archive package” is a ZIP in an open, versioned format (version 1). It can be read without our application. A package contains:

  • Original files unchanged, under a running number (folder originale).
  • Metadata per document as JSON, CSV and XML (folders daten and metadaten): document type, details, retention periods and assignments.
  • Specialist data and logs line by line under daten: archive log, access records, activity journal, retention periods, holds, documents, versions, folders, rights and further sources. The manifest gives the number of lines per source and keeps a separate hash chain over each source, so that shortened, reordered or altered logs are noticed. Logs are complete, not an extract; sources whose content may be released only with special authorisation are listed in the manifest under the known limitations.
  • Time proofs (folder zeitnachweise): the responses of the timestamping authority DigiCert under RFC 3161, unchanged, with certificates and, where obtainable, revocation information. Proofs obtained afterwards are marked as “later”.
  • Manifest (manifest.json) with the SHA-256 checksum of every file, the identifier of the preceding package and a time stamp over the manifest itself (folder abschluss).
  • Verification tool (pruefen.py) and format description (format.md), the same as the public versions below.

There are two kinds of package. A full package contains the whole holdings. A follow-up package contains only what is new or changed since the last package, plus the list of removed entries, new log lines and new time proofs. Every follow-up package names its predecessor, and the chain is verified as a whole. A follow-up package on its own is therefore never a complete state. Records can be proven only for the period since the first backup: access that was summarised earlier and events deleted before the first backup cannot be confirmed individually afterwards. The full format description is at https://app.kmubase.ch/sicherung/format.md.

Second kind: the whole company. “Whole company (all apps)” adds the full export of all booked apps: tables as JSON and CSV, originals, a manifest with the SHA-256 of every file. Only full packages, at most one per day, each naming the previous one. pruefen.py verifies integrity and chain; log chains and timestamp evidence are covered by the archive package. Format: https://app.kmubase.ch/sicherung/format-firma.md.

The interface in brief

The interface is at https://app.kmubase.ch/api/v1/sicherung/KUERZEL. KUERZEL is the part of your address after app.kmubase.ch/. Sign-in uses a backup key (“backup, read only”). Your administration creates it under KMU | base › Settings › Data backup; the clear text is shown only once. The key applies to your company, can be revoked and works over TLS only. Every call is entered in the administration log; too many calls are answered with 429 and Retry-After.

CallPurpose
GET /pakete?art=archiv (or firma)Package list, oldest first, with identifier, type (voll or folge), predecessor, state, size and SHA-256
POST /pakete with {"art":"archiv","typ":"voll"}Request a package (header Idempotency-Key); at most one full package in 24 hours
GET /pakete/PACKAGE-IDState of a package; with a plain-text reason on failure
GET /pakete/PACKAGE-ID/dateiThe ZIP, resumable with Range; ETag is the checksum
POST /pakete/PACKAGE-ID/abgeholt with {"sha256":"…"}Report a verified pick-up
GET /standSchedule, latest package, latest pick-up
Call
GET /pakete?art=archiv (or firma)
Purpose
Package list, oldest first, with identifier, type (voll or folge), predecessor, state, size and SHA-256
Call
POST /pakete with {"art":"archiv","typ":"voll"}
Purpose
Request a package (header Idempotency-Key); at most one full package in 24 hours
Call
GET /pakete/PACKAGE-ID
Purpose
State of a package; with a plain-text reason on failure
Call
GET /pakete/PACKAGE-ID/datei
Purpose
The ZIP, resumable with Range; ETag is the checksum
Call
POST /pakete/PACKAGE-ID/abgeholt with {"sha256":"…"}
Purpose
Report a verified pick-up
Call
GET /stand
Purpose
Schedule, latest package, latest pick-up

The key belongs in a file with permissions 600 and never in the call itself, because calls are visible to other users of the device. With curl you read it from the file (replace KUERZEL and PACKAGE-ID with your values):

  • Package list: printf 'header = "Authorization: Bearer %s"\n' "$(cat sicherung.schluessel)" | curl --proto '=https' -K - "https://app.kmubase.ch/api/v1/sicherung/KUERZEL/pakete?art=archiv"
  • Download a package: printf 'header = "Authorization: Bearer %s"\n' "$(cat sicherung.schluessel)" | curl --proto '=https' -K - -C - -o paket.zip.teil "https://app.kmubase.ch/api/v1/sicherung/KUERZEL/pakete/PACKAGE-ID/datei"

With -C - curl resumes an interrupted download at the right place. Afterwards compare sha256sum paket.zip.teil with the value from the list.

Step by step: setup on the NAS

The ready-made collector does the same steps by itself: read the list, download missing packages, resume, compare the checksum, report the pick-up, keep the package chain gap-free and start the verification tool. It needs only sh and curl, and optionally python3 for verification.

  1. Create the key: Your administration opens KMU | base › Settings › Data backup, sets the schedule (daily, weekly or monthly, with a time window) and creates the backup key. Copy it at once, it is shown only once.
  2. Create a folder: Create a folder on the NAS, for example /volume1/sicherung-kmubase. Only the account that runs the task should have access.
  3. Place the files: Download abholen.sh from https://app.kmubase.ch/sicherung/abholen.sh and pruefen.py from https://app.kmubase.ch/sicherung/pruefen.py into this folder. Also save two public root certificates together as wurzeln.pem: “DigiCert Trusted Root G4” (timestamps of the archive, the packages and the activity journal) and “USERTrust RSA Certification Authority” (second timestamping authority of the journal, Sectigo). Obtain both from an independent source, the certification authority’s website or your operating system’s certificate store, never from the package, and compare the SHA-256 fingerprint (openssl x509 -noout -fingerprint -sha256 -in wurzel.pem): G4 55:2F:7B:DC:F1:A7:AF:9E:6C:E6:72:01:7F:4F:12:AB:F7:72:40:C7:8E:76:1A:C2:03:D1:D9:D2:0A:C8:99:88, USERTrust E7:93:C9:B0:2F:D8:AA:13:E2:1C:31:22:8A:CC:B0:81:19:64:3B:74:9C:89:89:64:B1:74:6D:46:C3:D4:CB:D2. If a root is missing, the affected time proofs stay unverified and the result is yellow.
  4. Write the key file: Save the key in the file sicherung.schluessel and set the permissions with chmod 600 sicherung.schluessel. The collector refuses to start if the file is readable by others.
  5. Write the configuration: Create abholen.conf with the line ADRESSE=https://app.kmubase.ch/api/v1/sicherung/KUERZEL. Add VERTRAUEN=wurzeln.pem, and ARTEN=archiv firma for both kinds. Further settings are described at the top of abholen.sh, for instance ALARM_NACH_TAGEN=3, so that the run reports an error if no new package has arrived for three days.
  6. Start once by hand: Request the first full package with sh abholen.sh --voll-anfordern. The collector waits until it is ready, downloads it and verifies it. The log is in sicherung/abholen.log.
  7. Synology: schedule the task. In DSM open Control Panel › Task Scheduler › Create › Scheduled Task › User-defined script. Choose an account, set the schedule (a little after the time window of your schedule with us) and enter sh /volume1/sicherung-kmubase/abholen.sh under “Task Settings”. Enable the e-mail on abnormal termination: the collector ends with a non-zero code on any error.
  8. QNAP: schedule the task. The QNAP interface cannot schedule your own scripts. Via SSH, add a line such as 15 3 * * * sh /share/sicherung-kmubase/abholen.sh to /etc/config/crontab, apply it with crontab /etc/config/crontab and restart the service with /etc/init.d/crond.sh restart. After a restart, check that the entry is still there (some firmware resets it). For e-mails on errors, forward the output with a mail tool of your device.
  9. Other Linux or macOS: Add the same line with crontab -e. The collector does not start twice: a lock file prevents two simultaneous runs.

The log never contains the key. The collector exits with: 0 all good, 1 pick-up or server error, 2 configuration, 3 verification red, 4 package chain has a gap, 5 no new package since ALARM_NACH_TAGEN. A yellow verification (proofs missing or left unchecked) appears as a warning in the log; with PRUEFEN_PFLICHT=ja it counts as an error.

Verifying a package without a connection to us

The verification tool is a single Python 3 file that needs only the standard library, and is public as open source at https://app.kmubase.ch/sicherung/pruefen.py. For the signature check of the time proofs it needs OpenSSL 1.1.1 or newer. Synology, QNAP and Linux usually include it. The openssl preinstalled on a Mac is LibreSSL and is not sufficient: install a suitable one with brew install openssl@3 and point to it with --openssl /opt/homebrew/opt/openssl@3/bin/openssl (or the environment variable OPENSSL). The tool searches the PATH and well-known locations itself. If it finds no suitable one, the time proofs remain unchecked and the result is yellow, never red; it states what was found and what is missing. It needs neither a network nor an account with us.

Call: python3 pruefen.py --vertrauen wurzeln.pem vollpaket.zip folgepaket-1.zip folgepaket-2.zip. You can also give the manifest hash of the last package, which you keep separately, with --letztes-manifest; the check then notices a missing end of the series.

Give the packages in the order of the chain. The tool checks every file against the manifest, completeness against metadata and log, every log chain, the package chain and every time proof against the supplied certificates. The output gives one sentence per check. With --json, auditors get the individual findings in machine-readable form.

  • Green (code 0): The checks carried out confirm the state presented: files, chains and time proofs match the manifest.
  • Red (code 1): A deviation: a file was altered, a document or a package is missing, a log was shortened or altered, or a time proof does not match the hash. The output names the file concerned.
  • Yellow (code 2): Proofs are missing or were left unchecked, for example because a suitable OpenSSL or the root certificates are missing. This is not a pass: repeat the check with the missing aids.

A passed run shows that the package is complete and unchanged since it was created, and that the timestamping authority confirmed the manifest hash at its time. It replaces neither a conformity assessment of your archiving procedure nor an expert opinion.

When the platform cannot be reached

A package you have collected works without us. You can:

  • open the original files and assign them using the metadata (JSON, CSV or XML), by document type, details and retention periods;
  • hand the packages with the verification tool to auditors, fiduciary or authorities, who can check for themselves;
  • have a service provider transfer the open formats into another system.

It is not promised that a package can be restored automatically into a running application. The package secures your data and its proofs, not the operation of KMU | base. Keep the whole chain, from the full package to the last follow-up package, and run the verification at regular intervals, not only in an emergency.

Practical example: Alpstein Bau AG

Alpstein Bau AG is a fictitious construction company with 40 employees. Its fiduciary asks for a copy of the archived records outside the cloud. The administration creates a backup key in the settings and chooses “daily, at night”. An employee sets up the task on the office NAS following this guide. On the first night the collector fetches the full package, and every night after that a small follow-up package with the new records. If a pick-up fails, the employee receives the Task Scheduler e-mail; after three days without a new package the collector reports an error as well. Before the annual audit the fiduciary hands the packages with the verification tool to the auditors, who repeat the run on their own computer.

How KMU | base helps

1. Packages provided on a schedule. Your administration chooses rhythm, time window and retention of the provided packages; we create a full package first and follow-up packages after that. If a package cannot be created or nothing is collected for a long time, we notify the administration.

2. Collecting without storing credentials. Your storage collects; we never hold access credentials to your NAS. The key is read-only, bound to your company and revocable.

3. Open and verifiable. Open package format, complete logs instead of an extract, time proofs from an external timestamping authority and a verification tool as open source.

Included in the price. Backup and interface are included in the price of Docu | base. Repeated full packages are possible, at most one in 24 hours.

More on archiving in the guide Revisionssichere Archivierung. Take a look at the demo or open a test account.

Sources

This guide describes the device menus according to the manufacturers’ information; names may change. It does not replace legal or tax advice. Information as of 24 November 2026.

Back to top

Fewer programs. More evenings off.

Data migration – we handle it within 24 hours (working days).

Elin

Your assistant for KMU | base

I can help with questions about the apps, pricing and getting started. Please keep confidential information out of your questions.

Applies until the end of this website session.