DEV Community

Rohan Mehta
Rohan Mehta

Posted on

Salesforce Backup and Recovery: Protecting Your Org Before Disaster Strikes

Salesforce Backup and Recovery: Protecting Your Org Before Disaster Strikes

Most Salesforce admins only think about backups the day something goes wrong — a bad data load overwrites thousands of records, a flow deletes the wrong accounts, or a departing admin's changes can't be undone. By then, the recycle bin's 15-day window is already ticking. A backup plan is not an IT luxury; it is the safety net under every automation you build.

Start with what Salesforce gives you for free

Every org has a few built-in safety nets, and knowing their limits matters more than knowing they exist. The recycle bin holds deleted records for 15 days, then purges them permanently. Weekly Data Export lets you schedule full exports of your data (and, on some editions, attachments), but it is a snapshot — not a restore button. Sandbox refreshes copy production data down, never the other way around. None of these is a recovery plan on its own; together, they are the minimum floor.

Decide what "backed up" actually means

Data and metadata are two different problems. Data is your records — accounts, contacts, opportunities. Metadata is your configuration — flows, validation rules, page layouts, Apex code. A data export will not save a deleted flow, and a metadata snapshot will not restore a wiped contact list. Your plan needs both, on a schedule you can actually keep: weekly full data exports at minimum, and metadata snapshots whenever a release goes out. If you change configuration often, automate the metadata side with a version-control habit — even a simple weekly export of your change set contents beats nothing.

Test the restore, not just the backup

A backup you have never restored is a hope, not a plan. Once a quarter, pick a small slice — a handful of accounts and their related contacts — and walk through restoring them into a sandbox. You will discover the awkward parts fast: lookup relationships that break on re-insert, formula fields that recalculate differently, and files that were never in the export. That practice run is worth more than a year of untouched export files sitting in a downloads folder. If your org's data is the foundation for every AI and reporting initiative, keeping it clean and recoverable is the prerequisite — our guide on why every AI strategy needs data cleaning first makes the same point from the other direction: bad data in, bad outcomes out.

Make deletion hard to do by accident

The cheapest backup is the deletion that never happens. Restrict mass-delete permissions to a tiny group, require approval for data loads over a few hundred records, and put a validation-style guard in front of destructive flows — a confirmation screen, a "type DELETE to continue" step, or a scheduled flow that runs in a sandbox first. Test coverage discipline helps here too: the same rigour that keeps your Apex safe, covered in our test classes guide, applies to the automations that touch your data.

A simple starting checklist

  1. Turn on Weekly Data Export and confirm the files actually arrive.
  2. Snapshot metadata with every release, and store it somewhere searchable.
  3. Limit who can mass-delete, and log every bulk data job.
  4. Restore a small slice into a sandbox once a quarter.
  5. Write the plan down — who restores, in what order, and how you tell users.

Backups are boring until the day they save your org. Spend an hour setting the habit up now, and the worst day of your admin career becomes a restore exercise instead of a resume event.


Originally published at Way2Force — practical guides on Salesforce Flow, automation, and CRM.

Top comments (0)