Skip to content
IT glossary
DevOps and cloudUpdated December 3, 2026

Backup

Резервное копирование

A backup is a saved copy of data that you can restore after a failure, corruption, or accidental deletion. Backups can cover anything from a single file to an entire database.

Also known as: бэкап, point-in-time recovery

What a backup protects against

Suppose a deployment corrupts customer records. A standby database may keep the service available if the primary server fails, but it will normally receive the same bad updates. A backup gives you an earlier version to recover from. Replication and backups are complementary: one helps keep the system running, while the other gives you a way back to a saved state.

How backups work

A full backup contains everything in scope. An incremental backup captures changes since the previous backup, so a restore typically needs the full backup and every incremental backup up to the chosen recovery point. A differential backup captures changes since the last full backup. Restoring it typically takes just that full backup and the chosen differential. The trade-off is between how much data you copy now and how much work you do at restore time.

Teams back up databases, uploaded files, virtual machine disks, and configuration. For a live database, use a database-aware tool or a snapshot procedure the database supports. Copying files while writes are in progress can leave you with files that do not fit together. Keep copies outside the failure domain of the source: a snapshot on the same storage system may help with accidental deletion, but it may not survive the loss of that system. Set a retention policy and restrict who can delete backups.

Example: recovering deleted orders

A team takes a physical base backup of PostgreSQL at midnight and continuously archives its write-ahead log (WAL). At 2:37 p.m., a faulty job commits a transaction that deletes orders. The team restores the base backup to a separate instance and replays WAL to a point just before that transaction committed. After verifying the recovered rows, they can copy them back without rolling the entire live database back and discarding valid later writes.

This is point-in-time recovery (PITR), not another name for a backup. A backup supplies the starting state; the log supplies the changes after it. If a required WAL segment is missing, replay cannot reach a recovery point beyond that gap.

What interviewers look for

A typical question gives you two targets: a recovery point objective (RPO), the maximum acceptable data loss measured in time, and a recovery time objective (RTO), the target time to get the service back. A nightly backup alone cannot meet a 15-minute RPO: a failure just before the next backup could cost almost a day of changes. For an hour-long RTO, estimate the time to retrieve and restore the backup, replay logs, verify the data, and reconnect the application.

A successful backup job is not proof that recovery works. Run restore drills in a separate environment, check that the application can read the restored data, and measure how long the whole process takes.