Explain the difference between a full backup and an incremental backup.

Instruction: Define both types of backups and discuss their differences and use cases.

Context: This question tests the candidate's understanding of database backup strategies, including the purposes and practical differences between full and incremental backups.

Updated

Official answer

A full backup captures the complete backup scope under the tool's consistency protocol. An incremental backup stores changes relative to a specified earlier backup; a differential backup conventionally stores changes since a full backup. Product terminology and mechanisms vary, so name the engine and version.

If a full backup is followed by two dependent incremental backups, restoring the last point requires the full backup and every dependency needed to reconstruct it. Deleting an intermediate backup can make a later one unusable. Smaller backup volume can therefore trade off against a longer or more fragile restore process.

Backup snapshots alone do not provide recovery to every intermediate moment. For example, PostgreSQL point-in-time recovery uses a suitable physical base backup and the required continuous WAL history. PostgreSQL 18 also supports incremental base backups with additional reconstruction requirements; do not assume that feature exists in every older release.

Choose a strategy from recovery point/time objectives, change rate and retention. Verify checksums, keys, dependencies and actual isolated restores. Replicas can reproduce accidental deletion, so they are not a substitute for independent, tested backups.

Related Questions