Documentation
Exporting and importing a tenant
Only the operator can move a domain — for example when a tenant switches to another installation or a domain moves to its own server.
Steps
- Export at the source:
annexgroup mandant-export --domain example.com --out example.agtenantcreates a verifiable archive. Likerestore,--configreads the configuration file, so the database credentials do not have to be on the command line. - Transfer the archive: copy
example.agtenantto the target installation, for example withscp. - Import at the target:
annexgroup mandant-import --in example.agtenant. Identifiers (IDs) are newly assigned; existing data on the target stays untouched.
What is included — and what is not
Included: the domain with its users, mailboxes with their messages, calendars, contacts, tasks, notes, rooms, public folders and the permissions inside the domain.
Not included: shares to accounts of other domains. They point to users that do not exist at the target and are therefore left out; the manifest inside the archive counts how many shares were omitted. The archive contains only data of this one domain; references to foreign accounts are not carried over.
Password protection
--kennwort-datei <file> encrypts the archive on export (AES-256-GCM);
the same option opens it on import. The password lives in a file, not on
the command line, so it does not show up in the process list.
Verification and error messages
- Every file in the archive carries a checksum and is verified before the import; a modified archive is rejected.
already exists— the target already contains the domain. The import aborts without writing anything.archiv ist verschluesselt; passwort fehlt— the archive is encrypted but no--kennwort-dateiwas given.archiv entschluesseln: kennwort oder daten fehlerhaft— the password is wrong or the archive is damaged.kennwort-datei ist leer— the given file contains no password.
Something unclear or described wrong? Tell us — we will fix it. Your question shows us where the text falls short.