Salesforce Backup: How to Back Up Your Data
In this article
Salesforce does not provide a built-in full backup of your org. To take a backup, you need to use a third-party backup tool from the AppExchange, export data manually via Data Export or Data Loader, or use the weekly export service. The method you choose depends on your org size, budget, and how often you need backups. This guide covers the practical options and steps for each.
What You'll Need
- A Salesforce account with the "System Administrator" profile or the "Modify All Data" and "Export Data" permissions.
- For manual exports: access to Setup and, for Data Loader, a desktop computer (Windows or macOS) with Java installed.
- For third-party tools: a subscription to an AppExchange backup service (e.g., OwnBackup, Gearset, Spanning) and admin rights to install and configure it.
- Storage space for exported files (CSV or ZIP) on your local machine or cloud storage.
- For scheduled exports: the "Data Export" feature must be enabled in your org (it is by default for most editions, but check with your Salesforce admin).
Step-by-Step
- Decide on your backup method. For a one-time full backup, use Data Export. For recurring automated backups, use a third-party tool. For selective data, use Data Loader or reports.
- Log in to Salesforce as an administrator. Ensure you have the necessary permissions (System Administrator profile or Export Data permission).
- For Data Export: Go to Setup (gear icon) > Data > Data Export. (Menu labels may vary slightly by Salesforce version.)
- Select the data to export. Choose "Export All" for a full backup or select specific objects. Set the export type to "Weekly" or "Monthly" if you want scheduled exports (available in some editions). For an immediate export, click "Export Now" and choose the file format (CSV or Excel).
- Wait for the export to complete. Salesforce will email you a download link when the export is ready. This can take minutes to hours depending on data volume. The link expires after 48 hours, so download promptly.
- Download and store the ZIP file. Save it to a secure location (e.g., encrypted external drive or cloud storage). The ZIP contains CSV files for each object and a schema file.
- For Data Loader (selective export): Download and install Data Loader from Setup > Data > Data Loader. Launch it, log in with your Salesforce credentials, and select "Export". Choose the object and fields, set a SOQL query or export all records, and specify a local CSV file path. Run the export.
- For third-party backup tools: Install the app from AppExchange, authorize it with your Salesforce org, and configure backup schedules (daily, weekly) and retention policies. Most tools run automatic backups and allow one-click restore. Follow the vendor's setup wizard.
- Verify your backup. Open a few CSV files to ensure they contain data. For third-party tools, run a test restore to a sandbox to confirm integrity.
- Document your backup process. Record the date, method, and storage location. Set a reminder for recurring backups if manual.
Common Mistakes
- Assuming Salesforce backs up your data automatically. Salesforce only provides a weekly export service (if enabled) and does not guarantee data recovery beyond 15 days for some editions. You must initiate backups yourself.
- Not downloading the export file in time. The download link expires after 48 hours; if you miss it, you must re-run the export.
- Exporting only standard objects. Custom objects and metadata (e.g., custom fields, validation rules) are not included in Data Export. Use a metadata backup tool or third-party service for full coverage.
- Storing backups insecurely. Exported files contain sensitive data; store them encrypted and restrict access.
- Forgetting to test restores. A backup is only useful if it can be restored. Periodically test restoring to a sandbox.
Tips
- Schedule regular backups (e.g., weekly for critical data) and automate with a third-party tool to avoid manual errors.
- Use Data Export for full org backups and Data Loader for ad-hoc or large exports.
- Include metadata in your backup strategy: use a tool like Gearset or Salesforce's Metadata API (via a developer) to back up customizations.
- Keep multiple backup versions (e.g., weekly for 4 weeks, monthly for 12 months) to protect against data corruption that propagates.
- Monitor backup jobs and set up alerts for failures.
Troubleshooting
- Export fails or times out: Large orgs may exceed export limits. Try exporting in smaller batches (by object or date range) or use Data Loader with SOQL queries.
- Download link expired: Re-run the export from Setup > Data Export.
- Missing permissions: Ensure your user has "Export Data" and "Modify All Data" permissions. Contact your Salesforce admin.
- Third-party tool not backing up: Check the tool's connection status, re-authorize if needed, and review logs for errors. Contact vendor support.
- Data Loader login issues: Ensure you are using the correct credentials and that your IP is whitelisted if IP restrictions are enabled.
Frequently Asked Questions
Does Salesforce automatically back up my data?
No, Salesforce does not provide automatic full backups. It offers a weekly export service (if enabled) and retains deleted data for 15 days in the Recycle Bin (varies by edition). You must perform backups yourself or use a third-party tool.
Can I restore data from a Data Export?
Data Export produces CSV files that you can import back using Data Loader or the Data Import Wizard. However, restoring relationships and metadata requires careful mapping and is best done with a third-party restore tool.
How often should I back up Salesforce?
At least weekly for critical data, and daily if you have high transaction volume. Automate with a third-party tool for consistency.
What is the difference between Data Export and Data Loader?
Data Export is a point-in-time full or partial export via Setup, producing a ZIP of CSVs. Data Loader is a client tool for exporting/importing data with more control (SOQL queries, batch sizes).
Are metadata and customizations backed up by Data Export?
No, Data Export only covers records, not metadata (objects, fields, Apex code). Use a metadata backup tool or third-party service for full coverage.
Can I back up to a sandbox?
You can use a sandbox as a test environment for restores, but it is not a backup. Sandboxes are refreshed from production and do not serve as independent backups.