UnderHost
Knowledgebase Docs

Backup best practices for web hosting

How often to back up, what to include, where to store copies, and how to test restores. The 3-2-1 backup rule applied to web hosting.

On this page

A good backup strategy follows the 3-2-1 rule: 3 copies of your data, on 2 different media, with 1 copy off-site. Applied to web hosting, this means: the live server, a local computer backup, and a cloud storage copy.

The 3-2-1 rule for web hosting

CopyWhereExample
1st (live)Your hosting servercPanel / VPS files and databases
2ndLocal computer or NASDownloaded cPanel backup or rsync copy
3rd (off-site)Cloud storageBackblaze B2, Amazon S3, Google Drive

How often to back up

Site typeRecommended frequency
Static / rarely updatedMonthly or after each update
Blog or informational siteWeekly
WordPress with regular posts/commentsDaily
E-commerce / orders placed dailyMultiple times per day (database at least hourly)

What to include

  • All website files-public_html and any application files
  • All databases-especially critical for WordPress, WooCommerce, or any CMS
  • Email-if you store important business email on the server
  • DNS zones-useful if you ever need to migrate servers
  • SSL certificates-only if using custom/paid certs; Let's Encrypt certs are auto-renewed

Test your restores

A backup you've never tested is an unknown. Periodically (at least quarterly):

  1. Take a fresh backup
  2. Restore it to a staging environment or test subdomain
  3. Verify the site works correctly from the restored copy

This confirms the backup is complete and uncorrupted, and that you know the restore process before an emergency.

Always back up before major changes

Before any of the following, take a fresh backup:

  • WordPress core, plugin, or theme updates
  • PHP version changes
  • Site s or DNS changes
  • Custom code deployments
  • Database schema changes
Was this article helpful?

Implement backup strategy now

Don't wait for a disaster. Set up automated backups following the 3-2-1 rule.

Related articles

Back to Backups