What's trending
UPCOMING EVENTS
How To Release More Securely in Salesforce (Without Relying on Rollbacks)
Picture this: You’re deploying a release. Everything looks green, but one of your integration steps – which is meant to update a few hundred records – silently updates hundreds of thousands. It finishes without error, but you later discover a major portion of your customer data is now invalid or just plain gone.
I’ve seen this happen in the wild more than once. And yes, sometimes it was my error, I’ll admit it.
If you’re relying purely on DevOps rollback tools to save you here, you’re in for a nasty surprise. Because while rollback is great at restoring metadata – your Apex, Flows, layouts – it won’t touch the underlying data. And in Salesforce, data is just as vital to your release health as the metadata around it.
This is where backups stop being an insurance policy and become a core part of your release process.
Rollback Isn’t Enough
Let’s break down what rollback in Salesforce DevOps actually does.
When something goes wrong, your DevOps tools can roll back the metadata to a known-good state. That’s hugely valuable, as it stops further drift, reverses the breaking change, and gets you out of hot water with broken config.
But it leaves one big thing untouched: your data.
If your test script wiped a field, or an automation misfired and overwrote customer records, rollback won’t help you. The metadata might be fixed, but the damage is already done to the data underneath.
To complete the recovery, you need a point-in-time snapshot of your data. That’s what makes backup a DevOps tool, not just disaster insurance.
What’s At Stake?
For stakeholders, the business impact of data loss is rarely “just a cleanup job.” There’s lost revenue from downtime, reputational risk with customers, and in some cases, compliance exposure. GDPR, CCPA, and similar regulations don’t care whether the data loss was accidental. If it affects reporting or retention, you’re on the hook.
Adding backups to your release workflow is a small process investment that can prevent large financial and reputational losses.
Building Backups Into CI/CD
So what does this look like in a well-run DevOps process?
Teams should treat backups like any other step in the release pipeline. You snapshot both metadata and data before deploying to production. In some environments, you might also snapshot key data objects on a schedule – especially where high-volume changes happen between releases.
The goal is to treat backup like a CI/CD step:
- Before deployment: take a full snapshot to create a rollback and restore point.
- After deployment: optionally snapshot again, so you can compare what actually changed.
In lower environments: protect your UAT and full-copy sandboxes, so pipeline issues don’t result in week-long delays. This approach integrates backups into your workflow without slowing you down, and gives you more confidence when you release.
Avoiding Common Data Loss Pitfalls
Whether you’re just getting started or reviewing an existing setup, keep an eye out for these common anti-patterns:
- The weekly export trap: Manual data exports once a week are too infrequent to help with release issues – and they’re rarely tested.
- Metadata-only backups: Your rollback is already covering metadata. If your backup doesn’t include data, you’re only solving half the problem.
- Untested restores: Backups are only as good as your last restore test. If your RTO (Recovery Time Objective) is 30 minutes and your last restore took hours, you’re not ready.
- Unsecured backups: Backups stored unencrypted or without proper access controls introduce a whole new class of risk – especially in regulated industries.
A Realistic Recovery Scenario
Let’s go back to that rogue integration from the introduction. Here’s how top Salesforce deals would approach it:
Step 1: Your monitoring tool picks up that hundreds of thousands of records were updated unexpectedly.
Step 2: You stop the pipeline and roll back the metadata deployment to prevent further damage.
Step 3: You pull the point-in-time data backup from right before the release, restore the affected records, and bring your data layer back into sync.
Step 4: With both data and metadata aligned, the team resumes operations with minimal downtime.
No fire drills, no panicked CSV imports, and best of all, no customer complaints. That’s the power of backups in the release process.
What Should You Do Next?
Ask yourself, or your Salesforce team, one simple question:
“How are backups integrated into our release process today?”
If the answer is silence, exports, or shrugs, there’s work to do.
Then, audit your pipeline:
- Are backups automated?
- Are they tested?
- Can you restore both metadata and data within your RTO?
- Are they secured, governed, and reliable?
Start small if you need to – add a pre-deploy snapshot to your prod releases. Run a restore drill in a sandbox. Align your backup cadence to your sprint cycle. These are low-friction steps that build resilience fast.
Backup Isn’t Just A Safety Net
Backups give us a platform for confidence, experimentation, and speed. When you know you can recover quickly, you ship faster. When your whole pipeline is backed up, from UAT to prod, you don’t fear mistakes. And when your team knows how to use those backups, you stop firefighting and start delivering.
Backup is a fundamental part of DevOps, and the sooner you bring it into the heart of your release strategy, the more secure and productive your org will be.

Comments: