Sub topic 1
What you are backing up and why
Prerequisites
Assume you know that Salesforce stores records in objects, such as Account and Contact, and that fields hold values on those records. You should also be able to read CSV files and run basic terminal commands.
What you are backing up and why
A Salesforce backup has two parts:
- Data: records and field values, including Accounts, Contacts, Opportunities, Cases, and custom objects.
- Metadata: the configuration that defines how the org works, such as custom fields, validation rules, Apex classes, flows, permission sets, and page layouts.
Protect both parts. A data export without metadata may leave you unable to recreate the behavior of the original org. A metadata backup without data cannot restore customer or business records.
Define two recovery goals:
- Recovery point objective (RPO): the maximum acceptable amount of lost change history. An RPO of 24 hours means daily backups are acceptable.
- Recovery time objective (RTO): the maximum acceptable time to restore service.
Choosing an export method
Choose the method based on scope, volume, and repeatability.
| Need | Suitable method |
|---|---|
| Broad scheduled data export | Data Export Service |
| Small, filtered business extract | Report export |
| Controlled object-level query | Data Loader or SOQL |
| Scripted, repeatable export | Salesforce CLI |
| Very large query result | Bulk API 2.0 |
Scheduling a full export with the Data Export Service
Data Export Service creates a broad export of org data on a schedule or on demand. An administrator configures the schedule in Setup and selects the export options. Salesforce then prepares downloadable ZIP files.
Use this method as a baseline backup, but verify its available frequency, retention, and object coverage for your org. It does not replace a separate metadata backup or a tested restore procedure.
Exporting reports for small, targeted extracts
Reports are useful for human-reviewed extracts, such as active customers in one region. They are easy to filter and export, but they are not a complete backup method. Report columns and filters can change, and related objects or unreported fields may be missing.
Writing SOQL queries for export
SOQL is Salesforce Object Query Language. It selects explicit fields and can filter records for repeatable exports.
SELECT Id, Name, Industry, OwnerId, CreatedDate, LastModifiedDate
FROM Account
WHERE LastModifiedDate >= 2026-01-01T00:00:00Z
ORDER BY LastModifiedDateInclude Id and relationship fields needed for later matching. For incremental exports, record the time boundary and query LastModifiedDate consistently.
Exercise
Which method best fits a scheduled, broad baseline export, and what must it not replace?
Show answer
Use Data Export Service. It must not replace a metadata backup or a tested restore.