Careeroza
Backup Types
Full, Differential, Incremental
| Type | Contains | Backup speed | Restore needs |
|---|---|---|---|
| Full | the whole database | slowest | just the full backup |
| Differential | changes since the last full backup | medium | full + latest differential |
| Incremental | changes since the last backup of any kind | fastest | full + every incremental in order |
| Log / WAL backup | the transaction log since the last log backup | fast, frequent | enables point-in-time recovery |
Logical vs Physical
| Logical backup | Physical backup | |
|---|---|---|
| What | SQL statements / data export | copy of the data files |
| Tools | mysqldump, pg_dump | Percona XtraBackup, pg_basebackup, SQL Server BACKUP, RMAN |
| Portable | yes, across versions and platforms | same version/platform |
| Speed on large DBs | slow to restore | fast |