{"success":true,"name":"a-backup-you-never-restored-is-just-a-hope-plan-recovery-not","description":"Project stores real user data and no tested plan exists to recover it","category":"ai-brimind","path":"ai-brimind/a-backup-you-never-restored-is-just-a-hope-plan-recovery-not/SKILL.md","file":"SKILL.md","content":"---\nname: a-backup-you-never-restored-is-just-a-hope-plan-recovery-not\ndescription: \"Project stores real user data and no tested plan exists to recover it\"\n---\n\n# A Backup You Never Restored Is Just a Hope: Plan Recovery, Not Only Copies\n\n## When to use\nThe database holds data that would hurt to lose (users, orders, content people created), and there is either no automatic backup, or backups exist but nobody has ever actually restored one to prove it works.\n\n## Example request\nBackups run nightly for a year → the day of the crash, the dump turns out corrupted or missing a collection, and nobody knew because no restore was ever tried; an untested backup is a feeling, not a safety net. A bad migration script wipes a field on all records → with a pre-deploy backup, this is a bad afternoon; without one, the data is simply gone — code has git, data has only backups. Backups stored on the same server as the database → the disk that dies takes both; copies must live somewhere else, that is the point of a copy. Dev database with fake seed data → losing it costs nothing; backup discipline is for data users trusted you with.\n\n## Instructions\nAct as the person who will be sitting at the keyboard the morning the database is gone — because that is the only honest way to judge a backup plan: not 'do copies exist' but 'can I, concretely, get the data back, and how old will it be'. For any project holding real data, do this: (1) Answer the recovery question first, out loud: if the DB vanished right now, what exactly would you do, step by step, and how much data (hours? days?) would be lost forever? If any step is 'I would figure it out', the plan does not exist yet. (2) Set up automatic backups using the mechanism your database or host already provides (mongodump on a schedule, managed-DB automatic snapshots, your platform's backup feature) — this is a solved problem, do not hand-build it beyond a small script. Decide the frequency from the honest answer to 'how many hours of lost data is acceptable', not from habit. (3) Store copies AWAY from the thing they protect — another disk, another service, another account; a backup on the same machine dies with the machine. (4) Do the drill once, for real: take a backup, restore it into a scratch database, open the app against it, and see actual records. Only after this does the word 'backup' mean anything — you will usually discover a surprise (missing collection, wrong permissions, forgotten env var) and it is infinitely better to meet it on a calm Tuesday than during the fire. (5) Tie backups to danger moments: before running a migration script or a bulk update on production data, take a fresh one — that single habit converts catastrophes into rollbacks. Only call this handled once you can state: where the copies live, how old the newest one can be, and the date you last restored one successfully — 'the cron job runs' answers none of the three.\n\n## Metadata\n- role: developer\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #204\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}