A reliable website backup plan starts with restore targets: set an RPO for acceptable data loss and an RTO for acceptable downtime, then match backup type, frequency, storage, and testing to those numbers. Get this wrong and a plugin update, ransomware event, host failure, or bad deployment can turn a short outage into lost orders, failed member logins, missing form submissions, and content you cannot recover. This guide maps backup types, schedules, storage, retention, security controls, and a repeatable restore runbook.

Restore-first planning ties backup choices to a real recovery result. Instead of asking only how to copy files, start with the incident the site must survive, the last acceptable restore point, and the maximum downtime the business can absorb. Everything else follows from that.

Start with restore requirements

Use RPO to set acceptable data loss

RPO, or recovery point objective, is the maximum acceptable gap between the failure and the latest usable backup. If a store can only afford to lose 15 minutes of orders, daily backups already miss the mark. Frequency has to match the rate of change, not the calendar alone.

A brochure site updated once a month may tolerate a 24-hour RPO. A blog publishing several times a day may need backups every hour during working hours. Ecommerce and membership sites often need tighter targets because orders, subscriptions, account changes, and form submissions can arrive all day.

Event-based backups matter as much as scheduled ones. Run an extra backup immediately before plugin updates, theme changes, launches, bulk imports, checkout changes, and migrations. Those are high-risk change events with a clear rollback point.

Use RTO to set acceptable downtime

RTO, or recovery time objective, is how quickly the site must be usable again. A low RTO pushes the plan toward faster restore paths: fewer manual steps, clearer dependency handling, prewritten runbooks, and backup types that do not require rebuilding long chains under pressure.

If the site can be down for four hours, a slower offsite restore may be acceptable. If the site must be back in about 30 minutes, the plan may need recent local snapshots plus offsite copies, documented credentials, and a prebuilt staging or standby environment.

RTO also decides what “restored” means. For some sites, a temporary read-only version is acceptable. For others, checkout, member login, and transactional email must work before the incident is considered closed.

Map requirements by site type and change rate

Backup lag and slow restores cause different damage on different sites: stale brochure copy on a low-change CMS, missing articles on a busy newsroom, lost orders and inventory drift on a store, broken access or progress on a membership platform, and missing files or broken references on media-heavy stacks.

  • Brochure CMS site: Usually lower change rate. Daily backups and pre-update backups are often enough if no critical lead forms depend on same-day data.
  • Blog or news site: Publishing cadence matters. Frequent content updates push RPO down to a few hours or less on busy days.
  • Ecommerce store: Orders, payments, inventory, coupons, and customer accounts change all day. Tight RPO and tested checkout verification are mandatory.
  • Membership or learning site: User access, progress, enrollments, and protected content must restore cleanly. Login and entitlement checks matter as much as page rendering.
  • Media-heavy site: Uploads may live partly outside the web root, often in object storage. The plan must include those assets and reference integrity after restore.

Picture a store with an RPO of about 15 minutes and an RTO of about 60 minutes during a seasonal sale. That requirement rules out weekly full backups and manual restores. It points toward frequent database protection, pre-change restore points, offsite storage, and a restore checklist that verifies checkout before reopening traffic.

What should a website backup include?

A complete website backup includes the website files, the database, and any live dependencies outside the main web root such as object storage assets or configuration data. Those copies need to match the same application state, so code, uploads, settings, and external assets reflect the same restore point instead of a mix of different times. Otherwise a restore can boot and still fail with missing media, broken plugins, or stale content.

Website files

Files are more than the visible theme folder. A recovery-capable file backup usually includes themes, templates, plugins or modules, custom code, uploads, media, configuration files, server-side scripts, rewrite rules, and environment-specific files that affect routing or application startup.

For many CMS stacks, restored files may need to be in place before the database is activated. If the application expects a certain plugin directory, theme structure, or upload path and those files are absent, the restored database can point to content the application cannot render.

If the live site uses object storage for uploads, backup scope must include those assets or a separate versioned copy of that bucket. CDN caching does not count as backup. It is a delivery layer, not an authoritative archive.

Database backup

For most CMS platforms, the database is MySQL or MariaDB. It usually contains posts, pages, settings, users, comments, form entries, products, orders, customer records, memberships, and other application data that changes much more often than code files.

Database and file backups need time alignment. A database dump from 3:00 p.m. paired with file uploads from midnight can restore into a site that points to images that were uploaded later, plugin code that no longer matches the schema, or templates missing from the older file set. Full-site snapshots or coordinated backup jobs cut that mismatch risk.

Dependencies outside the web root

Many recovery failures come from assets nobody remembered to include. Common misses include media on object storage, cron definitions, webhook endpoints, environment variables, SSL material, redirect rules, and migration-specific configuration files.

