Back up and restore Orch8 workflows
For self-hosted Orch8 0.7.1 stable, use a database-native backup and restore. Save the engine version, deployment configuration, encryption keys, and artifacts separately. For PostgreSQL, choose a backup method that meets your recovery point. For SQLite, use a consistent online backup or an offline snapshot after stopping the writer.
For managed engines, see Cloud backup and upgrade responsibilities.
Create a logical archive from the 0.7.2 source preview
The logical archive commands require the 0.7.2 source preview. Build the CLI from the same source revision as the engine. Without --include-instances, the archive carries configuration such as sequences, triggers, cron schedules, queues, and credentials. Include instances to carry execution state, outputs, checkpoints, queued signals, effect receipts, and recoverable worker tasks.
# Use an isolated target. Pick a new target file for each drill.
umask 077
orch8 backup --database-url sqlite:orch8.db \
--out backup.tar.gz --include-instances
orch8 restore backup.tar.gz --database-url sqlite:restored.db \
--include-instances --dry-run
# Run only after reviewing the dry-run output and checking the target path.
orch8 --yes restore backup.tar.gz --database-url sqlite:restored.db \
--include-instancesA dry run validates the archive without writing the target. Before a PostgreSQL restore, migrate the target database using the matching engine version. Restore preserves existing instance IDs in the target, so use a clean target to rehearse recovery.
Check what must travel with the database
- Keep the source encryption keys available for reading encrypted data after restore.
- Include local artifact bytes with
--artifacts-diron backup and restore. Back up S3-compatible artifacts and external vaults separately. - Use a full database backup for active continuity transfers and compensation runs. The logical archive excludes audit history and issued worker claims.
- If an in-flight effect lacks a resumable worker checkpoint, settle it on the source before retrying the logical backup.
Prove recovery in an isolated environment
Restore to an isolated target and verify that an existing run resumes from its saved checkpoint with a test worker. Record the durable state recovered and the elapsed restore time.
- Keep production workers and provider credentials disconnected from the target.
- Inspect a waiting run, its last checkpoint, and its pending signals before resuming it.
- Connect a test worker and verify that it receives a fresh claim and resumes from the saved checkpoint. Check unclear provider outcomes against their receipt before allowing another dispatch.
- Record the latest durable state recovered and how long the restore took. Stop the source scheduler and workers before resuming production work on the target.
For archive formats, signing, encryption, and restore limits, read the engine backup reference. See also SQLite operations and effect recovery.