Backups and Recovery
Save dated, complete Oblive snapshots to S3 and recover an installation with its original runtime.
An Oblive snapshot contains its seven Docker volumes, exact container images, configuration, generated environments, integration encryption key, credential files, and development bind mounts. It includes a standalone recovery tool. Recovery needs Python 3.11+, Docker with Compose v2, AWS CLI v2, AWS access, and the same CPU architecture. It needs no Git checkout, host Bun, image registry, or image build.
Snapshots contain credentials. Restrict access to the bucket and the local installation. AWS credentials, host OS and browser state, and data owned by external services are excluded. Restoring Oblive cannot undo external actions or make expired or revoked provider credentials valid again.
Configure S3
For an installed release:
oblive backup init --create-bucketFor a source checkout, run from the deployment root:
python3 scripts/backup.py init --create-bucketThe default bucket is oblive-backups-129875285541-us-east-1 in Skyfall account 129875285541,
region us-east-1. --create-bucket explicitly creates and configures the dedicated bucket:
public access blocked, versioning enabled, SSE-S3 encryption, and cleanup of incomplete multipart
uploads after seven days. No separate recovery encryption key is required.
For an already configured bucket, omit --create-bucket. Optional arguments are --bucket,
--region, and --profile. The AWS identity must belong to the configured account. Configure
AWS access separately; the tool does not copy AWS credentials into snapshots.
Select an installed instance with oblive --instance personal backup init. For a source instance,
use python3 scripts/backup.py --root /path/to/deployment init --instance personal.
Configuration lives in backup.json for installed releases and config/backup.json for source
checkouts. A stable deployment ID is generated automatically and stays inside metadata.
Create and Inspect Snapshots
oblive backup create
oblive backup list
oblive backup statusThe tool pauses worker dispatch through the existing work-dispatch API for every organization in the selected installation. Queued tasks and schedules are preserved, running work can finish, and the backend and UI stay available throughout this wait of up to 30 minutes. Organizations that were already paused remain paused. If work is still active at the deadline, the backup restores the pauses it owns and defers without entering maintenance or stopping containers.
Once active chats, runs, and actions have finished, a final maintenance gate blocks new writers and checks in-flight requests and background jobs. This final drain has a separate 30-second budget; a busy or stuck operation defers the attempt and releases maintenance. Chats and background jobs are not all covered by the worker dispatch switch, so this last check remains necessary. When drained, the tool stops the existing containers, copies their data, and restarts exactly the services that were running. It then restores the dispatch states it changed. A pause changed by another caller is preserved. The consistent copy still requires downtime; the long work wait does not. Compression and uploads happen after restart. Allow staging space for twice the uncompressed data and images, plus 1 GiB. Avoid edits, updates, or direct Docker lifecycle commands during capture.
If the entire instance is already stopped, including a restored test copy, use:
oblive backup create --stoppedThis requires the existing containers and volumes and leaves them stopped. It does not activate a
restored copy or mark it validated. If any container is running, the command refuses to capture it;
use the normal backup command for running installations. Resume an interrupted stopped-instance
backup with oblive backup create --stopped --resume.
Snapshot directories are sortable UTC timestamps:
snapshots/2026-10-14T02-00-00.000Z/
COMPLETE
manifest.json
installation.tar.gz
volume-*.tar.gz
backup.py
RESTORE.txt
images/linux/arm64/<image-id>.tar.gzDeployment IDs are excluded from directory names. Images are reused by image identity and
architecture. COMPLETE is published last. Lists include incomplete attempts; only complete
snapshots can be verified or restored. Reported size includes referenced images, even when shared
with another snapshot. All completed snapshots are retained; backups never delete older snapshots.
oblive backup verify 2026-10-14T02-00-00.000ZVerification downloads every referenced object version and checks its full-file SHA-256 and archive safety. This checks storage integrity; a restore additionally checks application startup and data.
If capture, restart, or upload fails, inspect backup status, fix the reported problem, and run:
oblive backup create --resumeThe private journal and staging files live under .runtime/backup/. Resume first attempts any
unfinished service restart, maintenance release, and dispatch restoration, including when AWS is
unavailable. If the process crashes, dispatch pauses persist until this recovery runs; the journal
records them before each API call so even a lost response can be recovered. A completed capture retries its
upload without another outage. An incomplete capture requires a fresh drain and capture. Do not
delete the journal while restart is pending. An unjournaled staging directory must be moved aside
before a new capture; inspect and retain it if it contains recovery data.
Restore Safely
The target directory and its Docker volumes must not already exist:
oblive backup restore 2026-10-14T02-00-00.000Z \
--target /path/to/recovered --instance recoveredOn a fresh host, download the tool directly from the snapshot:
aws s3 cp \
s3://oblive-backups-129875285541-us-east-1/snapshots/2026-10-14T02-00-00.000Z/backup.py \
./backup.py --region us-east-1
python3 backup.py --bucket oblive-backups-129875285541-us-east-1 restore \
2026-10-14T02-00-00.000Z --target ./recovered --instance recoveredRestore checks completion, checksums, architecture, and archive paths before loading images or extracting data. It creates fresh volumes and relocates bind mounts. Numeric ownership, modes, and symlinks are preserved by the saved archive helper. Host access to files with a different saved numeric owner may require administrator access. Keep the recovery directory private.
The restored application initially exposes loopback ports starting at 13000; its UI is at
http://127.0.0.1:13005. Use --port-base to choose another six-port range. Recovery runs on an
isolated Docker network with no provider egress, agents, tunnel, migrations, startup reconciliation,
or background jobs. It allows health checks and stored record inspection. Some interactive screens
and API calls deliberately return maintenance responses.
Automatic checks cover PostgreSQL, Redis, readable Garage objects, stored content hashes, credential decryption, and application health. A failure stops restored services and retains the target for inspection; it never replaces the original installation. Use the generated launcher thereafter:
/path/to/recovered/oblive status
/path/to/recovered/oblive stop
/path/to/recovered/oblive startRecovery mode survives restarts. Builds and pulls remain disabled.
Activate the Restored Installation
Stop the original installation, inspect the recovered data, then activate deliberately:
python3 /path/to/recovered/backup.py activate --target /path/to/recovered --confirmActivation checks that the source project and containers are stopped on the current Docker host.
When recovering on a different host, --confirm also confirms that you stopped the original host’s
instance. Activation resumes background work and agents using the saved runtime, and removes the
temporary dispatch pauses owned by the snapshot. Organizations paused before backup stay paused. Queued work can
run again, and external effects already performed after the snapshot are not reversed.
Tunnels, host-managed Cloudflare services, and backup schedules remain disabled. Configure these separately after reviewing public URLs and provider access. Restored installations use their pinned launcher; normal release updates and configuration regeneration are not part of recovery.
Opt In to Nightly Backups
First complete a manual backup and a successful restore using the original installation’s backup command. That records the restore check in its local status. Leave the test restore inactive.
oblive backup schedule install
oblive backup status
oblive backup schedule removeThe schedule uses a macOS LaunchAgent or Linux user systemd timer. The default window is
02:00–04:00 UTC, configured with init --timezone. It checks every five minutes and
retries failed or deferred attempts at least 15 minutes apart. It starts no new capture after the
window closes and does not catch up during daytime. A capture already started may finish later.
The host must be awake, Docker healthy, and AWS credentials usable without an interactive login.
The tool installs no wake settings or external notifications. Local status records the last success,
snapshot, duration, size, and sanitized failure phase. LaunchAgent logs are in .runtime/backup/;
Linux timer output is in the user journal (journalctl --user -u 'dev.oblive.backup.*').
Share captured integration data
A full backup contains database and storage-engine files intended for recovery. For analysis, an operator can produce a separate readable ZIP of one business’s retained integration data. Recipients download and unzip it without installing Oblive or obtaining its encryption key.
Start with the ZIP’s README and coverage report. Integration folders contain original captured responses and a file index. Missing connectors, partial collections and capture dates remain visible; the export does not fetch new data or recreate missing history. It excludes installation credentials, application databases and agent workspaces. Keep the ZIP private because its readable files can contain customer and business information. Ask the operator for a fresh download link when an existing link expires.