Most disaster recovery plans describe in detail how to leave the primary site and say almost nothing about how to come back, so the return trip becomes a second, self-inflicted outage. During failover the recovery site accepts new writes, the old primary falls behind or diverges, and the people, DNS records, certificates and credentials all move with the workload. Failback has to reverse all of that without losing the data written while you were away. This guide covers why failback fails, how to resynchronise data and reverse replication, the readiness criteria to meet before switching back, a runbook with decision points, and how to test failback rather than only failover. It is for DR, infrastructure and platform teams. The wider BCDR programme is in the Business Continuity and Disaster Recovery Guide; this page goes deep on the last leg.
Key takeaways
- Failback is a planned migration, not an undo. Treat it as a scheduled change with its own runbook, rollback and go or no-go decision, run in a quiet window rather than as soon as the primary looks healthy.
- Data written at the recovery site is the whole problem. Reverse replication must carry every change back to the primary before users move, and an old primary that kept writing after failover has to be rewound or rebuilt, never simply reconnected.
- Use a switchover, not a second failover. Database platforms distinguish a controlled, no-data-loss switchover from an emergency failover; failback should use the controlled path once the old primary is a healthy standby.
- Readiness is evidence, not optimism. Root cause fixed, replication lag at zero, capacity verified, security parity confirmed and a rollback path to the recovery site kept open.
- Test the round trip. A DR test that stops after failover proves half the plan; NIST SP 800-34 treats reconstitution, including validation and plan deactivation, as a phase of its own.
Why failback fails
NIST SP 800-34 Rev. 1 splits contingency plans into three phases: activation and notification, recovery, and reconstitution. Reconstitution covers validating the recovered system (data testing and functionality testing, optionally with concurrent processing at two locations) and deactivating the plan: notifying users, cleaning up the temporary site, returning backup media, taking a full backup of the restored system and documenting lessons learned. Most plans write the first two phases in detail and leave reconstitution as a single line. The usual consequences are below.
| Cause | What happens | Prevention |
|---|---|---|
| Divergent primary | The old primary accepted writes after the failover point, so its data no longer matches the new primary | Fence the old primary at failover; rewind or rebuild it as a standby |
| No reverse replication | Changes made at the recovery site exist nowhere else; switching back loses them | Set up replication from recovery to primary as soon as the primary is available |
| Root cause not fixed | The primary fails again under full load, or the attacker is still inside | Root cause sign-off and, after a cyber incident, a clean-environment assurance |
| Configuration drift | Changes made at the recovery site (patches, firewall rules, secrets, feature flags) never reach the primary | Freeze changes during DR or record every change for replay |
| Rushed timing | Failback during business hours with no rollback window | Schedule failback as a change in a low-traffic window |
| Dependencies forgotten | DNS, load balancers, certificates, IP allowlists at partners and batch jobs still point at the recovery site | Dependency checklist built from the failover record |
After a ransomware or intrusion event the stakes are higher: failing back into an environment that has not been cleaned reinfects the business. The difference between the two recovery modes is set out in the Cyber Recovery vs Disaster Recovery guide.
Data resynchronisation
Resynchronisation has two jobs: bring the old primary back to a known state, then keep it current with the recovery site until cutover.
Step one: deal with divergence
- Fence first: at failover, make sure the old primary cannot accept writes if it comes back on its own (power off, revoke its network path or remove it from the cluster). A primary that restarts and serves traffic creates split-brain.
- Rewind where the platform supports it: PostgreSQL's pg_rewind synchronises an old primary with the new one after their timelines diverge, copying only changed blocks, so the old primary can rejoin as a standby. It needs
wal_log_hintson or data checksums,full_page_writeson, a clean shutdown of the target and WAL reaching back to the divergence point. The PostgreSQL documentation warns that a failed rewind can leave the data directory unusable, so take a new base backup if it fails. - Flash back where available: Oracle Data Guard documentation recommends Flashback Database, enabled before the role transition, to convert a failed primary into a standby; without it, the old primary is re-created from a backup of the new primary.
- Rebuild when in doubt: when the divergence point is unclear, the storage is suspect or the incident was malicious, rebuild the primary from the recovery site's data rather than reuse old disks.
Step two: reverse replication
Once the old primary is a clean standby, replicate from the recovery site back to it. Replication tools describe this as reprotect or reverse replication: an initial full or block-level sync, then continuous delta replication. Plan the bandwidth: the initial sync of a large estate over a WAN link can take days, which is one reason failback should not be promised on the day of recovery.
Examples from vendor documentation
Products are listed alphabetically; the list illustrates the pattern and is not a recommendation.
| Product | Failback mechanism as documented |
|---|---|
| AWS Elastic Disaster Recovery | Replicates data from recovery instances back to source servers with the Failback Client; AWS states that all data written during failover must be replicated back before users are redirected, and that traffic redirection itself happens outside the service |
| Azure Site Recovery | Reprotect sends initial data, then deltas, to the primary region; failback offers recovery points such as Latest processed (lowest RTO) and Latest (lowest RPO); the source VM must be shut down or failback fails |
| Oracle Data Guard | Reinstate the failed primary as a standby, then return roles with a switchover, which involves no data loss |
| PostgreSQL | pg_rewind rejoins the old primary as a standby; a controlled promotion then returns the primary role |
Choosing the method
- Short outage, primary intact, no malicious activity: rewind or flash back, reverse replicate, switch over.
- Hardware or storage loss: rebuild the primary and seed it from the recovery site.
- Cyber incident: rebuild from known-good images and seed data from verified copies; do not trust disks or snapshots taken after the compromise.
- Recovery site is now better than the primary: consider making it the permanent primary and rebuilding the old site as the new DR target. Failback is a choice, not an obligation.
Small organisations with a single application and a cloud DR copy can often fail back by restoring into the primary from a fresh backup during a weekend window. Large estates need per-application waves, ordered by dependency, with reverse replication running for days before the first cutover.
Failback criteria
Hold a formal go or no-go meeting. Every criterion needs an owner and evidence, recorded in the change ticket.
| Criterion | Evidence | Owner |
|---|---|---|
| Root cause resolved | Problem record closed; for cyber incidents, a clean-environment sign-off from the incident lead | Incident or problem manager |
| Primary infrastructure healthy | Hardware, storage, network and power checks passed; monitoring green for an agreed soak period | Infrastructure lead |
| Data fully resynchronised | Replication lag at or near zero; row counts or checksums match for critical tables | Database or storage lead |
| Capacity verified | Primary sized for current load, including growth during the DR period | Platform lead |
| Configuration parity | Every change made at the recovery site replayed or consciously dropped | Change manager |
| Security parity | Patches, EDR, logging, certificates and secrets current on the primary; privileged accounts reviewed | Security lead |
| Dependencies ready | DNS TTLs lowered in advance; partner allowlists, VPNs and integrations confirmed | Application owners |
| Rollback path open | Recovery site kept running and able to resume as primary | DR coordinator |
| Business approval | Window agreed; users and customers notified | Service owner |
Where identity fits
Failover often relies on emergency measures: break-glass accounts, temporary firewall exceptions, service account keys copied to the recovery site, or certificates issued in a hurry. Failback is the moment to unwind them. Rotate any secret that was exported or shared during the incident, disable emergency accounts used, and confirm that machine identities on the primary (service accounts, API keys, workload certificates) match those the recovery site used, or integrations break silently after cutover. See the Break-Glass Account Guide and the Secrets Manager Resilience Guide.
Runbook
A failback runbook mirrors the failover runbook in reverse, with explicit decision points. Write it per application and rehearse it.
- Preparation (days before): confirm reverse replication is healthy, lower DNS TTLs, freeze changes at the recovery site, notify stakeholders and confirm the go or no-go attendees.
- Decision point 1, go or no-go: review every criterion in the table. Any red item means no-go and a new date.
- Quiesce: drain traffic at the recovery site, stop batch jobs and scheduled tasks, and stop application writes. Record the time.
- Final sync: let replication catch up, then verify zero lag and compare checksums or row counts on critical data.
- Decision point 2, data verified: if counts do not match, resume service at the recovery site and investigate. Do not cut over with unexplained differences.
- Switch roles: promote the primary through the controlled switchover path and demote the recovery copy to standby.
- Redirect: update DNS, load balancers, global traffic managers and partner routes; confirm certificates and allowlists.
- Smoke test: run scripted business transactions end to end, including logins, payments or orders, integrations and batch jobs.
- Decision point 3, accept or roll back: if smoke tests fail within the agreed window, reverse the switchover to the recovery site, which still holds current data.
- Re-protect: re-establish replication from the primary to the recovery site so DR protection is restored. Until this completes, you have no DR.
- Reconstitute: take a full backup of the restored primary, clean up temporary resources and emergency access, return media and close the change.
- Lessons learned: after-action report and plan updates within an agreed period.
Templates for the failover side are in the Disaster Recovery Runbook Template; extend them with these steps.
Testing
Failback is the least tested part of most DR programmes, which is why so many organisations stay on scaled-down recovery infrastructure for weeks. Test it on the same cycle as failover.
| Test type | What it proves about failback | Frequency |
|---|---|---|
| Tabletop | Decision points, owners and criteria are understood | Annually and after major change |
| Isolated round trip | Reverse replication, rewind or rebuild and switchover work on a test copy without touching production | Each release of the DR tooling |
| Component failback | A single database or application tier can switch back and forth cleanly | Quarterly for critical tiers |
| Full round trip | Production fails over, runs at the recovery site, then fails back with real data | At least annually for the highest-tier services |
- Run at the recovery site long enough: a round trip of a few minutes hides problems such as certificate expiry, log volume, batch schedules and drift. Run for at least a full business cycle where risk allows.
- Write real data: generate transactions at the recovery site and verify they all arrive at the primary.
- Measure: time each runbook step and compare with the business's tolerance for the failback outage.
Test design, scoring and evidence are covered in the Disaster Recovery Testing Guide.
Measurement
- Failback duration: minutes of user-facing downtime at cutover against the target.
- Data loss on failback: transactions lost or reconciled by hand (target zero).
- Time on recovery site: days from failover to completed failback, per incident and test.
- Unprotected window: hours between cutover and re-protection completing.
- Round-trip test coverage: share of tier 1 services with a successful failback test in the last 12 months.
Framework mapping
| Control area | NIST SP 800-53 Rev. 5 | NIST CSF 2.0 |
|---|---|---|
| Failback documented in the contingency plan | CP-2 | RC.RP-01 |
| Alternate site operations and return | CP-7 | RC.RP-01 |
| Data integrity before and after cutover | CP-9, CP-10(2) | RC.RP-03, RC.RP-05 |
| Reconstitution and end of recovery | CP-10 | RC.RP-05, RC.RP-06 |
| Testing the round trip and improving the plan | CP-4 | ID.IM-02 |
| Communicating the return to normal | CP-2 | RC.CO-03 |
Common failure patterns
- Reconnecting the old primary: letting a diverged primary rejoin replication without a rewind or rebuild, which overwrites recent data or corrupts the standby.
- No fencing: the old primary restarts automatically after power returns and serves stale data to some users while others hit the recovery site.
- Forgetting the TTL: DNS records left at long TTLs keep clients on the recovery site for hours after cutover, splitting writes.
- Tearing down DR too early: decommissioning the recovery environment before the primary has run cleanly, leaving no rollback and no DR.
- Losing DR-period changes: patches, firewall rules and secret rotations applied at the recovery site never reach the primary, so security regresses at cutover.
- Emergency access left behind: break-glass accounts and copied keys stay active long after the incident closes.
Practitioner checklist
- Add a failback section to every tier 1 DR plan with its own runbook, owners and decision points.
- Define fencing for each primary so it cannot accept writes after failover.
- Document the rewind, flashback or rebuild method per data platform, with its prerequisites enabled in advance.
- Plan reverse replication bandwidth and expected initial sync time.
- Adopt the failback criteria table and hold a recorded go or no-go meeting.
- Keep the recovery site able to resume as primary until the primary has run cleanly for an agreed period.
- Re-protect immediately after cutover and track the unprotected window.
- Unwind emergency access and rotate secrets shared during the incident.
- Run a full round-trip test at least annually for the highest-tier services.
- Record failback duration, data loss and lessons learned after every test and real event.
Standards and references
- NIST: SP 800-34 Rev. 1, Contingency Planning Guide for Federal Information Systems
- NIST: SP 800-53 Rev. 5, Security and Privacy Controls (CP family)
- NIST: Cybersecurity Framework 2.0
- PostgreSQL: pg_rewind documentation
- Oracle: Managing Oracle Data Guard role transitions
- AWS: Elastic Disaster Recovery, performing a failback
- Microsoft: Fail back Azure VMs to the primary region
Related NHI Mgmt Group resources: Business Continuity and Disaster Recovery Guide · Cloud Disaster Recovery Strategies · Disaster Recovery Testing Guide · Active-Active vs Active-Passive