Database Backup
DatabasesDatabase Backup is a point-in-time copy of a database that can be used to restore data after accidental deletion, corruption, failed updates, or server outages. Backups may capture the full dataset, only recent changes, or the transaction log needed to replay writes. They are stored separately from the live database and validated so recovery is predictable when needed.
How It Works
A database backup is created by exporting data (logical backup) or copying database files and storage blocks (physical backup). Logical backups typically produce SQL dumps or structured exports that can be imported into another server or database engine version, while physical backups copy the underlying files for faster restores when the environment is similar. Many managed database systems also support snapshots, which capture storage state at a moment in time.
To reduce data loss, backups are often combined with incremental backups and transaction logs (or write-ahead logs). A full backup provides a baseline, incrementals capture changes since the last backup, and logs allow point-in-time recovery by replaying transactions up to a chosen moment. Good backup workflows include encryption at rest, offsite storage, retention policies, and regular restore tests to confirm the backup is usable and the recovery time objective is achievable.
Why It Matters for Web Hosting
For hosting buyers, database backups directly affect downtime risk and how much data you can afford to lose. When comparing plans, look beyond whether backups exist and evaluate frequency, retention, offsite storage, and whether restores are self-serve or require support. Also confirm if backups cover only files, only databases, or both, and whether point-in-time recovery is available for critical applications like WordPress, ecommerce, and membership sites.
Common Use Cases
- Restoring a site after a failed plugin, theme, or application update corrupts tables
- Recovering from accidental deletion of posts, orders, users, or configuration records
- Rolling back after a compromised admin account changes content or injects malicious data
- Migrating a database to a new server or staging environment for testing
- Meeting internal or regulatory requirements for data retention and disaster recovery
Database Backup vs Database Replication
A database backup is primarily for recovery: it creates a restorable copy you can bring back after an incident, often with point-in-time options. Database replication is primarily for availability and scaling: it continuously copies changes to one or more replicas to reduce downtime and distribute reads. Replication does not replace backups because mistakes and corruption can replicate too; backups provide a clean rollback point independent of the live write stream.