Say your site stores 80 GB of product images in object storage while the web server keeps only transformed thumbnails. Restoring just the web server backup brings the homepage back, but category pages show broken images and product detail galleries fail. The backup was technically successful and operationally incomplete.

How often should you back up a website?

Back up a website as often as needed to stay inside the site’s RPO, then add event-based backups before risky changes. A low-change brochure site may be fine with daily coverage, while ecommerce, membership, and high-volume publishing sites often need hourly or near-continuous protection for the database plus scheduled file backups.

Match frequency to publishing and order volume

Frequency should track what changes and how expensive it is to lose it. Files may change only during deployments, while the database changes all day.

  • Brochure site: Daily full-site backup, plus a backup before updates or design changes.
  • Blog or newsroom: Database every 1-4 hours during publishing windows, daily file backup, pre-update backups.
  • Ecommerce: Database every 5-15 minutes if order volume justifies it, daily file backup, pre-release backups, and extra snapshots during peak promotions.
  • Membership or LMS: Frequent database protection for logins, enrollments, progress, and billing events; daily file backup and pre-update backups.
  • Media-heavy site: Daily file backup may be too coarse if uploads are constant. Protect uploads or object storage on a schedule that matches ingest rate.

Add event-based backups for updates, launches, and migrations

Scheduled backups miss the moments that break sites most often. Take a backup immediately before plugin and theme updates, platform upgrades, deployment batches, bulk imports, URL changes, search-replace operations, and server migrations.

Suppose a migration changes the site URL and file paths at 11:00 a.m. A 2:00 a.m. backup may be recent on paper but useless for a quick rollback because it predates the migration state by nine hours of content changes. A pre-migration restore point fixes that gap.

Set retention tiers from daily to monthly versions

Retention is version planning. A practical baseline for many sites is about 14 daily backups, 8 weekly backups, and 12 monthly backups. Higher-risk sites may extend daily retention to 30 days, while low-change sites may shorten it to control storage costs.

That tiering handles different failure patterns. Daily versions help with yesterday’s bad update. Weekly versions help when corruption went unnoticed for several days. Monthly versions help with slow discovery problems, legal holds, or seasonal rollback needs.

Back up multisite networks at the right scope

A multisite backup only works if it matches the recovery goal: one sub-site, or the whole network. The supporting guide explains how to decide which tables and files belong in each scope, so you avoid restoring over another site’s content, users, menus, or media. That matters most when a single sub-site changes, because a full-network backup can be unnecessary risk, while a too-small backup can leave out shared settings that a restore still needs.

For a practical walkthrough of what to include, when to back up the entire network, and how to restore one site safely, see multisite backup scope.

Which backup type fits your recovery plan?

The right backup type depends on restore speed, storage budget, and failure tolerance. Full backups are simplest to restore, incremental backups use less storage but depend on an intact chain, and differential backups sit between the two with easier restores than incrementals in many setups.

Full backups

A full backup captures all selected data in one point-in-time copy. That usually makes restore logic simplest because one backup contains everything needed for that restore point.

The tradeoff is size. Full backups consume the most storage and can take longer to transfer offsite, especially for media-heavy sites. They still make sense for weekly anchor points, pre-migration snapshots, and lower-change sites where storage impact is manageable.

Incremental backups

Incremental backups capture changes since the last backup, whether that last backup was full or incremental. Storage use is lower, and backup windows can be shorter.

The restore cost is dependency on the chain. To recover a given point, the full backup and every required incremental after it must be available and uncorrupted. One missing link can break the restore path.

Differential backups

Differential backups capture changes since the last full backup. They grow larger until the next full backup, but the restore path is often simpler than incremental because recovery typically needs the last full backup plus the latest differential.

That makes differentials attractive when RTO matters more than absolute storage efficiency, especially for sites where a moderate amount of changed data accumulates between full backups.

Mixing types for practical recovery

Many sites work best with a mixed plan: a weekly full backup, daily differential backups, and frequent database-specific incrementals or snapshots. That gives a clean weekly anchor, quicker day-level restores, and tighter protection for the data that changes most.

Compare the restore consequences, not only the backup footprint. A small backup that takes too long to rebuild under pressure may be a poor fit for a low RTO.

Where should backups be stored?

Backups should be stored both near enough for fast recovery and offsite for disaster protection, but offsite copies are mandatory. Host-only storage can leave backups exposed to host outages, ransomware, account compromise, provider-level incidents, and accidental deletion within the same failure domain.

On-host copies and their limits

Host-level backups, control panel backups, and local snapshots can restore quickly because they avoid large transfers. They are useful for short RTO targets and rapid rollbacks after bad updates.

They fail together with production more often than many site owners expect. If the hosting account is suspended, the storage volume is corrupted, or an attacker deletes both live data and local backups, speed no longer matters.

