Skip to content

Website Backup Guide: A Strategy That Won't Let You Down

A practical guide to website backups: what to back up (files + database), the right frequency, the 3-2-1 rule, off-site backups, backup methods (host/plugin/manual), and most importantly, restore testing, with tables and checklists.

Hostingطارق سمير31 min read
Illustration of a website copied to a disk, a cloud and a distant location, representing a reliable backup strategy
On this page

Most site owners discover the value of backups at the worst possible moment: after a failed update broke the site, a hack wiped the files, a human error deleted the database, or a hardware failure hit the server. At that moment regret is useless; what helps is a single sound, tested backup. This article is a practical reference that builds a backup strategy that won't let you down: exactly what to back up, how often, where to store it, which method to use, and how to make sure the backup can actually be restored before you need it.

Why are backups a necessity, not an option?

Many people assume their host "keeps a copy for them," that their site is "too small to be worth the trouble," or that hacks "only happen to the big players." These three assumptions are exactly what makes a disaster painful when it strikes. Backups are not insurance against one rare scenario; they are a safety net against a wide range of predictable, everyday failures.

What could suddenly destroy your site?

The danger doesn't come from just one direction. The following table summarizes the most common causes of data loss and how a backup protects you from each. Notice that most of them have nothing to do with "professional hackers"; they are routine mistakes:

CauseHow it happensDoes a backup protect you?
Human errorDeleting a file/table, a wrong edit, overwriting contentYes: it restores the state before the error
Failed updateA plugin/theme/core update breaks the siteYes: you return to before the update
Hacking and malwareCode injection, backdoors, file encryptionYes: you restore an earlier clean backup
Server hardware failureDisk damage, data center outageYes, if the backup is off-site
Plugin conflictsA conflict that breaks the database or the front endYes: you restore to before the conflict
Hosting expiry/disputeAccount suspension, subscription expiry, dispute with the providerYes, if the backup is outside the server
RansomwareEncrypting files and demanding a ransomYes: you ignore the ransom and restore

Who really owns the backup? You, not your host

Many hosts offer backups as a "courtesy service," but on most cheap plans they are not a contractual obligation. Read the terms of service carefully: you will find phrases like "backups are the customer's responsibility" or "we do not guarantee the availability of a restorable backup." Even when host backups are available, they are usually on the same server, meaning they go down with the server if its hardware fails, or they may be deleted along with your account if it is hacked. The golden rule: treat host backups as a convenient complementary layer, but always keep your own backup outside the server, and never rely on the host alone.

Choosing a host that offers regular, scheduled backups is an important factor in the decision from the start. If you are still comparing, see the guide on how to choose a reliable hosting company to learn what to ask about the backup and retention policy.

What exactly should you back up? Files + database

By far the most common mistake is backing up only one part. A dynamic site (such as WordPress and WooCommerce) consists of two inseparable halves: files on the file system, and a database that holds the content and settings. Backing up the files alone gives you an "empty shell," and backing up the database alone gives you "content without a front end." Neither one restores a working site.

Components of a full backup

The following table details what the backup must include, why, and what can safely be ignored:

ComponentIncludesEssential?Note
Core files (CMS)The core WordPress/platform filesRecommendedThey can be downloaded again, but backing them up makes restoring faster
ThemesThe current theme and its modificationsYesYour custom modifications can't be recovered from anywhere else
PluginsAll plugins and their settingsYesSome are paid/custom and hard to reinstall
UploadsImages, files, mediaYes: criticalUsually the heaviest part; can't be recovered if lost
Configuration filewp-config.php or its equivalentYesContains connection details and keys
DatabasePosts, settings, users, ordersYes: criticalThe entire heart of a dynamic site
Server files.htaccess, nginx, cronRecommendedRestore the site's behavior and redirects
Email (if hosted on the server)MailboxesAs neededMay need a separate backup
Cache and temporary filesCache files, large logsNoExclude them to reduce the backup size

Static files vs. dynamic sites

