Website Backups Explained
A website backup is a saved copy of everything needed to rebuild a site: the files (code, themes, plugins, uploaded images) and the database (posts, orders, user accounts) together. It should be stored somewhere separate from the live server, taken on a regular automated schedule, and tested occasionally by actually restoring it, since an untested backup is only a guess at being safe.
The two parts every full website backup needs
A website is really two things stored separately: files (the application code, theme, plugins and any uploaded images or documents sitting on disk) and the database (the content, orders, comments and user accounts stored in tables). Backing up only one half leaves a site unrecoverable; restored files with an old database show missing recent orders and comments, and a restored database with old files can reference plugins or images that no longer exist. A full website backup always captures both at roughly the same point in time.
Types of backups
| Type | What it stores | Trade-off |
|---|---|---|
| Full backup | Every file and the entire database | Simple to restore, but larger and slower to create each time |
| Incremental backup | Only what changed since the last backup | Faster and smaller, but restoring needs the full backup plus every increment since |
| Database-only backup | Just the database tables, not files | Good for frequent, lightweight snapshots of fast-changing content, not a complete recovery by itself |
| Server snapshot | An image of an entire VPS or server at one instant | Fast full-server recovery, but usually tied to that specific hosting provider's tools |
How often to back up, and where to keep the copies
Backup frequency should roughly match how much work you can afford to lose. A simple brochure site that rarely changes may only need a weekly backup, while an active store or membership site taking orders every hour needs daily or even continuous backups of the database, paired with less frequent file backups since code and themes change far less often than orders. Wherever backups are taken, store at least one copy somewhere other than the live server itself, such as cloud storage, a separate account, or downloaded locally, so a server failure, hack or billing problem cannot destroy the live site and its only backup at the same time.
Common ways to create backups
- Hosting control panel tools: cPanel, Plesk and many managed dashboards include a built-in backup wizard that bundles files and database together.
- CMS plugins: tools such as UpdraftPlus for WordPress schedule backups and push copies to cloud storage automatically.
- Command-line scripts: a scheduled job can archive files and dump the database on a timer.
- VPS or server snapshots: many VPS providers offer one-click snapshots of the entire server disk, useful before a risky change.
# A simple manual backup on a Linux server
tar -czf site-files-backup.tar.gz /var/www/html
mysqldump -u dbuser -p database_name > site-db-backup.sql
Testing a backup is not optional
A backup file sitting untouched for months can be incomplete, corrupted, or missing a step that was quietly broken by a server update. The only real way to know a backup works is to restore it, ideally to a separate test environment, and confirm the site actually loads with the expected content. Doing this periodically, not just assuming success because a backup job ran without an error message, is what turns a backup from a hopeful habit into an actual safety net.
Frequently asked questions
What is included in a full website backup?
A full website backup includes both the site's files, such as code, themes, plugins and uploaded images, and the database, which holds content, orders and user accounts. Both are needed together to fully restore a working site.
How often should I back up my website?
It depends on how often the site changes and how much lost work you can tolerate. A static brochure site may only need weekly backups, while an active store or membership site often needs daily or more frequent backups of the database.
Where should I store my website backups?
Keep at least one copy somewhere separate from the live server, such as cloud storage, a different hosting account, or a local download, so a server failure, hack or account issue does not wipe out the site and the only backup together.
What is the difference between a website backup and a database backup?
A database backup saves only the data stored in tables, such as posts and orders. A website backup is broader and includes that data plus the site's files, which are both required to fully recover a working site.
How do I know if my backups are actually working?
Periodically restore a backup to a separate test site or server and confirm it loads correctly with the expected content. A backup job that reports success is not the same as a backup that has been proven to restore properly.
Can I restore just part of a website backup, like one page or one order?
It depends on the tool. Some backup plugins and database tools support restoring individual tables or files, but many built-in hosting backup systems only restore the entire site at once, so check your specific tool's options before relying on a partial restore.
Related topics
- What Is a Database? Databases
- What Is a Database Table? Databases
- What Is a VPS (Virtual Private Server)? VPS & Cloud
- What Is a Hosting Provider? Hosting Basics
- Cloud Storage vs. Web Hosting Hosting Basics