Machine-translated – improvements welcome. Suggest an improvement
Backup¶
How to restore a backup and how Ablago test-restores it weekly is described under Restoring.
Under Workbench → Backup, Ablago creates backups itself: the whole database and all files at the same point in time, encrypted, without anyone having to stop working.
You restore a backup with Ablago. If you additionally want your paperwork in a form you can read even without Ablago – for instance to take it into another program –, use the full export in open formats.
If you already back up your server with snapshots (NAS, virtual machine), Backing up with snapshots describes what belongs together and how to handle the key.
What a backup contains¶
Every backup consists of two files in the backup folder, e.g.:
| File | Content |
|---|---|
2026-10-29_0200-automatisch.dms-sicherung |
database and all files (documents, converted versions, logos, images of reported problems), packed and encrypted |
2026-10-29_0200-automatisch.json |
metadata, readable: Library id (field haushaltId), versions (Ablago, database state, PostgreSQL, Node.js, operating system, architecture), kind, start and duration, number of folders, documents, users and converted versions (field anzahl.fassungen), sizes, encryption with the key's fingerprint and the SHA-256 checksum of the backup file |
- Encryption uses AES-256-GCM. The key for it is derived from the key under Workbench → Encryption – the same as for password fields. Without this key, a backup can't be read. It is never in the backup, only in the key file and on the emergency sheet.
- The installed packages including their code belong to it – with their settings, system accounts, confirmed rights and language packs. After a restore they keep running without reinstalling and without access to the catalogue (see Restoring without internet).
- Signed-in sessions don't belong to it: after a restore, everyone signs in anew.
- Packages' converted versions (e.g. a TIFF scan as PDF, see Other file types) are included, with the information which package created them. After a restore, version, full text and preview are there as before – even if the package is no longer installed or a newer version would convert differently today.
- Packages' archive versions (PDF/A) (see Archive version) are likewise included, with status and the word positions of text recognition. The metadata names their number (
anzahl.archivfassungen); the test restore checks each against its checksum. - The documents' previews aren't included – they are recreated by themselves after a restore (from the file or the version), and nothing refers to them. The principle: when in doubt, something goes into the backup; only what can be recreated identically at any time stays out.
- Ablago reads the database itself – independent of the PostgreSQL version. A backup is therefore also suitable for switching to a new major version of PostgreSQL.
- A check word (a known word, encrypted in the database) shows after a restore whether the right key applies.
Without a key, no backup can be created; the page then points to encryption.
Back up now¶
At the top of the section, the status is in one line: last backup, number and size of the backups, next date according to the schedule, free space and, if set up, the last off-site copy. There is nothing about the emergency sheet there: it belongs to Encryption, which also shows when it was last downloaded.
Back up now starts a backup in the background, with progress. You can leave the page. If less space is free than the minimum storage space, no backup begins. Ablago also estimates the size of the next backup (the last complete one, otherwise documents and database today): if less than the minimum storage space would remain free afterwards, Ablago skips the backup and reports this in the workbench – Ablago and the database usually live on the same storage, and a full disk would bring them down too.
What for? (optional, at most 80 characters): give a backup made by hand a short name, e.g. "Before removing invoices". It appears in the list below the kind, when restoring and in the log. Change "What for?" in the row changes or clears it. The name belongs to the backup: it is in its metadata (.json, field wozu) and encrypted in the backup itself – so it is still there after restoring and on another device. Named backups count towards retention like all others; retention doesn't clear away backups made by hand anyway. Automatic backups are called "automatic"; if the schedule caught up on a missed one, "automatic · caught up". The message below Back up now names the backup that has just finished.
The list shows all backups in the folder with time, kind, size and content. Each row has Download, Check and Delete. Download fetches a copy to your computer. Check recalculates the file's checksum and compares it with the one from the metadata – "unchanged" means: the file is as Ablago wrote it. Delete removes both files.
In the container this also works without a browser with the command dms: dms sicherung lists the backups, dms sicherung jetzt starts one, dms sicherung pruefen <name> checks one.
Deleting several backups¶
To tidy up, tick the backups you want to remove in the list, or Select all. Delete selected (n) asks once for all of them and states the number, the period and the space that will be freed. Ablago then deletes them one after the other and shows the progress. Anything that could not be deleted stays selected and is listed with the reason above the list.
No backup has special protection, not even the newest one: Select all really selects all of them, and Delete selected deletes all selected ones. The protection is the confirmation – if all are selected, it also says that afterwards there is no local backup left. Exactly the selected ones are deleted: a backup created in the meantime is not among them. Copies off-site stay at the destination and remain in the list. If you want to be sure to keep a backup, download it first.
Backups that only exist off-site have a checkbox too. They can't be deleted here – for them, next to Delete selected (n), there is Remove from list (n) (see Remove from list). Each of the two buttons is only active if it fits all selected backups; otherwise the reason is shown next to it.
Above the list it says what retention clears away by itself, with the link Change retention. So you don't need to delete older automatic backups by hand.
Downloading a backup¶
For a copy on a USB stick, at relatives' or for moving to a new device, you download a backup directly from the Workbench – without having to reach the folder in the container.
- In the list, choose Download for the backup you want.
- If your last sign-in was more than 10 minutes ago, Ablago first asks for your password (and the code) or a passkey – downloading is a sensitive action.
- Your browser downloads the file
<name>.dms-sicherung, e.g.2026-10-29_0200-automatisch.dms-sicherung– the date is in the name. You will find progress, cancel and resume in the browser's downloads. Several GB work too: Ablago delivers the file as a stream, piece by piece. - Below the list, the notice "To restore, you need your emergency sheet (key)." appears with the file name, size (to the byte) and checksum (SHA-256). The one file is enough – also on a new device (see New NAS, old backup). The only thing you must keep separately is the key from the emergency sheet.
Good to know:
- The backup is downloaded encrypted and unchanged, exactly as it is in the backup folder. Without the key from the emergency sheet nobody can read it – so the emergency sheet doesn't belong on the same stick.
- You need the Backup area in your administration permission.
- What the backup file contains: at the front, unencrypted, the method and the fingerprint of the key; encrypted, the table of contents (Library id, database state, time, counts, "What for?"), the database and the files. The metadata file (
.json) in the backup folder summarises this in readable form and adds the checksum; it is not needed for restoring. - If the download breaks off, the browser resumes it where it stopped (HTTP range). If your sign-in is then more than 10 minutes old, choose Download again in the Workbench.
- Backups that only exist off-site are in the list too; Download first fetches them back through the destination's package (see Off-site backup).
- Every download is recorded in the log, module sicherung: who, when, which backup (when resuming, with the position). Ablago doesn't create a new file for it – neither in the backup folder nor in the export folder.
Checking the copy on your computer¶
Compare the checksum of the downloaded file with the SHA-256 from the Workbench (or from the .json in the backup folder, field sha256). If both match, the copy is unchanged:
| System | Command |
|---|---|
| Windows (PowerShell) | Get-FileHash .\2026-10-29_0200-automatisch.dms-sicherung -Algorithm SHA256 |
| macOS | shasum -a 256 2026-10-29_0200-automatisch.dms-sicherung |
| Linux | sha256sum 2026-10-29_0200-automatisch.dms-sicherung |
Windows shows the checksum in capital letters – that makes no difference.
Schedule and retention¶
- Automatic backup (switch) daily or weekly at a time (e.g. daily 02:00). After a new setup it is on from the start (see First backup after setup); existing installations keep their setting. If Ablago was off at that time, it backs up as soon as it runs again – but only on the same day. It doesn't catch up on a missed backup from the previous day; it only backs up again at the next scheduled date. There is never more than one automatic backup per day. A caught-up backup is called "automatic · caught up" in the list. If there was already a backup in the last 60 minutes (by hand or before a restore), catching up is skipped – it counts for today. Right after a restore Ablago doesn't catch up on anything.
- The schedule can only be switched on once the emergency sheet has been downloaded – because a backup can only be opened with the key on it. Until then, Go to emergency sheet leads to Encryption.
- Retention (after a new setup 7 daily / 4 weekly / 3 monthly, for older installations without a saved schedule 7 / 4 / 12): of the automatic backups, the newest per day, per week and per month remains, as many as set; Ablago removes older ones after every automatic backup. Backups created by hand stay until you delete them. Directly below the numbers is the storage needed ("Storage needed: about 14 backups ≈ 1.6 GB") – the same projection as under Storage space. It updates while you change the numbers, before saving.
- Keep only the newest locally: instead of the retention, only the newest automatic backup stays in the folder – for tight space, when an off-site copy is made. A backup whose copy is currently running stays until it has arrived (at most 2 days). "None locally" doesn't exist. The checkbox can only be ticked once an off-site backup is set up and its last copy succeeded. If the destination goes away (package removed or switched off), the copy fails or lags more than 2 days behind, the checkbox has no effect: Ablago then keeps older backups according to the retention again and points this out.
- Minimum storage space (default 1 GB): if less is free in the backup folder, no backup begins; this is shown as a notice in the workbench and in the log.
- In active maintenance mode, the automatic backup pauses.
Later
Backups that only contain new files save space but make restoring a chain. That only comes when space is pressing.
Storage space¶
The page shows how large documents and database are today, a projection for the chosen retention (every backup is complete; the database packs well, documents hardly), how much the backups take up and how much is free in the folder. If it gets tight – less free than the minimum storage space or than two more backups –, it warns. Independently of this, Workbench → System health monitors all of Ablago's folders with a warning threshold and limit.
First backup after setup¶
After a new setup Ablago backs up by itself. The end of the setup wizard says so in one line: "Ablago backs up every night at 02:00 – you can change that in the workbench." With Finish setup – which only works with the emergency sheet downloaded – the following happens:
- The automatic backup is on: daily at 02:00, retention 7 / 4 / 3.
- Ablago immediately creates the first backup in the background and then restores it as a test – in a separate area of the database that disappears afterwards, even if the test fails. With an empty archive this takes seconds. The whole path is checked: folder writable, permissions, encryption, restoring.
- Workbench → Backup shows "First backup and test successful" with the time in the status line. The workbench overview only names the next step: Set up off-site copy – the first backup is on the same device as Ablago. If the backups are even on the same disk as the documents, this notice is yellow.
If the first backup or its test fails, the overview shows a red notice pointing to Workbench → Backup, where the cause is shown in the status line. That's exactly what the first run is for: fix it and back up again. Both runs are in the log, module sicherung, like every backup and test. Existing installations don't change.
Notices on problems¶
The workbench overview shows a notice if
- the last backup failed,
- the last successful one is older than 2 days (or there is none yet),
- the emergency sheet is missing, belongs to an earlier key or its emergency code has been used (with the button Go to emergency sheet; this notice also appears at the top of this page),
- the backup folder isn't a separate volume or is on the same disk as the documents (after a new setup instead: Set up off-site copy, see above),
- there probably isn't enough space for the next backup (it was skipped),
- the off-site copy failed or no newer backup has arrived there for more than 2 days.
If a backup fails, everyone who administers that area gets an email – also without a schedule, for instance with Back up now. If the last successful backup is too old, the email only comes if the schedule is on. One email comes per incident (not hourly) – if Email sending is set up. Everything is also recorded in the log, module sicherung.
Storage location¶
The backup folder is a separate volume in the Compose templates – with two containers as with dms-komplett:
volumes:
- /volume1/docker/dms/sicherung:/data/sicherung
If it is on the same disk as database and documents, the backup is useless if this disk fails. The workbench warns if it recognises this (same disk as the documents; Ablago doesn't see the database's disk). Stick to the 3-2-1 rule:
- 3 copies of your data: the running Ablago and two backups,
- on 2 different media, e.g. NAS and USB disk,
- 1 copy off site, e.g. in the cloud or at relatives'.
Ablago only writes into the backup folder. You have the NAS copy it on, for example:
- Synology: Hyper Backup with the folder
docker/dms/sicherungas the source, target USB disk or cloud (C2, S3, …). - UGREEN, QNAP and others: the NAS's backup app (e.g. Hybrid Backup Sync) or a synchronisation to a USB disk.
- Alternatively put the backup folder straight onto a second disk of the NAS (
/volume2/…) and copy that on.
Without a backup app – for instance on a Raspberry Pi or a rented server – a package such as Backup target WebDAV brings every backup off site itself and checks it there, see Off-site backup.
As the backups are encrypted, they may also go into a cloud. The emergency sheet with the key does not belong there.
What is unencrypted and where it is: full exports, "Export my data" and access copies under Art. 15 are unencrypted. That's why they are not in the backup folder but in their own export folder (/data/export, next to files/) and are deleted after downloading or after 7 days. So you can copy the backup folder completely into the cloud. If you put the export folder somewhere else yourself, then never into the backup folder – the workbench warns if it is there.
Emergency sheet¶
The emergency sheet with the key and the emergency code is only under Workbench → Encryption – that is where you download it, and where it says what is on it and how to keep it. When it was last downloaded is also only shown there. Backup only speaks up when it is affected: if the emergency sheet is missing, belongs to an earlier key or its emergency code has been used, a notice with the button Go to emergency sheet appears at the top.
Backups with an earlier key still need the old emergency sheet – keep it as long as there are such backups. In the list they carry the note "earlier key"; with Delete backups with an earlier key you remove them all at once. The test restore needs the current key – backups with an earlier key can't be test-restored.
For the self-employed and landlords
How backup, history and permissions together result in orderly receipt filing is described in the procedure documentation template.

