Export & restore
هذا المحتوى غير متوفر بلغتك بعد.
adminium export-zip --out ./adminium-export.zipWrote /work/adminium-export.zip (48.2 KB, 12 entries).connections: 3 · snapshots: 3 · overrides: 214 · pages: 41 · views: 12 · roles: 4What is in the bundle
Section titled “What is in the bundle”| 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 |
What is not in it
Section titled “What is not in it”- Source code. See above.
- The Adminium runtime itself.
package.jsonpins 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.
Secrets are omitted by default
Section titled “Secrets are omitted by default”An export is shareable by default. DSN passwords and provider API keys are left out, and the target re-enters them on import.
adminium export-zip --include-secrets --out ./full.zipWrote /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.
Restoring
Section titled “Restoring”adminium import-zip --in adminium-export.zipThe 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:
adminium import-zip --in adminium-export.zip --dry-runIf 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.
Export is not backup
Section titled “Export is not backup”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.
Exporting one connection
Section titled “Exporting one connection”adminium export-zip --connection <id> --out ./one-connection.zipRestricts 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.