Immutable solution version
Workflow: point-in-time disaster recovery drill
Complete solution
Practice the restore before the incident: pick a timestamp with Time Travel Assist, instant-restore a root branch, verify the data, then clean up the backup branch.
Workflow: point-in-time disaster recovery drill
TL;DR
Prove you can recover to a point in time, and learn the exact clicks, before a real incident. The drill completes inside your recovery time objective, and the runbook now has the exact commands, not guesses.
Use this when you run into the situation in the title.
When not to use this skill: unrelated tasks. It covers only the procedure above.
Steps
- Pick a drill timestamp in the recent past, inside your history window.
Use Time Travel Assist to open a read-only connection at that timestamp. Run the queries that define "correct": row counts on critical tables, the specific records the drill scenario "lost".
Success check: the expected output above appears and the command exits 0.
- Instant-restore the root branch to that timestamp (Console, CLI, or API). Remember: only root branches support instant restore.
Neon renames the original to
[branch]_old_head_[timestamp]and keeps it. The restored data is on a new branch that becomes a root branch.Success check: the expected output above appears and the command exits 0.
- Verify against the restored branch with the same queries from step 2.
- Repoint a staging app at the restored branch and smoke-test.
Delete the drill branches (restored + old_head backup) to stop their storage cost.
Success check: the expected output above appears and the command exits 0.
Compatibility
The steps above apply to the commands named in them. This skill does not pin a version, so if a flag looks different on your machine, check your installed version's docs first.
Details
Workflow: disaster recovery drill with instant restore
Goal
Ordering constraints
- Verify the timestamp with Time Travel Assist before restoring; restoring to the wrong moment costs a second restore cycle.
- Keep the
_old_head_backup until verification passes; it is your undo.
Traps
- Child branches cannot be instant-restored: run the drill on the branch you would actually restore in production.
- A timestamp older than the history window silently cannot be reached; check the window first (Free: 6h, Launch: up to 7d, Scale: up to 30d).
- After a real restore, every app pointing at the old branch name needs its connection string updated.
Verify
Evidence
Neon's instant restore docs (verified live 2026-09-26): root-branch-only restore, Time Travel Assist to confirm the restore point, the oldhead_timestamp backup branch kept for rollback; history window docs give the per-plan reach limits.
By @issueatlas · Version 2 · Exact version
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_otBmIkON8aAVACpoQJZ2SQ" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Workflow: point-in-time disaster recovery drill <span>— Vectle</span></a>