Portal
View All Blogs

How to Back Up Your Business Website So You Can Actually Restore It

A backup only matters if you can restore it. Learn what a complete website backup includes, how often to run it, where to keep it, and how to test it.

by GorkhaTech Team

Published 03 December 2026

Most business owners assume their website is backed up somewhere. Often it is, partly. The trouble shows up on the worst possible day: a hacked plugin, a failed update, or a hosting account that gets closed. That is when people discover the backup was missing the database, or was stored on the same server that just went down, or simply would not restore. This guide explains what a complete backup contains, how often to make one, where to keep it, and how to run a test restore so you know it works before you need it.

What a complete website backup includes

A website is not one thing. It is several pieces that have to come back together. If any piece is missing, you may get a site that looks broken, has lost recent orders, or cannot be reached at all. A complete backup covers four areas.

  • Files: the code, themes, plugins, images, PDFs and anything customers have uploaded. On a WordPress site, the uploads folder is easy to forget and impossible to recreate.
  • Database: the structured storage where most dynamic content lives, such as pages, blog posts, products, orders, form submissions and user accounts. Copying the files alone does not capture any of this.
  • Configuration: settings that live outside the main content, such as environment files with database passwords and API keys, web server settings, scheduled tasks (cron jobs), and SSL certificate details. Store secrets carefully, ideally encrypted or in a password manager rather than in plain text.
  • Domain and DNS records: DNS (the Domain Name System) is the directory that points your domain name to your server and your email provider. Keep a written or exported copy of every record, including A, CNAME, MX (email) and TXT records, plus a note of who your domain registrar is and how to log in.

The DNS piece surprises people because it is not on the server at all. But if your hosting changes or someone deletes a record by mistake, a saved copy lets you rebuild email and web routing in minutes instead of guessing.

How often to run backups

The right schedule depends on how much work you can afford to lose. Ask a simple question: if the site failed right now, how far back could we go without real harm? That answer sets your frequency.

  • A brochure site that changes a few times a month can usually be backed up weekly, plus a manual backup after any edit.
  • A site with a blog, frequent updates or contact forms you rely on is better served by daily backups.
  • An online store or booking system that takes orders all day may need database backups several times a day, because every lost hour is lost transactions.
  • Always take a fresh backup right before updating plugins, themes, the content management system or server software. Updates are one of the most common causes of breakage.

Also decide how long to keep old copies. Keeping several daily backups plus a few weekly and monthly ones helps when a problem, such as malware, went unnoticed for a while and the newest backups are already infected.

Where to store your backups

A backup stored on the same server as the website protects you from almost nothing. If the server fails, is compromised or the hosting account is suspended, the backup goes with it. A widely used guideline is the 3-2-1 rule: keep three copies of your data, on two different types of storage, with one copy offsite.

  • Use cloud storage that belongs to your business account, separate from your hosting company, so a problem with one provider does not take out both.
  • Make sure the business owns the storage account, not a former freelancer or agency employee.
  • Encrypt backups that contain customer data or passwords.
  • Where your storage provider supports it, turn on versioning or write protection so a hacker or a mistaken script cannot delete every copy.

If your host or a plugin handles backups automatically, that is a fine starting point. Just confirm it covers both files and database, and add one copy that lives somewhere you control. For developers managing a Linux server with a MySQL database, a basic manual backup looks like this:

DATE=$(date +%F)
tar -czf site-files-$DATE.tar.gz /var/www/example
mysqldump --single-transaction -u backup_user -p example_db | gzip > site-db-$DATE.sql.gz

The first command bundles and compresses the site folder. The second exports the database into a compressed SQL file. Both files then need to be copied offsite.

How to run a test restore

A backup you have never restored is a hope, not a plan. Schedule a test restore every few months and after any major change to your site or hosting. Do it on a staging site, which is a private copy of your website used for testing, never on the live site.

  • Pick a recent backup and download it from your offsite storage, not from the server. This proves the offsite copy is complete and readable.
  • Create an empty staging environment. Many hosts offer this, or a developer can set one up on a subdomain such as staging.yourbusiness.com.
  • Restore the files into the staging folder.
  • Create an empty database and import the database backup into it.
  • Update the configuration so the staging site uses the new database and the staging address instead of the live one.
  • Click through the site: home page, key pages, images, forms, the admin login, and for stores, products and recent orders.
  • Write down how long it took, what went wrong and what you had to look up. Those notes become your recovery checklist.

For the database step on the server example above, importing a compressed backup into a staging database looks like this:

gunzip < site-db-2024-01-15.sql.gz | mysql -u staging_user -p staging_db

Finally, check your DNS notes against what your DNS provider currently shows. If records have changed since you last saved them, update your copy.

The takeaway

A useful backup has four parts (files, database, configuration and DNS records), runs on a schedule that matches how often your site changes, and lives somewhere other than your web server. Most importantly, it has been restored at least once on purpose, so the real emergency is a routine you have already practiced. If you would like help setting up backups or running your first test restore, contact GorkhaTech.