Not all sites are equal. A static site (HTML/CSS/JS only, no database) is backed up simply by archiving its folder, and restoring is just a matter of uploading the files. A dynamic site, on the other hand, needs both halves, and they should be in sync as much as possible: a database backup taken long before or after the file backup can cause conflicts (for example, a database that points to images that don't exist in the file backup). The more active the site (a store taking orders), the more important it is to keep the two halves in sync, and this is where backup tools that capture the files and the database in a single operation excel.

Why is the uploads folder the most critical part?

Of all the site's components, the uploads folder deserves your greatest care, and for a fundamental reason: every other component can be recreated. The core can be downloaded again, plugins can be reinstalled, and the theme can be installed once more. But an image a visitor uploaded two years ago, a file a customer attached to an order, or the media your articles have been built on over the years: if these are lost, no copy of them exists anywhere else. The disaster here is irreversible. So before anything else, make sure the backup method you rely on includes the entire uploads folder, and test this explicitly by restoring an old image and checking that it appears. Many misconfigured setups exclude this folder because it is "too big," leaving your most valuable asset unprotected.

Exclude what isn't worth backing up

Just as you take care over what you back up, take care over what you exclude. Temporary cache files, huge log files, old safety copies stored inside the site, and the temporary files of some plugins all inflate the backup without adding any restore value. Excluding them shrinks the backup's size, duration and storage cost, and reduces the chance of the job failing because it runs out of space or times out. The rule: back up what can't be recreated, and exclude what is generated automatically. This balance between completeness and efficiency is what keeps a backup strategy sustainable over the long term instead of collapsing under its own weight.

How often should you back up your site? A frequency table

There is no single answer. The right frequency is determined by two concepts from disaster recovery: RPO (the maximum amount of data, measured in time, you can afford to lose) and RTO (the maximum time you can afford to be down before you're back). A store that receives an order every few minutes can't afford to lose a whole day of orders, while a brochure site that doesn't change from month to month doesn't need daily backups.

Let's illustrate the two concepts with a concrete example. If your site is backed up once every 24 hours, your RPO is 24 hours: in the worst case you could lose a full day of data that came in after the last backup. Can your store accept losing a whole day of orders? Probably not. RTO is a different question: how many hours can your business tolerate the site being down during a restore? Your answers to these two questions, not random guesswork, are what determine both the frequency and the backup method. The smaller the RPO you need, the higher the frequency you need, and perhaps continuous incremental backups; the smaller the RTO you need, the faster and better-tested your restore method has to be.

Frequency by site type

Use the following table as a starting point, then adjust it to how often your site actually changes. The numbers are approximate ranges:

Site typeRate of changeSuggested backup frequencyRetention period
Active online storeContinuous ordersEvery 1–6 hours (or real-time for orders)30–90 days
News site/magazineSeveral posts a dayDaily (1–2 times)30–60 days
Blog/content siteA few posts a weekDaily to weekly30–60 days
Company brochure siteRare updatesWeekly to monthly30–90 days
Membership/community siteDaily user interactionDaily30–90 days
Development/staging siteDepends on the workBefore every major change7–30 days

Scheduled backups vs. backups before changes

A regular (scheduled) frequency protects you from sudden failures, but it isn't enough on its own. Make this your fixed rule: take a full manual backup before any risky operation, such as a core update, a major plugin upgrade, editing the theme directly, running a database query or migrating the site. This "safety copy before the leap" has saved countless sites from updates that broke them. And when you plan to move your site between servers, a full, tested backup is an absolute requirement; see the guide to migrating WordPress without downtime for the details of a safe migration.

The 3-2-1 rule: the backbone of any strategy

The 3-2-1 rule is the global gold standard for data protection. It is simple enough to apply right away, and strong enough to withstand most disaster scenarios. It states: 3 copies of your data, on 2 different types of media/locations, with at least 1 copy off-site. The rule was born from accumulated practical experience in data recovery: it turned out that most cases of total loss happen when all the copies sit in one basket (one medium, or one location), so a single failure is enough to wipe them all out. The rule breaks up this fatal concentration by spreading the risk across three independent axes.

Breaking down the rule: why these exact numbers?

Each number in the rule addresses a different kind of failure. The original copy can get corrupted, so you need a second copy. Two copies on the same medium can fail together, so you need a second medium. Two media in the same location can be lost together (fire, a hack, a data center failure), so you need a remote copy. The table shows what each element protects against:

ElementMeaningProtects against
3 copiesThe original + two backupsCorruption of one copy, a failed backup job
2 mediaTwo different media (e.g., server + cloud)Failure of an entire media type
1 off-siteA copy geographically distant from the serverA site-level disaster: fire, a hack, host failure

A worked example for a WordPress site

To apply 3-2-1 to a typical site: the first copy is the host's daily backup (on the server, for quick restores); the second is a backup made with a plugin/script and uploaded automatically to object storage (such as an S3-compatible service) with a different provider; and the third is a monthly backup that you download and keep locally or on an external drive. That gives you 3 copies, on two media (server + cloud), with at least one off-site. Notice that this arrangement strikes a balance: speed from the server copy, and safety from the remote copy.

Now let's look at these three layers visually. Each layer protects against a failure the others don't:

Three layers of safe backupsSnapshotOff-siteApplicationServer snapshotFull off-site backupApplication backupQuick restoreOf the whole serverProtects againstServer failureFiles + databaseKept separately
Three layers of protection: a quick snapshot, a full off-site backup outside the server, and an application/database-level backup.

How do you build multiple backup layers?

Relying on a single backup source is a common mistake: if that one method fails (a license expires, the job stops, the storage fills up), you are left unprotected without knowing it. A strong strategy builds independent layers, each working through a different mechanism, so the failure of one doesn't mean the failure of all.

LayerMechanismFrequencyRole
Quick snapshotA server/hosting-level snapshotDaily or more oftenQuick restore of the whole server
Full off-site backupA plugin/script that uploads to a remote cloudDaily to weeklyProtects against failure of the server itself
Application-level backupManually exporting the files + databaseWeekly to monthlyA portable backup you can move anywhere

Why aren't snapshots enough on their own?

A server snapshot is convenient and fast, but it isn't a full backup in the strict sense: it is usually tied to the same infrastructure, so if the underlying storage fails, the snapshot may go down with it. It also captures the state "as is," including any hack or data corruption present at the moment of the snapshot. So treat it as an excellent quick-restore layer, but don't make it a substitute for a full off-site backup that you can move to a completely different provider when needed.

Independence is the heart of the idea

What makes multiple layers stronger than the sum of their parts is independence: when each layer works through a different mechanism, in a different location and with different permissions, it becomes almost impossible for a single failure to bring them all down at once. Imagine the opposite: three backups all taken by the same plugin, stored in the same account, with the same permissions. One compromise of the panel, one plugin bug, or one full disk wipes them all out, as if you had a single backup under three names. So when you design your layers, ask of each one: "If the other layer failed completely, would this one survive?" If the answer is no, they are really one layer, not two. Deliberate diversity in tools, locations and permissions is what turns backups from a formality into real protection.

Where should you store backups?

Where you store backups matters as much as making them. A backup kept on the same disk that might fail, or in the same account that might be hacked, gives you a false sense of security. Imagine you backed up your site meticulously every night for a whole year, then an attacker broke into your hosting account and deleted the site and its backups together because they were in the same place: a year of discipline lost in an instant because the backups weren't in a separate location. This is exactly what the following rules prevent. The table compares common storage options:

Storage locationAdvantagesDisadvantagesSuitable for
Same serverFast, free, instant restoreGoes down with the server/hackQuick restores only (never on its own)
Object storage (S3-compatible)Remote, cheap, automated, durableNeeds initial setupThe core off-site layer
Personal cloud storageEasy, familiar interfaceSpace limits, less automationSmall sites
External/local driveFull control, no monthly costManual, prone to damage/lossA periodic remote copy
Dedicated backup providerManaged, retention and multiple copiesMonthly costAnyone who wants complete peace of mind

Golden rules for choosing a storage location

Follow three non-negotiable rules. First, at least one copy must be with a provider/location completely different from your server (truly off-site, not another folder on the same disk). Second, access to the backup storage must be separate from the site's permissions: if an attacker compromises the site, they must not be able to delete your backups (for example, by enabling immutability/versioning in the cloud). Third, encrypt sensitive backups, especially if they contain customer data: the database may hold personal information that must be protected in transit and at rest.

Backup methods: a comprehensive comparison

There are four main backup methods, and each has its place. The best approach in practice is to combine them in layers, as we've seen, but first let's understand each method on its own:

MethodHow it worksAdvantagesDisadvantagesBest for
Host backups (cPanel/panel)The backup wizard in the control panelBuilt in, easy, no setupUsually on the server, limited controlQuick restores, beginners
Backup pluginA plugin that schedules and uploads automaticallyAutomation, off-site upload, one-click restoreDepends on the site itself, may weigh it downWordPress, non-technical users
Manual backup (command line)tar + mysqldump by handFull control, precise, no dependenciesNeeds expertise, easy to forgetTechnical users, VPS
Dedicated backup serviceAn external provider that manages everythingManaged, reliable, multiple retentionMonthly costCritical sites

Backing up with the host's wizard (cPanel)

The simplest method if your hosting has a cPanel panel: from the "Backup" or "Backup Wizard" section, you can generate a full backup that includes the files, databases and email, or partial backups (Home Directory, databases only, and so on). The most important step after generating it is to download the backup and store it outside the server, not leave it there. Many panels also let you schedule uploads to a remote destination (FTP/cloud).

To secure this process, make sure the cPanel panel itself is well protected, because anyone who compromises the panel can delete your backups. See the guide to securing cPanel step by step to set up two-factor authentication and permissions before relying on it as a backup layer.

Backing up with a plugin (for WordPress)

WordPress backup plugins give non-technical users powerful automation: they schedule backups, upload them automatically to a remote destination (object storage, personal cloud storage, and so on), and allow one-click restores from inside the dashboard. When choosing one, prefer a plugin that supports off-site uploads, incremental backups to save space, flexible scheduling, and reliable, tested restores. Its fundamental drawback is that it runs from inside the site: if the site breaks completely, the plugin may break with it, so don't make it your only layer.

Manual backups from the command line

For technical users and VPS owners, manual backups offer the highest degree of control and precision. The first half is backing up the files by archiving and compressing them:

bash
# Back up all site files to a compressed, dated archive
tar -czf backup-files-$(date +%F).tar.gz /var/www/html

The second half is exporting the database with mysqldump:

bash
# Export the database to an SQL file
mysqldump -u DB_USER -p DB_NAME > backup-db-$(date +%F).sql

# Compress the output directly to save space
mysqldump -u DB_USER -p DB_NAME | gzip > backup-db-$(date +%F).sql.gz

To move backups to a remote server/location efficiently (an incremental transfer that sends only what changed), use rsync:

bash
# Sync the backup folder to a remote server over SSH
rsync -avz --delete /backups/ user@offsite-host:/remote/backups/

To make these commands run automatically, combine them in a script and schedule it with cron to run at night, then send its output to off-site storage with rsync or a cloud tool. This method offers the most control, but it requires disciplined monitoring so that it doesn't fail silently.

Backup checklist

Use this list as a yardstick for how complete your strategy is. If you can't tick an item, there is a gap worth fixing:

ItemDone?Why it matters
The backup includes the files and the database☐Half a backup won't restore the site
At least one off-site copy outside the server☐Protects against server failure/hacks
The 3-2-1 rule is applied☐Coverage against multiple failures
Backups are scheduled and automatic☐They don't depend on human memory
A manual backup before every major change☐A safety net for risky updates
A notification when a backup job fails☐Exposes silent failures
A sufficient retention period (several previous backups)☐A hack may be discovered late
The backup storage is protected and separate from the site☐Prevents an attacker from deleting your backups
Sensitive backups are encrypted☐Protects customer data
A successful periodic restore test☐Proves the backup can be restored

Restore testing (an untested backup is not a backup)

This is the most important section of the entire guide, and the one most often neglected in practice. Thousands of sites take regular backups for years, then discover when disaster strikes that the backups are corrupted, incomplete or unrestorable: a truncated SQL file, a damaged archive, a backup without the uploads folder, or a restore procedure nobody knows. A backup you have never tried to restore is not a backup; it is an unproven assumption.

The problem is as much psychological as it is technical: simply seeing "Backup completed successfully" in the control panel gives a sense of security that makes us stop asking questions. But "backup completed" only means the process finished without a visible error, not that the resulting backup is actually restorable. The gap between the two is where disasters hide. A database file may finish exporting and then get corrupted during upload without anyone telling you. An archive may be written incompletely because space ran out for a moment. A setting may have been excluding a vital folder for months without you knowing. The only way to uncover these errors before disaster strikes is to actually attempt a restore and see the site working with your own eyes. Anything else is blind trust in a chain of assumptions.

How do you test a restore safely?

Never test a restore on the live site. The safe way is to restore the backup in a separate environment (a staging site, a temporary subdomain or a local server), then check that everything works:

  1. Create an isolated environment (staging or local) that doesn't touch the live site.
  2. Restore the latest full backup into it (files + database).
  3. Update the connection details if needed (database name/user/host).
  4. Browse the site: the home page, an inner page, an image, a form, a login, a cart (for a store).
  5. Record how long the restore took (this is your real RTO).
  6. Document the steps in a short runbook that someone else can follow under pressure.

A periodic testing schedule

Make testing a habit, not an emergency event. The table suggests a rhythm based on how important the site is:

Site typeRestore test frequencyTest scope
Store/critical siteMonthlyFull restore + check orders and payments
Moderately active siteEvery 1–3 monthsFull restore + thorough browsing
Low-activity siteEvery 3–6 monthsFull restore + basic check
After any major infrastructure changeImmediatelyVerify that backups still work

Common restore scenarios

Restore steps differ depending on the nature of the failure. The table matches each scenario with the most suitable approach:

ScenarioSuggested approachWarning
An update broke the siteRestore the latest backup from before the updateIdentify the cause of the failure before updating again
Hack and code injectionRestore a clean backup from before the hackChange all passwords and keys afterward
Content deleted by mistakeRestore only the database, if possibleAvoid overwriting new, intact content
Complete server failureRestore the off-site backup on a new serverAlways keep a remote backup for exactly this
Moving/migrating the siteRestore the full backup on the new hostKeep the files and database in sync
Partial database corruptionRestore the damaged tables from the backupTry it on a copy before applying it live

Expert tip: don't write over the disaster

The biggest mistake in an emergency is rushing to restore directly over the current state. Before any restore, first take a backup of the current, broken state: you may need it later to extract new data that came in after the last good backup (orders, comments, sign-ups). A blind restore can wipe out hours or days of recent data that wasn't in the backup. Take a breath, capture the current state, then restore in an orderly way.

Common backup mistakes

These mistakes recur even among careful site owners, and each one can completely cancel out the value of your backups:

MistakeWhy it's dangerousSolution
Relying on host backups aloneThey may be on the server and go down with itAdd your own off-site backup
Storing the backup only on the serverLost if the server fails or is hackedApply the 3-2-1 rule
Backing up the files without the databaseWon't restore a working siteBack up both halves together, in sync
Never testing a restoreA corrupted backup is discovered when disaster strikesTest regularly in a separate environment
Keeping only one backupA hack may be discovered weeks laterKeep several previous backups
Ignoring backup failure notificationsSilent failure leaves you exposedEnable failure alerts
Manual backups that depend on memoryForgotten when you're busyAutomate everything with scheduling
Unencrypted backups of sensitive dataCustomer data leaksEncrypt sensitive backups

Troubleshooting backup and restore problems

When a backup or restore stalls, here are the most common problems and their quick fixes:

ProblemLikely causeSolution
Backup fails because space runs outThe disk filled up with old backupsDelete old ones, enable incremental backups, upload off-site
The backup times outA large site + limited resourcesSplit the backup, or use the command line instead of a plugin
A corrupted SQL file during a restoreAn interruption during export/uploadExport again, and verify the file's integrity before relying on it
A large restore failsServer upload limitsRestore from the command line/SSH instead of the browser
The site works but images are missingThe uploads folder wasn't backed upMake sure the backup always includes media
Broken internal links after a restoreOld URLs in the databaseUpdate the URLs safely (search-replace)
The backup works locally but not on the serverDifferent connection details/pathsEdit the configuration file and database paths

Expert tip: monitor backup size and growth

Backups that grow without limit are a silent problem: they eat up space until the job suddenly fails. Enable incremental backups (backing up only what changed) wherever possible, and exclude unnecessary files (cache, logs, and the previous backup files themselves, so they don't multiply). Watch the trend in backup size every month: a sudden jump in size may point to a problem (duplicate media, runaway logs, or even files planted by a hack).

How do you make backups a system that doesn't depend on you?

The most technically robust strategy collapses if it depends on a person remembering to carry it out. The end goal is for backups to become a system that runs on its own and raises the alarm when it fails, not a task on your to-do list that gets forgotten in the first busy week. This rests on three pillars: automation, monitoring and documentation.

Automation: remove the human factor

Every manual step in the backup process is a potential point of failure. Schedule everything that can be scheduled: periodic backups, uploading them off-site, and automatically deleting old ones. Make the only manual intervention required the safety backup before major changes, and even that can be tied to a fixed habit. Once the process is fully automated, your absence, busyness or forgetfulness no longer threatens your protection. A backup that depends on "I'll remember to take it" is a backup that won't be taken at the moment you need it most.

Monitoring: don't trust, verify

The most dangerous kind of backup failure is silent failure: the job stopped working weeks ago while you think it's running. The solution is simple but decisive: enable a notification on failure for every backup job, and if possible add a periodic success confirmation. Many tools send an email or message on failure, so enable this and never ignore it. And make it a habit, once a month, to open the storage destination and check with your own eyes that the latest backups actually exist, with reasonable sizes and recent dates. A minute of checking each month is far cheaper than discovering that your last good backup is three months old.

Documentation: restoring under pressure

A disaster is no time to improvise. Write a short restore runbook that answers specific questions: Where are the backups? How does the person in charge access them? What are the restore steps, in order? Who gets notified? Roughly how long does the process take? Someone other than you must be able to follow this runbook, because disaster may strike when you're unavailable. Keep it somewhere accessible even if the site is completely down; don't store it inside the site itself. Good documentation turns a restore from a panic attack into a calm, routine procedure.

Conclusion

Backups are not a technical task to put off; they are an insurance policy on your entire digital presence. A strategy that won't let you down rests on simple but strict principles: back up the files and the database together, set the frequency according to how often your site changes rather than by guesswork, apply the 3-2-1 rule with at least one copy outside the server, build multiple independent layers instead of a single source, and secure your backup storage so that anyone who breaks into your site can't reach it. But the real difference between those who survive and those who lose everything comes down to one item: testing restores regularly. An untested backup is a comforting illusion until it is exposed when disaster strikes. Apply the checklist in this guide, automate what can be automated, and make restore testing a monthly habit, and you will sleep soundly whatever happens to your server.

Choosing reliable hosting with a clear backup policy reduces this whole burden from the start. If you are comparing hosting types and what each offers in terms of backups, the guide to shared, VPS and managed hosting explains the differences and the level of responsibility in each.

Frequently asked questions

Does a backup include the database automatically? Not always. Some methods back up only the files, and some only the database. Make sure your backup includes both halves together, because one without the other won't restore a working site. A "full" backup in most panels and plugins includes both, but always verify.

How many backups should I keep? Keep several previous backups, not just one, for two reasons: the latest backup may be corrupted, and, more importantly, a hack may not be discovered for weeks, so you need a backup from before the hack. A retention period of 30 to 90 days is enough for most sites.

Are host backups (cPanel) enough on their own? No. Host backups are convenient for a quick restore, but they are usually stored on the same server, so they go down with it if it fails or is hacked, and they may not be contractually guaranteed. Treat them as a complementary layer, and always keep your own off-site backup outside the server.

What is the difference between a snapshot and a full backup? A snapshot captures the state of the server/storage at a point in time and allows a quick restore, but it is usually tied to the same infrastructure and may go down with it. A full off-site backup can be moved to any other provider entirely, so it is more robust against major disasters. Use both together.

How often should I back up my site? It depends on how often it changes: an active store every few hours, a news site daily, a blog daily to weekly, and a brochure site weekly to monthly. The general rule: the more data you can't afford to lose, the more often you back up.

Where do I store backups safely? At least one copy must be outside the server, with a completely different provider/location (object storage, cloud storage, or a remote external drive). Avoid storing the backup only on the same disk or account, since they may fail or be hacked together.

How do I test that my backup can actually be restored? Restore it in a separate environment (a staging site or a local server), not on the live site, then browse the pages, images, forms and login to make sure everything works. Repeat this test monthly for critical sites and every few months for the rest.

Do I need a backup before every update? Yes, absolutely. Take a full backup before any core, plugin or theme update, and before any database change or migration. This "safety copy before the leap" is far cheaper than rebuilding a site broken by a failed update.

My site was hacked: which backup do I restore? Restore a clean backup from before the date of the hack, not the latest backup (which may contain the malicious code). This is why you need several previous backups. After restoring, change all passwords and keys, update everything, and investigate the cause of the vulnerability before bringing the site back online.

Do backups slow down my site? The backup process can consume resources temporarily, especially plugins on large sites. Reduce the impact by scheduling backups during low-traffic hours, using incremental backups, or backing up at the server/command-line level instead of with a plugin for heavy sites.

Should I encrypt my backups? Yes, if they contain sensitive data (customer data, orders, personal information). The database usually holds things that must be protected, so encrypt backups in transit and at rest, especially on cloud destinations, to avoid a data leak if an unauthorized party gets access to them.

Sources

Frequently asked questions

Does a backup include the database automatically?

Not always. Some methods back up only the files, and some only the database. Make sure your backup includes both halves together, because one without the other won't restore a working site. A "full" backup in most panels and plugins includes both, but always verify.

How many backups should I keep?

Keep several previous backups, not just one, for two reasons: the latest backup may be corrupted, and, more importantly, a hack may not be discovered for weeks, so you need a backup from before the hack. A retention period of 30 to 90 days is enough for most sites.

Are host backups (cPanel) enough on their own?

No. Host backups are convenient for a quick restore, but they are usually stored on the same server, so they go down with it if it fails or is hacked, and they may not be contractually guaranteed. Treat them as a complementary layer, and always keep your own off-site backup outside the server.

What is the difference between a snapshot and a full backup?

A snapshot captures the state of the server/storage at a point in time and allows a quick restore, but it is usually tied to the same infrastructure and may go down with it. A full off-site backup can be moved to any other provider entirely, so it is more robust against major disasters. Use both together.

How often should I back up my site?

It depends on how often it changes: an active store every few hours, a news site daily, a blog daily to weekly, and a brochure site weekly to monthly. The general rule: the more data you can't afford to lose, the more often you back up.

Where do I store backups safely?

At least one copy must be outside the server, with a completely different provider/location (object storage, cloud storage, or a remote external drive). Avoid storing the backup only on the same disk or account, since they may fail or be hacked together.

How do I test that my backup can actually be restored?

Restore it in a separate environment (a staging site or a local server), not on the live site, then browse the pages, images, forms and login to make sure everything works. Repeat this test monthly for critical sites and every few months for the rest.

Do I need a backup before every update?

Yes, absolutely. Take a full backup before any core, plugin or theme update, and before any database change or migration. This "safety copy before the leap" is far cheaper than rebuilding a site broken by a failed update.

My site was hacked: which backup do I restore?

Restore a clean backup from before the date of the hack, not the latest backup (which may contain the malicious code). This is why you need several previous backups. After restoring, change all passwords and keys, update everything, and investigate the cause of the vulnerability before bringing the site back online.

Do backups slow down my site?

The backup process can consume resources temporarily, especially plugins on large sites. Reduce the impact by scheduling backups during low-traffic hours, using incremental backups, or backing up at the server/command-line level instead of with a plugin for heavy sites.

Should I encrypt my backups?

Yes, if they contain sensitive data (customer data, orders, personal information). The database usually holds things that must be protected, so encrypt backups in transit and at rest, especially on cloud destinations, to avoid a data leak if an unauthorized party gets access to them.

Related

Read next