Offsite storage and remote vaults

Offsite storage means the copy lives outside the production host and outside the same administrative blast radius where possible. Common choices include cloud object storage, remote backup vaults, or a separate backup service with independent credentials.

External storage should receive encrypted backups over encrypted transport. Access to delete backups should be more restricted than access to deploy code. Restore capability should also be assigned deliberately. Not every marketer or content editor should be able to overwrite production.

Versioning, immutability, and access separation

Versioning prevents one bad upload from overwriting the only usable archive. Immutability or write-once retention can help against ransomware and deliberate deletion where supported. Access separation means production administrators, backup administrators, and key custodians are not automatically the same people.

A common mistake is storing backup credentials in the same application config file copied into every archive. If the production server is compromised, the attacker may gain the keys to the backups too. Separate storage and separate secrets close that loop.

How do you restore a website from a backup?

Restore a website by choosing the correct clean restore point, rebuilding files and database in the right order, and verifying application functions before reopening traffic. Full-site restores, partial restores, and migrations each fail in different ways, so the runbook must account for file/database consistency, caches, media references, and plugin compatibility.

Restore workflow

  1. Identify the failure. Classify the incident first: bad deploy, corrupted database, hacked site, deleted media, failed migration, or plugin update failure. That determines whether a full-site restore, database-only restore, or file-only restore is safer.
  2. Select a clean point. Choose the latest backup that predates the failure and is known or likely to be untainted. For a hacked site, avoid restoring from a point taken after compromise if persistence or web shell risk exists.
  3. Prepare an isolated target. Restore first into staging or another isolated environment when time allows, especially after compromise or migration errors. This limits repeat damage and allows verification before production cutover.
  4. Restore files first. Put back themes, plugins, templates, uploads, custom code, and configuration files before activating the database if the application depends on file structure. This reduces plugin path errors, missing template calls, and media lookup failures.
  5. Restore the database. Import the matching MySQL or MariaDB backup that aligns with the selected file state. For partial restores, avoid mixing a newer database with older plugin schema or older uploads without checking compatibility.
  6. Reconnect external assets. Restore or reattach object storage, environment variables, scheduled tasks, webhooks, and redirect rules. Missing external dependencies commonly explain why a site loads but transactions or media still fail.
  7. Clear derived state. Purge page caches, object caches, opcode caches, and CDN caches where relevant. Rebuild generated assets or indexes if the application uses them, because stale cached data can hide or mimic restore failures.
  8. Verify before cutover. Test login, key pages, internal links, forms, media, redirects, SSL, and business-critical workflows. Only point live traffic back after the restored state passes the documented checks.

Partial-restore failure modes

Partial restores save time, but only when the scope is truly limited. Restoring just the database can break a site if the current plugin or theme files expect a different schema. Restoring just uploads can fail if media references in the database point to renamed paths or missing object storage keys.

Common failure modes include mismatched file and database versions, plugin conflicts after update rollback, broken media references, stale caches serving pre-restore output, failed search-replace during migration, and missing assets outside the web root.

Move a Site to a New Host Safely

If your backup is complete, the next step is restoring it on the new host, checking that files, database, and URLs all load correctly before you change DNS. That order matters because a rushed cutover can break logins, leave images missing, or send visitors to a partially restored site. The supporting guide explains the full process, from preparing the destination account and restoring the backup file to testing the site in a temporary preview and switching traffic only after everything works. See the website migration backup guide for the step-by-step sequence.

How do you verify a restore actually worked?

A website backups dashboard lists restore options for recent snapshots
Use recent restore points in staging to confirm logins, links, forms, and integrations work.

Verify a restore by testing it in staging or another isolated environment and checking both technical integrity and business-critical behavior. A homepage that loads is not enough, the process should confirm logins, links, media, forms, transactions, scheduled jobs, and any external integrations the site depends on.

Restore testing in staging or an isolated environment

Restore tests should be repeatable and documented. The point is to prove that the backup can be used, the credentials still work, the runbook is current, and the chosen retention points produce a functioning site.

  1. Schedule a test cadence. Test at least quarterly for lower-change sites and more often for ecommerce, membership, or frequently updated sites. Also test after major infrastructure changes, migration tooling changes, or backup policy changes.
  2. Restore to isolation. Use staging, a disposable recovery host, or another non-public environment. Block outbound emails and payment processing where needed so the test does not trigger customer-facing actions.
  3. Run the same runbook. Follow the documented restore steps exactly rather than improvised shortcuts. A runbook only has value if the tested procedure matches the one that will be used during an incident.
  4. Record timings. Measure how long the restore and verification actually take against the site’s RTO target. If the test exceeds the target, the plan needs changes even if the restore eventually succeeds.
  5. Log failures and fixes. Document every missing secret, broken path, or manual correction. Then update backup scope, credentials handling, and the checklist so the same issue does not reappear in production.

