crewship recover
Restore a whole Crewship instance from an instance bundle (made bycrewship admin instance backups run --scope instance, or a Complete recovery
plan). Runs locally, with no server running and none started: it writes a data
directory a server can then boot from. For a workspace or crew bundle use
crewship backup restore; to prove a
bundle restores without keeping the result, use
crewship backup drill.
- Verifies the bundle’s checksum, then decrypts it with your key.
- Refuses a non-empty
--data-dirunless--force. - Writes the database and every file store — attachments and workspace files
(
output/), memory and its version history (memory/), page projects (page-projects/), chats and skills — checking each file against the bundle’s own index. - Applies database migrations forward to this Crewship version, with the
recovery kit’s keys in place (a migration keyed off
ENCRYPTION_KEYrun under another key would write wrong data). - Drops every sign-in session, clears locks and leases, rewrites the memory
version paths to the new data directory, and rotates the session signing
key (a new
NEXTAUTH_SECRETin<data-dir>/secrets.env). - Writes the recovery kit’s vault keys to
<data-dir>/recovered-keys.env(mode0600) asENCRYPTION_KEY=…,ENCRYPTION_KEY_V2=…lines, exactly as the source had them. Give them to the server before it starts, move them into your secret store, and delete the file. Without a kit in the bundle it says plainly that credentials stay unreadable until you supply the original keys. - Holds routines and schedules, inbound webhooks (they answer
503) and queued work, so the restored server boots with nothing firing. Resume each withcrewship admin instance holds resume <key>once you have checked it.
ok, partial (and every gap: files that did not match,
missing attachment files or memory blobs the bundle recorded, locked
credentials) or failed — and stores it in the restored database’s restore
history. Crew container files are kept under
<data-dir>/restore-staging/crews/: there are no containers to land them in
until the crews are started.
See Instance backup and recovery
for the recovery kit, the quiet window and holds.