Move & preserve data
Archive backup and native restore
Review source scope, archive files, native restore targets, destructive defaults, integrity checks and committed partial changes.
What this feature does
Create a logical database or owner archive, then inspect an existing archive before restoring compatible source-dialect content. Coverage and validation differ by format and engine.
When to use it
Use for a supported logical archive or a separately authorized native recovery. Use F18 for table/result files and F20 for CDA conversion or online migration.
Before you start
A connected, intended source or target; required metadata/read or DDL/write privileges; a writable backup parent or an intact existing archive; compatible format and dialect. Before destructive work, retain an independent recovery copy and review the exact target. Source review does not establish release availability. All DM8 support depends on Python Wheel support from the DM8 vendor; follow-up is ongoing.
Default shortcuts and local controls
Two configurable Database actions, their shared QAction aliases, local dialog bindings and buttons have different scopes. These rows are shared with Features.
| Action / control | Windows / Linux | macOS | Focus, default and effect |
|---|---|---|---|
| Open Backup Database | Ctrl+Alt+Shift+B | ⌘+⌥+Shift+B | Configurable workspace-window action; uses the database context and opens options, not the selected grid cells. |
| Open Restore Database | Ctrl+Shift+Alt+R | ⌘+Shift+⌥+R | Configurable workspace-window action; active target connection, then an existing-directory picker and setup. |
| Choose the backup parent | Browse button / path field | Browse button / path field | No dedicated default; parent directory, not an output filename. |
| Structure / data / compression | Checkboxes | Checkboxes | All initially checked; compression depends on the archive family. These are options, not shortcuts. |
| Add a backup comment | Backup Comment field | Backup Comment field | No dedicated default; descriptive manifest text, not a password. |
| Accept or cancel backup setup | OK / Cancel; Qt dialog focus rules | OK / Cancel; Qt dialog focus rules | OK starts the backup flow. No custom Ctrl+Enter binding is installed by this backup dialog; ordinary Enter/default-button behavior needs physical verification. |
| Choose the restore archive | Directory picker / Cancel | Directory picker / Cancel | Select the existing child folder containing config.json; picker acceptance only opens preparation/setup. |
| Check restore tables | Row/header checkboxes | Row/header checkboxes | Ordinary archive rows start unchecked; the header acts on visible rows. Row highlighting alone does not select for restore. |
| Sort the archive list | Name / Total rows header | Name / Total rows header | No dedicated default; metadata sorting, not target validation. |
| Review destination / creation | Target Database and create checkbox | Target Database and create checkbox | Current database by default; name and creation lock when permission is unavailable. Creation is otherwise initially checked. |
| Review identifier conversion | Uppercase checkbox | Uppercase checkbox | No dedicated default; can require the CDA execution gate even for the same engine. |
| Replace selected tables | Drop Existing Tables checkbox | Drop Existing Tables checkbox | Automatically checked for versioned archives with structure; mutually exclusive with clearing. |
| Clear the target scope | Empty Target Database checkbox | Empty Target Database checkbox | Deletes user tables/collections beyond the selected restore set; scope can include multiple Schemas. |
| Open the standalone preview | Migration Preview / Close / Esc | Migration Preview / Close / Esc | No global preview default; versioned archive only. Preview Close/Esc does not start restore. |
| Confirm restore setup | Enter; Ctrl+Enter; explicit Confirm Restore | Enter; ⌘+Enter; explicit Confirm Restore | Local default-button and fixed WindowShortcut bindings, not configurable action defaults. Shared helper registers Ctrl/Meta Return/Enter variants; passed gates can start work. |
| Acknowledge a findings review | Checkbox + Confirm Restore | Checkbox + Confirm Restore | Confirmation only when report.can_restore and acknowledgement are both true; a native plan with no findings can skip this extra dialog. |
| Leave restore setup | Cancel / Esc | Cancel / Esc | Fixed local Cancel/Escape path before execution. Do not use a confirmation chord when taking a setup screenshot. |
| Cancel running work | Cancel / Esc / window close | Cancel / Esc / window close | Enters cancellation confirmation. Backup has an optional partial-folder deletion checkbox; restore cancellation can leave committed changes. |
- Settings → Shortcuts owns the configurable backup_database and restore_database defaults. backup_db_action and restore_db_action are the menu QAction aliases for those actions, not extra independent shortcuts.
- On macOS, ⌘ means Command and ⌥ means Option. The shared parser also registers a Control alias for portable Ctrl chords; this is an implementation binding, not a verified physical-key result.
- Restore/default-button Enter, shared Ctrl/Meta+Return/Enter and Escape are local Qt bindings. Backup uses QDialogButtonBox without that shared confirmation-chord helper; focus/default-button behavior must be checked separately.
- Source inspection does not certify keyboard dispatch under every focus/modal state, OS key conflict, complete desktop workflow, engine or named release. Use the visible button when the displayed shortcut differs.
How to use it
- For backup, activate the intended database/owner, open Database → Backup Database and inspect parent folder, structure/data, compression and comment.
- Only under separate execution authorization, accept OK and inspect actual completion, warnings and the complete generated directory; retain an independent file manifest.
- For restore, activate the intended target connection, choose Database → Restore Database and select an existing archive child directory.
- Check tables, target database/owner, destructive defaults, creation and identifier options; use Migration Preview where available and stop at blocking or CDA-only findings.
- Only after the final execution confirmation, follow progress and completion; treat cancellation/errors as potentially partial, and verify the target through a fresh independent read.
Choose archive backup or native restore
An archive stores the source content that its adapter can capture. Native restore consumes compatible source-dialect DDL; changing dialect or identifier semantics belongs to CDA migration.
- Use F18 Import and Export for table files or loaded query-result text. Those files and result selections are different from a database archive.
- Use Database → Backup Database to collect the selected database or owner into an archive directory; use Restore Database to choose an existing directory and restoration scope.
- For a different engine, namespace conversion or identifier case conversion, consult F20 CDA migration. A shared dialog or a compatibility-family label does not establish an accepted conversion route.
- A workspace/session package preserves client context. An archive is a separate logical database artifact; neither implies a full server image, scheduled backup or point-in-time recovery.
Open backup for the intended database
The Database actions are bound to the owning workspace window, and backup resolves the selected database state.
- Activate the intended connection and database, then choose Database → Backup Database. Check the database context before opening: the options dialog has no source-database selector.
- In the database-list context menu, backup can address another already-open database only when its engine state is available. Restore is hidden there for a database other than the active one.
- Connect first and wait for any earlier operation of the same kind to finish. Menu visibility and a working driver are prerequisites, not proof of backup support or adequate permissions.
- The default actions are Ctrl+Alt+Shift+B and Ctrl+Shift+Alt+R on Windows/Linux, with Command/Option display on macOS. They open setup; they do not require a selected grid cell or start a backup by themselves.
Understand the source database and Schema scope
Backup discovers objects from the selected database or owner. It does not copy the current result page or a selected set of grid rows.
- For database-scoped relational engines, expect the discovered user-table inventory. PostgreSQL and SQL Server discovery includes Schema-qualified names across the database; selecting a table or a current Schema is not a backup filter.
- For native Oracle backup, the selected database name is the source user/Schema. For MongoDB native backup, the scope is collections returned for the selected database.
- The Backup Database dialog has path, content and compression options but no per-table picker. Inspect the completed manifest and its object inventory later; choosing a subset happens in Restore.
- Discovery is constrained by permissions and dialect metadata. A missing or inaccessible object is not evidence that the whole database has been captured.
Choose a parent folder and retain the complete output
Backup Path is a parent directory. The worker creates a new timestamped child folder under it.
- Use Browse to choose an existing parent directory, or check the typed path. Verify space, write access and any personal-path exposure before accepting.
- A typical output is <dialect>_<database>_backup_<timestamp> beneath that parent. The timestamp includes subsecond digits; the dialog does not let you assign a single output filename.
- Retain the whole generated folder: config.json plus every referenced data, DDL and object member. Restoring only config.json, a lone data file or the parent containing several backups is insufficient.
- The last backup parent is remembered. A path shown in setup is not evidence that a folder exists or was completed. Compression does not turn this workflow into one encrypted ZIP file.
Identify the format and version before restoring
The directory manifest distinguishes several archive families. A .sql suffix alone does not identify their restore contract.
- The generic relational format identifies itself as sqladmin-archive, backup_version 2.0. With compression enabled in this dialog, rows are packed into data.cda.bin; without it, table members use typed JSON lines. Schema SQL and object members remain separate.
- Native Oracle backup currently writes an owner-scoped 2.3 manifest with Oracle DDL, post-DDL/object JSON and typed row files; its compression branch uses gzip row members rather than the generic binary packer.
- Native MongoDB backup uses a legacy 1.0 config.json + database.sql layout. Its insertMany content uses canonical Extended JSON; old archives may contain irreversibly stringified BSON values. The compression checkbox does not pack this legacy SQL branch.
- CDA logical manifests and embedded schema snapshots have separate 3.0/3.1 validation rules. A supported reader version is not evidence of a completed native restore.
- Current-source compatibility gap: Oracle emits 2.3, but the ordinary versioned native restore dispatch reaches a 2.0-only gate (DB-ARCHIVE-216). Treat Oracle native round-trip compatibility as unresolved; never relabel the manifest to bypass the check.
Read object coverage as an inventory
Structure includes the object kinds emitted by each adapter, with partial coverage and fidelity.
- Inspect table DDL, indexes, relationships, triggers and separate database objects in the archive inventory. Compare the engine coverage table below with the source objects you require.
- When only some tables are restored, the generic native path does not replay the whole archive’s global schema objects. Table post-DDL generally runs only for tables created during this restore.
- When replacement is disabled and a table already exists, native restore can append data but does not reconcile its DDL with the archive. A completed row insertion does not establish restored indexes, constraints or routines.
- Do not infer users, grants, jobs, storage configuration or all vendor-specific objects from a “supported” path declaration. Dependencies outside the selected subset may still be required.
Understand consistency and source access
A logical read sequence is not automatically one database-wide recovery point.
- MySQL-family row consistency depends on transactional storage; its catalog and concurrent DDL are not a guaranteed common snapshot. PostgreSQL uses repeatable-read ordinary MVCC reads; SQL Server repeatable-read uses locks rather than snapshot isolation.
- SQLite uses a read transaction, not the SQLite Online Backup API or a byte copy of the database file. Snowflake does not declare a database-wide point-in-time snapshot for this path.
- Oracle declares an explicit read-only transaction for its source reads, with SYS/concurrent-DDL limits. MongoDB native collection reads must not inherit the separate declared-CDA snapshot guarantees.
- Backup can consume I/O, metadata privileges and locks. Plan consistency and dependencies for the actual engine and workload; a successful dialog does not certify a disaster-recovery strategy.
Select an existing archive directory
Restore begins from the active connection and an existing directory, followed by destination-policy and permission checks.
- Activate the intended target connection/database and choose Database → Restore Database. In Select backup directory, select the generated child folder containing config.json.
- Read Backup Information: Database, Type, Dialect, backup time and comment describe the source archive, not the connected target or a successful integrity check.
- Cancel the directory picker or the setup dialog to leave without launching restoration. Missing configuration, missing legacy database.sql, or malformed metadata must be investigated using the intact original copy.
- The picker takes a directory, not a CSV, query-result export, workspace package or arbitrary SQL script. No backup needs to be created merely to inspect this workflow.
Select tables and interpret stored row counts
The archive list is a selection of recorded tables or collections, not a live target comparison.
- In ordinary archive restore, table checkboxes start unchecked. Check the required rows, or use the first-column header checkbox for visible rows; highlighting a row alone is not a check.
- Name and Total rows come from archive metadata. Unknown or a warning icon is not a verified zero; the count is not a current target COUNT or a typed-value comparison.
- Sort through the Name or Total rows header and recheck the selected set. A schema-object-only versioned archive can proceed without tables only when the archive actually records supported global objects.
- A table subset does not automatically include every referenced parent, function, extension or sequence. Review dependencies and the separate schema-object rules.
Check the connection and target database
Target Database defaults to the active database. Its editability depends on destination policy and the account check.
- Read the active connection separately from the archive’s source name. Restore Database does not provide a new connection picker; a permitted name change stays within the current connection’s endpoint and dialect.
- If create-database permission cannot be confirmed, the name is locked to the current database and Create target database if it does not exist is disabled. This is not a grant of DROP, CREATE TABLE, INSERT or object privileges.
- Where creation is permitted, automatic target creation is initially checked. Inspect the spelling and database/file meaning before confirmation; SQLite target retargeting follows its connection-file path, not a server CREATE DATABASE operation.
- Oracle represents this target as a user/Schema. Its password field can change target authentication and, where authorized, provision a user; leaving it empty reuses the current authenticated connection subject to target access checks. Do not treat it as an archive password.
Separate native namespaces from CDA conversion
The native path preserves compatible source names. The presence of a case-conversion checkbox does not make every conversion native.
- For generic native restore, Schema-qualified archive names are retained and required Schemas may be created. The ordinary same-family dialog does not show an arbitrary per-table rename grid or a general Target Schema picker.
- Review Schema Mapping and table target tooltips in Migration Preview when available. Those are proposed mappings from archive metadata, not live conflict detection or proof that objects already exist.
- Convert database, schema, table, and field names to uppercase requests identifier conversion. It defaults on for Oracle, OceanBase Oracle, DM and Snowflake; conversion can require reviewed CDA execution even for the same engine.
- For a native-scope review, retain source spelling and keep conversion disabled where appropriate. If the preview requests portable execution or blocks the plan, stop and consult F20; do not bypass the gate. Use table names from the original source is online-only and hidden here.
Understand integrity checks and their timing
Opening metadata, previewing a plan and verifying file bytes are separate checks.
- The versioned relational restore checks required selected-table schema/data/post-schema members plus referenced schema-object files. Paths must stay inside the chosen archive and required SHA-256 entries must match.
- Embedded CDA schema snapshots also have digest, version and projection validation. These checks validate structure and recorded file content, not author identity, an independent signature, or complete application behavior.
- Do not treat a clean preview as a full checksum pass. Destination database/owner preparation can occur before adapter member verification; there is no universal promise that every validation failure happens before any target-side change.
- Legacy MongoDB SQL archives do not inherit the versioned relational checksum contract. Preserve the original directory and compare a separately retained file manifest when stronger integrity evidence is needed.
Inspect the native preview and blocking findings
The versioned archive dialog exposes Migration Preview, even for compatible native restore.
- After choosing tables and options, open Migration Preview. Read source/target dialect, target database, table/row totals, comment and the destructive-option summary.
- Inspect Findings, Schema Mapping, and Tables and Type Mappings. Check codes, object names, messages, dependencies, source types and proposed targets; warnings require review, while errors or execution blockers prevent acceptance.
- The standalone preview is a read-only report with Close. It is not an executed SQL report, full target-object comparison, independent archive checksum screen or proof that all source objects will be restored.
- The wide inline CDA review, editable type overrides and online error-resolution choices belong to migration paths. The same window title does not make them part of every native restore.
Know which confirmation starts work
Confirm Restore is an execution boundary. The number of dialogs depends on archive kind and findings.
- Recheck the active endpoint, destination database/owner, selected tables, structure/data availability, replacement or clearing scope, automatic creation and identifier options.
- On compatible versioned native restore, Confirm Restore rebuilds the review. If there are findings, the review requires I have reviewed the findings and restore options and an executable report; if there are no findings, there may be no extra acknowledgement dialog.
- Legacy restore uses its own table confirmation and may show a Dialect Mismatch warning. Continuing past that warning does not convert SQL or establish compatibility. Cancel before the execution confirmation when only inspecting settings.
- The restore dialog has local Enter/Ctrl-or-Command+Enter confirmation bindings. A key press can reach execution after the gates pass; these are not preview-only keys and must not be used to collect a setup screenshot.
Read progress and request cancellation
Progress separates overall work from the current phase and shows elapsed time with an estimated remainder.
- During authorized operation, read the current table/phase and wait through initialization or finalization. Estimates can change with counts, DDL, data and verification work; 100% alone does not validate the resulting artifact.
- Cancel, Escape or closing the running progress window routes through a cancellation confirmation. Cancellation is cooperative: an in-flight database call may finish before the worker notices the request.
- Backup cancellation offers Delete the partially created backup folder, initially unchecked. Retained interrupted output may receive INCOMPLETE.json when no final config.json exists; a retained folder is not a completed backup.
- An error may remove incomplete output in some adapters; others retain partial evidence. Keep the actual messages and files, and never treat cancellation as proof that no file or target change remains.
Handle errors and committed partial changes
Native restoration is not an atomic undoable operation across all engines.
- Generic native relational replay uses AUTOCOMMIT. Database/Schema creation, drops, DDL and row batches may already have persisted when a later file, key, dependency or row-count check fails.
- Legacy document writes also leave earlier successful operations in place. Do not infer a universal transaction or rollback guarantee from a shared progress window or from portable-mode behavior.
- After cancellation or error, stop before retrying. Record the archive identity, target and message/code; independently inspect what exists and what rows were written, then choose an authorized recovery approach.
- A repeated append can duplicate rows; replacement or Empty Target Database can widen damage. Dismissing an error or progress window does not roll back the database.
Interpret completion, warnings and history
Native backup/restore completion is reported through messages and existing execution history, not a guaranteed exported report file.
- Read backup table counts and any Backup Completed with Warnings list. Retained failures or a zero-table result must be interpreted together with the actual folder and config.json.
- Restore may show Database restore completed, elapsed time and warnings, then refresh an already-open target or offer to open another target. The message does not expose a universal per-object success matrix.
- Execution History can provide operation context and recorded statements. Keep that distinct from Migration Preview, a downloadable audit file, and the separate online migration outcome/report workflow.
- The generic versioned native adapter checks restored row counts internally when data is present, but its ordinary disk-restore result does not publish the online validation table. Count equality alone does not establish typed-value equality or full object behavior.
Verify the archive and the restored target independently
File existence, internal checks, fresh reads and release acceptance are different evidence.
- For a backup already created under separate authorization, record the actual output folder, format/version, options, complete member inventory and independently retained hashes. Check that no incomplete marker or failed-object warning is being overlooked.
- For a restore already performed under separate authorization, reopen or refresh the intended target and compare object definitions, selected row counts and representative typed values, including NULL, binary, decimal and temporal values where relevant.
- Check constraints, indexes, triggers, routines and required dependencies separately. Preserve warnings and errors, and document the exact build, server version and scope of the verification.
- This draft is based on source inspection. Its concept image and website checks do not establish that a backup was written, a restore ran, cancellation worked, a fresh target read matched, or a named release passed. Do not create objects or run recovery just to supply an illustration.
Engine object coverage and native-path limits
This is the current adapter inventory and its limits, not a live compatibility certificate. Every listed profile keeps partial object coverage/fidelity.
| Engine / family | Captured or declared objects | Important native limits |
|---|---|---|
| MySQL / MariaDB | Tables/rows, indexes, foreign keys, triggers, views, procedures/functions and events where readable. | Partial inventory/fidelity; event-catalog access may warn. Users, grants, tablespaces and server settings are outside the declared set. |
| PostgreSQL | User Schemas, tables/rows, indexes, keys, triggers/rules/policies, table state, sequences/state/ownership, extensions/types/routines/views. | Partial; roles, grants, publications/subscriptions, large objects and server settings are not covered. External dependencies remain. |
| SQL Server | Schemas, tables/rows, indexes and constraint/trigger state, alias types, routines, views and sequences/state. | Partial; temporal, memory-optimized and graph tables, specialized indexes and table/CLR types can be rejected. Security/jobs/server objects are not covered. |
| SQLite | Table DDL/rows, indexes, triggers and views. | Logical archive, not a file-image backup; virtual tables, database settings and application functions are outside declared coverage. |
| Snowflake | Selected Schemas, tables/rows, sequences, procedures/functions and views. | Partial; stages, pipes, tasks, streams, policies, grants and account objects are outside the set. Native restore with case conversion can hit the CDA gate. |
| Oracle | Selected user/Schema tables and typed rows, selected indexes/keys/comments/triggers, sequences, types/packages/routines/views. | Backup emits 2.3; ordinary native version dispatch remains inconsistent with its 2.0 gate. A successful native round trip is not established. Users/grants/jobs/server objects are outside the archive inventory. |
| OceanBase MySQL / Oracle modes | Mode-specific MySQL/Oracle implementation with a retained product identity and declared object inventory. | Partial; wire compatibility is not native-DDL equivalence. OceanBase MySQL has a separate compatibility group; check each product/version and the case-conversion gate. |
| MongoDB native | Collection creation statements, document inserts and supported comment metadata. | Legacy 1.0 SQL path; validators, indexes, capped/time-series options and other collection settings are not comprehensively preserved. Declared CDA is separate. |
| Redis / other mappings | Ordinary Redis native-keyspace backup/restore menus remain disabled. F24 separately declares partial typed-CDA archive routes with explicit prefixes, exact storage and no expiry. Other mappings require their own adapter. | A partial declared-CDA route or a mapped driver is not a native keyspace/RDB/AOF backup or all-engine compatibility claim. |
- The output manifest is the evidence of what this particular archive contains. Mapped products retain their own identity and can still differ from their implementation owner.
- CDA portable targets and online migration have separate contracts; their object declarations or reports are not inherited by native restore.
What to expect
Backup reports counts and any failed tables, with an actual archive directory to verify. Native restore reports completion/warnings and refresh/open follow-up; internal row-count checks are not a universal exported report, typed-value comparison or full-object acceptance.
Limits and safety
- All inspected archive profiles declare partial object coverage and fidelity. A supported path is not a certified engine/version workflow. DM8 has no declared archive profile in the current snapshot; compiler or identifier-policy entries do not establish a usable archive workflow.
- The current Oracle 2.3 writer/native-version dispatch mismatch remains an explicit compatibility gap. Identifier conversion can also require CDA even within one engine.
- Versioned relational checksums cover required members, not author authenticity or every legacy archive. Target preparation can precede member verification.
- Native replay can persist database/Schema creation, drops, DDL and rows before a later error; cancellation is not a universal rollback.
- Subset restoration and existing-table appending do not guarantee global-object replay, DDL reconciliation, dependency completeness or exact behavior.
- This archive is not a scheduled task, point-in-time recovery service, physical backup, encrypted single-file bundle or complete server image.
If something goes wrong
- Entry missing or unavailable: verify active connection/database, context-menu target, enabled dialect and existing operation. Ordinary Redis native-keyspace backup/restore menus remain disabled; the partial typed-CDA archive routes in F24 are separate and do not provide RDB/AOF or arbitrary-key backup.
- Wrong or missing source scope: the backup dialog has no per-table picker. Inspect actual Schema-qualified inventory and metadata privileges.
- Configuration or member missing: select the actual child directory and retain all referenced files. Never repair a failed checksum by editing the manifest.
- DB-ARCHIVE-216 on Oracle 2.3: preserve the archive and stop. Current native dispatch/version compatibility is unresolved; changing the version number does not convert the content.
- Portable/CDA blocker after selecting uppercase conversion: retain source names for native scope or review the separate CDA workflow. Do not bypass confirmation gates.
- Target locked: create-database permission was unavailable or not confirmed. This does not prove the remaining restore privileges are sufficient.
- Count/key/dependency error, cancellation or partial completion: inspect the actual target before retrying. Appending can duplicate rows; clearing or replacing can delete additional objects.
- Success message without an independent report file: the ordinary native UI does not promise such a report. Check warnings, history, complete archive files and fresh target reads separately.