Salesforce backup and restore protects two different things: metadata, the configuration and code that define how the org works, and data, the records users and integrations create. Salesforce keeps the platform running, but recovering from a bad deployment, an accidental mass update, or a deleted field is the customer's responsibility. A backup plan needs both kinds of copies and a tested way to restore each one.
Metadata Backup and Data Backup Are Different
- Metadata backup captures objects, fields, automation, code, layouts, and permissions. Metadata backup restores configuration but not records.
- Data backup captures records. Data backup restores records but must also restore the relationships between them, which is the hard part.
- Salesforce tools such as the Recycle Bin and data export help with some cases. The Recycle Bin keeps deleted records for 15 days and does not cover overwritten values.
How to Approach Backup
- Capture metadata on a schedule and before every production release.
- Back up critical data with relationships, not only as flat files per object.
- Keep history. Several earlier states let you restore to the point before a problem started.
- Test restores in a sandbox, because an untested backup may not restore.
- Document the procedure so a restore can happen quickly under pressure.
How Snapshot Helps
- Full Snapshot: captures all available metadata as a point-in-time backup, dividing large captures into retrieval groups, with one-time or recurring schedules.
- Manage Time Series: keeps the saved metadata history of an org, compares saved states, and targets an earlier state for reports and deployments.
- Roll Back Deployment: restores metadata from an earlier time series backup of the destination org.
- Build Datasets and Migrate Datasets: download related records with relationships preserved and load them back, matching existing records.
A metadata snapshot does not back up Salesforce records, and a scheduled dataset build replaces the named dataset rather than keeping a series of data backups.
Common Questions
Does Salesforce back up my data?
Salesforce protects the platform, but restoring an org's own records and configuration after a user or deployment mistake is the customer's responsibility. Plan your own backups.
Can I restore a deleted field?
A deleted custom field can be restored for 15 days, with the field's data. After that, the definition can be redeployed from a metadata backup, but the data needs a data backup.
How often should backups run?
Daily for critical data and before every release for metadata, with more frequent captures for orgs that change constantly.