Přeskočit na obsah

Export & restore

Tento obsah zatím není dostupný ve vašem jazyce.

Terminal window
adminium export-zip --out ./adminium-export.zip
Wrote /work/adminium-export.zip (48.2 KB, 12 entries).
connections: 3 · snapshots: 3 · overrides: 214 · pages: 41 · views: 12 · roles: 4
Contents
manifest.json Format version, the adminium version that wrote it, config-envelope version, secrets policy
README.md Says what this is, in its first heading
package.json Pins the adminium version that wrote the bundle — the runtime is named, not copied
config/settings.json Instance settings
config/roles.json, config/rolePermissions.json RBAC
config/connections.json Connection definitions
config/snapshots.json Schema snapshots
config/overrides.json Your field/label/type customizations
config/pages.json Pages and dashboards
config/views.json Saved views
  • Source code. See above.
  • The Adminium runtime itself. package.json pins the version; install that version separately — from source or Docker (npm publish is a release step that has not happened yet). The bundle carries a reference, not a copy.
  • Your rows. No table data, ever. This is configuration.
  • Your secrets — unless you ask. Default is omitted.

An export is shareable by default. DSN passwords and provider API keys are left out, and the target re-enters them on import.

Terminal window
adminium export-zip --include-secrets --out ./full.zip
Wrote /work/full.zip (49.1 KB, 12 entries).
This bundle contains encrypted secrets — treat it as sensitive.

The manifest records which policy applied — omitted or encrypted — so a bundle can never be mistaken for something it is not.

Terminal window
adminium import-zip --in adminium-export.zip

The bundle carries a manifest with the config-envelope version, so a bundle written by an older Adminium replays forward into a newer one. Resources are matched on natural keys rather than raw ids, so a re-import updates what is already there instead of duplicating it.

Trial it first — --dry-run validates the whole bundle and prints what would be written, without touching the database:

Terminal window
adminium import-zip --in adminium-export.zip --dry-run

If secrets were omitted, connections that are new to the target import without credentials and you re-enter them once. Connections the target already has keep the credentials they have.

import-zip reference

Worth being blunt about, because the file extension invites the assumption:

export-zip A real backup
Connection config, pages, roles, views Yes Yes
Your database’s rows No Yes
The audit log No Yes
Jobs, sessions, run history No Yes
Point-in-time recovery No Yes

export-zip is for portability — moving an instance, replaying a configuration, putting your admin-panel config in source control, handing a colleague a reproducible setup.

For backup, back up the meta store with your database’s own tooling, and back up ADMINIUM_SECRET alongside it. See Self-hosting → Backups.

Terminal window
adminium export-zip --connection <id> --out ./one-connection.zip

Restricts the bundle to that connection’s configuration. Without it, the whole instance is exported.

Flag Default
--connection, -c the whole instance Export only this connection
--out, -o ./adminium-export.zip Destination path
--include-secrets off Include encrypted DSNs and provider keys
--data-dir ADMINIUM_DATA_DIR Data directory
--meta-url ADMINIUM_META_URL Meta store DSN

Full reference: adminium export-zip.