Machine-translated – improvements welcome. Suggest an improvement
Growing and moving¶
Ablago starts small and can grow with you. All moves follow the same path: create a backup, start the new system, restore the backup. Ablago's backup doesn't depend on a particular PostgreSQL version or a particular device. It contains the whole database and all files, encrypted with your key.
Can't find an area in the sidebar?
Some areas of the workbench, for example Maintenance mode, Database connection or Maintenance operations, are hidden in smaller levels such as Beginner or Household. At the bottom of the sidebar it says how many areas are hidden; one click shows them. You can show them permanently under Customise the workbench. Hidden does not mean switched off.
Which variant?¶
| dms-komplett (one container) | dms + its own database (two containers or more) | |
|---|---|---|
| Setup | one image, four folders, done | Compose project or app store, database password |
| Database | PostgreSQL 18 in the container, only reachable from inside | its own container or server, freely chosen |
| PostgreSQL updates | with the next Ablago image | immediately (pull postgres:18 again) |
| Good for | trying out, testing, environments with only one container | long-term operation (recommended), your own database management, a database on another device |
| App stores | – | umbrelOS, ZimaOS, CasaOS, TrueNAS, Unraid |
We recommend two containers for long-term operation: PostgreSQL gets security updates independently of Ablago, both can be restarted and examined separately, and it is the usual Docker way. dms-komplett is the alternative for trying out and for environments that only allow one container. A switch is possible at any time, in both directions.
Moving, step by step¶
This applies to every move: from two containers to dms-komplett and back, from a NAS to a server, to new hardware.
- On the old system: switch on maintenance mode, create a backup under Workbench → Backup. Have the emergency sheet with the key ready.
- Copy the two backup files (
.dms-sicherungand.json) from thesicherungfolder. - Start the new system, e.g. dms-komplett or one of the templates. Put the two files into its
sicherungfolder. - Open the setup wizard in the browser, choose Restore from a backup and follow the steps under Restoring → New NAS, old backup.
- Sign in with the previous credentials and check briefly: folders, documents, Workbench → system health → Version and updates.
- Only switch off the old system once the new one is running. Keep the old system's folders until you're sure.
If the address changes (new device, new port), enter it anew under Workbench → email and address so that links in emails are correct.
New major version of PostgreSQL¶
A database of an older major version (e.g. 17) can't simply be started with a newer one (e.g. 18).
- dms-komplett: if a new image brings a new major version (most recently Ablago 0.306: 17 → 18), the container deliberately doesn't start with the old
postgresfolder. The page at the usual address states the reason and the way out; the log says which version the database has and which the image has. Nothing is deleted. Then: - Start the previous image (with the old version number; for PostgreSQL 17 that is
dms-komplett:0.305.0) once more and create a backup. - Rename the
postgresfolder (e.g.postgres-17) and create an empty one. - Start the new image and restore the backup in the wizard.
- Once everything works, delete the old folder.
- Your own database: the same. Start a new, empty PostgreSQL container in the new version, point Ablago to it, restore the backup. Step by step for 17 → 18, including the line
PGDATAthatpostgres:18needs: Updating → PostgreSQL 18.
A snapshot of the server doesn't help here: it contains the database in the format of the old major version (see Backing up with snapshots).
When it grows¶
- Many documents: the
filesfolder grows with the documents, the database much more slowly. Putfilesandsicherungwhere there is space. The folders can be moved individually, as long as the volume afterwards points to the same folder in the container again. Workbench → system health shows what takes up how much. - More performance: text recognition and full-text search benefit from more processor cores and memory. A move to a more powerful computer works as above.
- Database on its own server: move from
dms-komplettto the lean imagedmswith its own database, as described above.
If you keep receipts for an activity (freelance work, small business, letting), also record a move in your procedure documentation (sections 1 and 10).