Continuous data protection

On this page 7

Continuous data protection (CDP) is a method that captures every change to data as it is written and stores those changes in a time-ordered journal, so that a system can be restored to any point in time within a retention window. In backup & recovery for Servers, it sits at the far end of the protection spectrum, where the recovery point objective approaches zero.

Conventional backups protect data at intervals, such as nightly or hourly. CDP removes the interval: instead of asking which backup is the latest good one, an administrator chooses the exact second before a failure or corruption and rolls back to it.

How continuous data protection captures changes

Continuous data protection works by intercepting write operations and sending a copy of each one to a separate journal, usually on different storage. Each entry carries a timestamp and the block or file location, which allows the system to reconstruct the state of a volume at any moment by replaying or reversing entries.

Interception can happen at several layers of the stack, and the choice determines overhead, granularity and what can be protected. The table below shows the common capture points.

Capture layerMechanismTypical use
HypervisorI/O filter on virtual disksProtecting whole virtual machines
Operating system driverBlock-level filter driver on the hostPhysical servers and mixed workloads
Storage arrayJournaling inside the array or applianceLarge databases on shared storage
ApplicationTransaction log shipping or change streamsDatabases with native log support
File systemFile change notification and versioningFile servers and user shares
Where continuous data protection intercepts writes

Most implementations combine the journal with a periodic baseline copy. Recovery starts from the nearest baseline and then applies journal entries up to the chosen moment, which keeps restore times reasonable even when the journal covers several days.

True CDP and near-continuous protection

The industry distinguishes true CDP, which journals every individual write, from near-continuous protection, which takes very frequent snapshots or replication cycles. Both are marketed as continuous, yet they produce different recovery points and different storage costs.

PropertyTrue CDPNear-continuous protection
Recovery granularityAny write, often to the secondEach snapshot, often every 1 to 15 minutes
Typical RPOSecondsMinutes
Storage overheadProportional to write volumeProportional to changed blocks per interval
Performance impactContinuous small overhead on writesShort bursts at each snapshot
ComplexityJournal sizing and managementSnapshot scheduling and pruning
True and near-continuous protection compared

Neither variant is automatically better. True CDP is justified when losing even minutes of transactions is unacceptable, while frequent snapshots often meet business requirements at lower cost and simpler operation.

How CDP differs from other backup methods

CDP differs from full, incremental and differential backups mainly in when data is copied: continuously rather than on a schedule. It also differs from replication, because a plain replica mirrors changes immediately, including corruption and deletions, whereas a CDP journal preserves the history needed to step back before the damage.

MethodCopy frequencyPoint-in-time recoveryMain weakness
Full backupScheduled, complete copyOnly at backup timesLarge backup window
Incremental backupScheduled, changes onlyOnly at backup timesRestore chain dependency
SnapshotOn demand or scheduledOnly at snapshot timesOften on the same storage
Synchronous replicationEvery writeNo, mirrors current stateReplicates corruption instantly
Continuous data protectionEvery write, journaledYes, within retentionJournal size and cost
Continuous data protection and related methods

For this reason, CDP is best treated as one layer of a broader strategy. It complements, rather than replaces, offsite copies that satisfy the 3-2-1 backup rule and immutable backups that resist ransomware with administrative access.

Sizing the journal and setting retention

The journal size determines how far back recovery can reach, and it depends almost entirely on the write rate of the protected workload. A database that writes 50 GB of changes per day needs roughly that much journal capacity per day of retention, plus overhead for metadata and compression results that vary by data type.

Practitioners usually keep a short CDP window, commonly between a few hours and several days, and then convert older history into periodic recovery points. The following decision table summarizes typical choices:

SituationRecommended approachReason
Transactional database with strict RPOTrue CDP with 24 to 72 hours of journalRestores to the second before corruption
General virtual machinesNear-continuous snapshots every 5 to 15 minutesGood RPO at modest cost
File servers with user errorsFile versioning plus daily backupsFine granularity is rarely needed
Ransomware recovery planningCDP journal on isolated storageAllows rollback to just before encryption
Choosing a continuous data protection approach

Bandwidth to a remote journal is the other constraint. If the link cannot absorb peak write bursts, the journal falls behind and the effective RPO grows silently, so monitoring the replication lag is essential.

Limitations and common mistakes

Continuous data protection reduces data loss, but it does not guarantee consistent or usable recovery points. Several failure modes recur in practice:

  • Crash-consistent only: without application awareness, a restored database may need log recovery or may not start cleanly.
  • Journal on the same storage: a single array failure destroys both production data and its protection.
  • Undersized journal: heavy write periods shorten the retention window and remove expected recovery points.
  • Untested restores: the ability to pick any second is worthless if no one has rehearsed the procedure.
  • Write latency: synchronous journaling adds delay that latency-sensitive applications may not tolerate.

Regular restoration tests and clear ownership of the journal settings turn CDP from a feature on a data sheet into a reliable recovery capability.

In everyday language

Continuous data protection works like a security camera for your data. A normal backup is a photo taken once a night. If something goes wrong in the afternoon, you can only return to last night and lose everything since.

With continuous protection, every change is recorded as it happens. When a mistake or an attack occurs, you can rewind to the moment just before it and keep almost all of your work. The main idea is losing seconds instead of hours, at the price of more storage and careful setup.

Seen in the real world

A regional hospital runs its patient records database on two virtualized servers. Nightly backups alone would risk losing a full day of clinical notes, so the IT team enables continuous data protection at the hypervisor level with a 48-hour journal stored on a separate array in another building.

One morning at 10:42, ransomware begins encrypting the database files. Monitoring raises an alert within minutes, and the team isolates the affected servers. Using the journal, they select 10:41:30 as the recovery point, verify that the database starts cleanly in an isolated network, and bring it back into service.

The outcome is that the hospital loses about 90 seconds of records, which staff re-enter from paper notes, instead of an entire morning of patient documentation.