Post-restore checks

  • Admin login: Confirm authentication works for the right roles.
  • Front-end rendering: Check homepage, key templates, and dynamic sections.
  • Internal links and redirects: Test canonical pages and custom redirect rules.
  • Media loading: Verify images, downloads, and object storage assets.
  • Forms: Submit and confirm storage or delivery behavior.
  • Ecommerce: Test cart, checkout, tax or shipping logic, and order creation where safe.
  • User accounts: Confirm registration, password reset, and membership access if used.
  • Cron jobs and webhooks: Verify scheduled jobs and inbound or outbound integrations.
  • SSL and analytics: Confirm certificate behavior and analytics tags if business-critical.

Checks by site type

Ecommerce stores need order creation and checkout checks. Membership sites need role-based access, subscription state, and login verification. Blog and newsroom sites need recent post integrity, category archives, and media embeds. Media-heavy sites should sample older and newer uploads from both local paths and object storage.

Restore readiness checklist

Incident scenario Backup type required Retention point required Storage location required Verification step required
Plugin update failure Pre-update full backup or coordinated file plus database snapshot Immediately before the update window Fast local snapshot for rollback plus offsite copy Admin login works, affected plugin screens load, no fatal errors on key pages
Corrupted database Consistent database backup aligned with current file set Latest clean point before corruption began Offsite encrypted storage and optional recent local copy for speed Recent posts, settings, forms, orders, and user accounts match expected state
Hacked site Known-clean full backup including files and database Point before initial compromise, not merely before detection Offsite storage outside production account with separate credentials Malicious files absent, admin users reviewed, front-end and login clean after cache purge
Bad deploy Pre-deploy full backup or file snapshot plus matching database point Immediately before deployment Local snapshot for rapid rollback and offsite archive Template rendering, config values, and key conversion paths behave as before deploy
Deleted media File backup covering uploads or object storage versioning Point before deletion Offsite object storage or remote vault, plus local copy if available Deleted images or files load on live URLs and database references resolve correctly
Failed migration Pre-migration full backup with environment config and redirects Immediately before migration changes Offsite encrypted copy independent of both old and new hosts Internal links, search-replace results, redirects, SSL, and media paths all pass checks

How do you keep backups secure and compliant?

Keep backups secure and compliant by encrypting them in transit and at rest, separating backup access from production access, controlling who can restore, and enforcing a retention and deletion policy that matches legal, contractual, and operational needs. Security around backups is about custody and auditability, not encryption alone.

Encryption in transit and at rest

Backup archives and replication traffic should be encrypted while moving and while stored. Encryption at rest protects media if the storage account or physical device is exposed. Encryption in transit protects the copy path and credentials during transfer.

Key management matters. An encrypted archive with lost keys is unrecoverable, while keys stored carelessly in plain text defeat the point. Keep backup keys and production application secrets under separate control where possible.

Key custody, credential handling, and restore permissions

Decide who can create backups, who can delete them, and who can restore to production. Those should not automatically be the same people. Multi-factor authentication, role separation, and audit logs reduce the chance that one compromised account can erase both live data and recovery options.

Store backup service credentials outside the site codebase and outside routine content-management access. Review access after staffing changes, agency offboarding, or infrastructure handoffs.

Retention, deletion, and audit requirements

Retention must fit risk, cost, and any compliance obligations around customer records, transaction history, or regulated data. Keep documented daily, weekly, and monthly tiers, and define when old copies are deleted or made immutable.

Compliance needs vary, but the operational pattern is stable: know what data is in the backups, how long it stays there, who can retrieve it, and how deletion requests interact with retained archives.

Frequently asked questions

What is the best way to back up a website?

The best approach is a restore-first plan with coordinated file and database backups, automatic scheduling, pre-change backups, and mandatory offsite storage. For many sites, a weekly full backup plus more frequent database protection and tested restore runbooks gives a practical balance of speed, storage use, and recovery certainty.

Should backups be stored on the host or offsite?

Use both when possible, but never rely on host-only storage. Local or host-level copies can restore quickly, while offsite backups protect against host failure, ransomware, account compromise, and provider-level incidents. If only one location can be prioritized, offsite storage is the safer requirement.

What is the difference between full, incremental, and differential backups?

A full backup copies all selected data in one point-in-time set. An incremental backup copies changes since the last backup and needs the whole chain to restore. A differential backup copies changes since the last full backup and often restores faster than incremental with somewhat higher storage use.

How do I test whether my backups actually work?

Restore them into staging or another isolated environment on a documented schedule, then verify login, front-end pages, internal links, media, forms, and business-critical workflows like checkout or membership access. Record restore time against the site’s RTO and fix any missing secrets, assets, or manual workarounds.