All three procedures create a copy, but protect against different types of damage; none replaces the other two.
Three procedures and what they protect against| Method | Protects against | Does not protect against | Primarily determines |
|---|
| Backup | Deletion, corruption, loss of the entire system | Data loss since the last backup | RPO via the interval between backups |
|---|
| Snapshot | Failed updates, user errors | Failure of the storage it resides on | Short RTO for rollbacks |
|---|
| Replication | Failure of a node or location | Incorrect write operations โ they are also transferred | Low RPO and short RTO |
|---|
A backup is a copy that is kept separate from the original and retained for a period. Its RPO is the interval between two backups, and its recovery takes longer the more data is restored.
A snapshot captures the state of a volume or datastore and usually resides on the same storage system. It is created and rolled back in seconds, but shares any damage to this system. A snapshot of a running database is also only crash-consistent if the application was not previously put into a consistent state.
Replication transfers every change to a second system. It keeps the RPO low, but transfers every write operation, even incorrect ones; the Private Cloud recovery page therefore explicitly states that none of its tiers replaces a backup.
A journal combines both advantages: a base backup and the continuous log of all transactions allow returning to any point in time still covered by the journal.
With ENTRONYX managed databases, for engines with a primary node and two or more nodes, a replica takes over the write role if the primary node fails, typically in under 30 seconds; your application must be able to reconnect for this.
three of the nine engines recover to the second, because they keep a continuous journal:
The others restore to their last backup, snapshot or export โ except for Apache Kafka, which retains events in the topic instead of recovering them. How far back the journal reaches per engine is shown in the table in the Daily full, journal in between section.