Join our Newsletter — 33% off our NHI Course
Home› Guides› Failback Planning: Returning to Primary After DR Without…
Guide Resilience & Recovery

Failback Planning: Returning to Primary After DR Without a Second Outage

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, under the editorial direction of Lalit Choda Updated 27 November 2026 12 min read
On this page

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.

CauseWhat happensPrevention
Divergent primaryThe old primary accepted writes after the failover point, so its data no longer matches the new primaryFence the old primary at failover; rewind or rebuild it as a standby
No reverse replicationChanges made at the recovery site exist nowhere else; switching back loses themSet up replication from recovery to primary as soon as the primary is available
Root cause not fixedThe primary fails again under full load, or the attacker is still insideRoot cause sign-off and, after a cyber incident, a clean-environment assurance
Configuration driftChanges made at the recovery site (patches, firewall rules, secrets, feature flags) never reach the primaryFreeze changes during DR or record every change for replay
Rushed timingFailback during business hours with no rollback windowSchedule failback as a change in a low-traffic window
Dependencies forgottenDNS, load balancers, certificates, IP allowlists at partners and batch jobs still point at the recovery siteDependency 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_hints on or data checksums, full_page_writes on, 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.

ProductFailback mechanism as documented
AWS Elastic Disaster RecoveryReplicates 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 RecoveryReprotect 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 GuardReinstate the failed primary as a standby, then return roles with a switchover, which involves no data loss
PostgreSQLpg_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.

CriterionEvidenceOwner
Root cause resolvedProblem record closed; for cyber incidents, a clean-environment sign-off from the incident leadIncident or problem manager
Primary infrastructure healthyHardware, storage, network and power checks passed; monitoring green for an agreed soak periodInfrastructure lead
Data fully resynchronisedReplication lag at or near zero; row counts or checksums match for critical tablesDatabase or storage lead
Capacity verifiedPrimary sized for current load, including growth during the DR periodPlatform lead
Configuration parityEvery change made at the recovery site replayed or consciously droppedChange manager
Security parityPatches, EDR, logging, certificates and secrets current on the primary; privileged accounts reviewedSecurity lead
Dependencies readyDNS TTLs lowered in advance; partner allowlists, VPNs and integrations confirmedApplication owners
Rollback path openRecovery site kept running and able to resume as primaryDR coordinator
Business approvalWindow agreed; users and customers notifiedService 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.

  1. 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.
  2. Decision point 1, go or no-go: review every criterion in the table. Any red item means no-go and a new date.
  3. Quiesce: drain traffic at the recovery site, stop batch jobs and scheduled tasks, and stop application writes. Record the time.
  4. Final sync: let replication catch up, then verify zero lag and compare checksums or row counts on critical data.
  5. 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.
  6. Switch roles: promote the primary through the controlled switchover path and demote the recovery copy to standby.
  7. Redirect: update DNS, load balancers, global traffic managers and partner routes; confirm certificates and allowlists.
  8. Smoke test: run scripted business transactions end to end, including logins, payments or orders, integrations and batch jobs.
  9. 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.
  10. Re-protect: re-establish replication from the primary to the recovery site so DR protection is restored. Until this completes, you have no DR.
  11. Reconstitute: take a full backup of the restored primary, clean up temporary resources and emergency access, return media and close the change.
  12. 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 typeWhat it proves about failbackFrequency
TabletopDecision points, owners and criteria are understoodAnnually and after major change
Isolated round tripReverse replication, rewind or rebuild and switchover work on a test copy without touching productionEach release of the DR tooling
Component failbackA single database or application tier can switch back and forth cleanlyQuarterly for critical tiers
Full round tripProduction fails over, runs at the recovery site, then fails back with real dataAt 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 areaNIST SP 800-53 Rev. 5NIST CSF 2.0
Failback documented in the contingency planCP-2RC.RP-01
Alternate site operations and returnCP-7RC.RP-01
Data integrity before and after cutoverCP-9, CP-10(2)RC.RP-03, RC.RP-05
Reconstitution and end of recoveryCP-10RC.RP-05, RC.RP-06
Testing the round trip and improving the planCP-4ID.IM-02
Communicating the return to normalCP-2RC.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

Related NHI Mgmt Group resources: Business Continuity and Disaster Recovery Guide · Cloud Disaster Recovery Strategies · Disaster Recovery Testing Guide · Active-Active vs Active-Passive

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick both boxes to continue.