Skip to content
OpenNodeFlow.DocsOpen beta ↗
Agent guide ↗
Docs/Operations

Back up and restore an installation

Preserve the full stopped database/key state and plan recovery before queued or enabled automation resumes.

23 Oct 2026 · 3 min read
Markdown ↗

A portable workflow/library package and a complete installation backup solve different problems. JSON export is useful for graph transfer and review. Complete recovery requires the database and its matching encryption key, plus compatible source/configuration and host setup.

What portable export omits#

Ordinary JSON export includes workflows, workspaces, library versions and context documentation. It excludes secret values, webhook keys, run history, node checkpoints, workspace variable values, durable storage/conversation/queue receipts, pending waits and host startup configuration.

A complete protected data-folder backup retains those runtime records. Source/package lock/builds and the operating-system task/firewall setup still require separate preservation. Export is not a suspended-run backup or a replacement for the encryption key.

Make a consistent backup#

  1. Choose a new protected destination, preferably in a separate failure domain.
  2. Record the application/source version, host runtime and relevant network/hosting configuration.
  3. Inspect active workflow and agent requests; let them finish or deliberately establish a maintenance boundary.
  4. Stop through the installed operating procedure and verify no owned server still uses the data.
  5. Copy the entire data folder, including the database, matching key and any remaining SQLite WAL/SHM files.
  6. Preserve compatible source, lockfile, launch/configuration files and optional built frontend separately.
  7. Verify file presence and hashes without printing protected contents.
  8. Resume only when the intended automation state is understood.

Copying a live SQLite main file while omitting its write-ahead log is not a dependable stopped backup. A second directory on the same disk alone does not protect against disk failure. Logs can contain private operational material; a protected backup is not a public support bundle.

Preserve the matching key#

The encryption key is a 32-byte file used with encrypted data. Fresh installations create one. An existing database with a missing key is rejected at startup; replacing it with another valid-length key will not recover old secrets or continuations.

Never display, commit or paste the key into a prompt. Keep access to a backup containing both database and key tightly controlled. A complete backup also retains encrypted AI conversations/device identity, while an external agent backend has its own independent protected state.

Plan the first restored start#

Preserve the current installation as a rollback copy and restore only while stopped. Use compatible source/runtime and the intended ordinary hosting identity. A source downgrade does not prove compatibility with data written by newer code.

Before launching, review enabled automations, retained queued runs and external effect boundaries. A complete restore retains those states, and queued work can resume. There is no general recovery dry-run mode. Do not run two active copies of the same restored automation.

Paused/waiting continuations retain exact pins; arbitrary code active at failure is interrupted, not automatically replayed. Restore does not provide exactly-once external effects. Reconcile uncertain provider outcomes and queue heads before manual retry.

Verify health, expected graph/library identities, history and intended entry state after recovery. Record what was actually tested. Keep rollback material until recovery is accepted, and use isolated data/ports for rehearsals.

Source provenance

Reviewed against maintained source and topic documentation on 23 October 2026. This is a source snapshot; installed versions and provider access may differ.

  • docs/BACKUP-RESTORE.md
  • docs/OPERATIONS.md
  • docs/ARCHITECTURE.md
Type to search the documentation.
↑ ↓ to navigate · Enter to openAgent map ↗