How to Back Up a WordPress Website Yourself

The Venbit TeamUpdated November 8, 20269 min read

The short answer

To back up a WordPress website, save the database, the wp-content folder, wp-config.php and .htaccess, and keep one copy away from your host. A plugin such as UpdraftPlus does it on a schedule, and File Manager plus phpMyAdmin does it by hand. A backup counts only after you restore it to a test copy and watch the site load.

What to know

  • A backup you have never restored is a guess. Restore it to a test copy once and watch the site load.
  • A full backup is the database plus the wp-content folder, wp-config.php and .htaccess. WordPress core can be downloaded again.
  • Host backups come with limits. Bluehost's help page calls its service a courtesy and gives no backups to suspended accounts.
  • CISA's 3-2-1 rule: 3 copies, 2 kinds of storage, 1 copy off-site.
  • Updates, two-factor login and a cap on login attempts make a restore less likely to be needed.

A WordPress backup is two things: the database, which holds your pages, posts and settings, and the files in wp-content, which hold your theme, plugins and uploads. Your host can take them, a plugin like UpdraftPlus can send them to Google Drive or Dropbox on a schedule, and you can copy them by hand with File Manager and phpMyAdmin. All three are below. Then comes the step that proves any of them works: restoring the copy onto a test site to see what comes back. The drill that follows walks through it. If your site is down right now and you need a restore today, call (425) 314-1415.

Work through it

Test your restore

Tick a line only when you have seen the answer with your own eyes. Your ticks stay in this browser, so you can come back and finish later.

0 of 9 done

Where the copy lives
The drill itself
Afterwards

What a full WordPress backup contains

WordPress keeps a site in two places: files on the server and a database beside them. WordPress.org's backup guide says you need both to fully restore a typical site. Downloading the site folder does not capture the database, because the database is stored separately from the web files.

PieceWhat is in itWithout a backup
DatabasePages, posts, menus, comments, and the settings of your theme and pluginsGone. This is your content, and no download replaces it.
wp-content folderYour theme, your plugins and everything in the media library: photos, PDFs, logosUploads and any theme someone edited are gone. Stock plugins can be downloaded again.
wp-config.php and .htaccessThe database name and login, and the rewrite rules behind your page addressesRebuildable only if you can still get the database name and password from your host.
WordPress core (wp-admin and wp-includes)The WordPress software itselfReplaced by a fresh download from WordPress.org.
The pieces of a WordPress site, and whether you can replace each one without a backup

Three ways to take the backup

Set up the first two and keep the third for the moments that call for it. A host copy and a plugin copy cover each other's weak spots, and the manual copy is the one to make by hand before an update or a move. WordPress's own plugin guide says to have a current backup before updating plugins.

What your host's backups cover

Look in your hosting control panel for a section called Backups. In cPanel it sits under Files, then Backup. Whatever you find there, read what the host promises, because the promise can be small. Bluehost's help page calls its backup service a courtesy, says Bluehost is not liable for files or data stored on your account, and says backups are not given to suspended or terminated accounts. Namecheap's cPanel guide says a full cPanel backup on its Stellar and Reseller packages is restored by emailing support, while Stellar Plus and Stellar Business owners restore it themselves in cPanel. Your host's terms will differ from both. Get answers to these before you lean on them:

  • How many days back do the copies go, and does each new run overwrite the last?
  • Where are they stored, and can you download one to your own computer?
  • Who performs a restore, you or support, and does a restore request carry a fee?
  • What happens to the copies if the account is suspended, or you move to another host?

Use a plugin like UpdraftPlus to send copies off-site

UpdraftPlus lists more than 4 million active installs on WordPress.org. The free version can send copies to Google Drive, Dropbox, Amazon S3 and FTP, among others. Destinations such as OneDrive, Backblaze and SFTP belong to the paid version.

  1. 01In wp-admin go to Plugins, then Add New, search for UpdraftPlus, click Install Now and then Activate.
  2. 02Find UpdraftPlus. Newer versions put it in the left-hand WordPress menu. Older ones, and the vendor's own tutorial, use Settings, then UpdraftPlus Backups.
  3. 03On the Settings tab, find Choose your remote storage, pick Google Drive, Dropbox or another destination, follow the prompt to authorize it and save. Set the schedule and the number of backups to retain on the same tab.
  4. 04Switch to the Backup / Restore tab and click the blue Backup Now button. In the pop-up, leave both the database and the files ticked, choose to send the backup to remote storage, then click Backup Now again.
  5. 05Open the Google Drive or Dropbox folder and look at what arrived. If it is empty, the remote storage is not working yet.

If you leave remote storage off, the backup stays in wp-content/updraft on the same server, which puts it inside the site it is meant to protect.

Make a manual copy with File Manager or SFTP and phpMyAdmin

A manual copy needs no plugin and works on a site whose dashboard is down. It has two halves, taken separately.

  1. 01Open wp-config.php and find the DB_NAME line. That is the database you will export in step 3.
  2. 02Download the files. In your host's File Manager, or in an SFTP client such as FileZilla or Cyberduck, copy down the wp-content folder, wp-config.php and .htaccess. WordPress's own lesson recommends SFTP over plain FTP because SFTP encrypts your password in transit. The .htaccess name starts with a dot, so switch on hidden files if it does not appear.
  3. 03Export the database. Open phpMyAdmin from your host's control panel, click your database in the left pane, open the Export tab, leave Quick selected with the format set to SQL, and click Go. WordPress.org points out that this export holds the database only and none of your images.
  4. 04Put both halves in one folder named with the date, for example backup-2026-11-08, and move that folder to your off-site storage.

Use the 3-2-1 backup rule

CISA, the US government's cybersecurity agency, tells small businesses to follow the 3-2-1 rule: 3 copies of important files, on 2 different types of storage media (its example is a hard drive and the cloud), with 1 copy stored off-site, away from your business location. On a WordPress site that works out like this:

CopyWhere it livesWhat it covers
1The live site on your hostEverything, until the host has a bad day
2Your plugin's copy in Google Drive or DropboxThe cloud copy, and also the off-site one
3A download on your own computer or an external driveA second kind of storage that depends on no online account
3-2-1 for one WordPress site

Your host's own copy is a useful extra, but it sits in the same place as the site, so a suspension or a shutdown takes both. If that has already happened to you, read what to do when your hosting company shuts down.

On schedule, WordPress.org's backup guide says a small site with few new posts can back up weekly and a busy one daily, and every site should be backed up before an upgrade. CISA asks for the ability to roll back at least seven days. Keep more than that when a problem could sit unnoticed for weeks, since every copy made after a break-in includes it.

Where to run the restore drill

Restore the copy somewhere other than your live site, so a failed restore costs nothing. A staging copy from your host is the easiest place, if your host offers one. The alternative is a second WordPress install on a subdomain such as test.yourdomain.com.

Either way the copy lives at a different web address, and WordPress keeps its own address (the siteurl and home options) inside the database. References to the old address stay there after a move until someone replaces them. UpdraftPlus's restore guide covers restoring to the site's original location and URL and sends a move to another address to a separate migration guide. If the drill stalls at that point, you have found the weak spot before a real failure did, and it is a good moment to call us.

How to avoid needing the backup

A backup gets you back after something goes wrong, and a few settings make that happen less. WordPress.org's hardening guide is the source for most of this section.

Updates

Existing WordPress sites receive minor core updates on their own, and WordPress.org strongly discourages switching that off. Plugins are separate. In Plugins, then Installed Plugins, the Automatic Updates column has an Enable auto-updates link for each one, and you can tick several and use the bulk link. Take the backup first. Plugins you no longer use should go: click Deactivate, then Delete, since the hardening guide says to delete a plugin you are not using. The reasons an outdated plugin is dangerous are in what happens if you don't update WordPress plugins.

Admin accounts

The hardening guide warns against easily guessed usernames such as admin or webmaster. Create a new administrator with a different name, log in as it, and delete the old one. WordPress will ask which user should inherit that account's posts. Then open Users, then All Users, and click Administrator above the list: everyone shown can change anything on the site, so move former developers and former staff to a lower role or delete them. Give each administrator a long generated password from a password manager and use it nowhere else.

Two-factor login

The hardening guide recommends two-step authentication. The Two Factor plugin describes itself as developed and supported by a community, and it shows more than 100,000 active installs. It adds codes from an authenticator app, emailed codes and backup codes, and it marks the app and the backup codes as recommended. Turn it on for every administrator, store the backup codes somewhere other than the phone, then log out and back in to check it works.

Limiting login attempts

WordPress.org's brute-force guide puts rate limits on /wp-login.php and /xmlrpc.php at the host or CDN. It says a security plugin can throttle login attempts when your host offers no such limit, at the cost of running inside PHP while a site is under attack, and it suggests a CAPTCHA or Turnstile challenge on the login page. Moving the login address cuts noise and should not be your only defense. Ask your host whether it limits login attempts before you add a plugin to do it. If you do add one, the hardening guide names Wordfence and Shield as examples of firewall plugins.

When to get help

Run the drill once yourself and you will know what the job involves. Hand it over when the site takes leads or orders every day and nobody opens the dashboard each month, when the drill failed and you cannot see why, or when the site has been hacked. After a hack the order matters: find how they got in, then restore, because a backup taken after the break-in restores the break-in. How to tell if your website has been hacked lists the signs.

Our maintenance plans include daily backups stored off-site, along with updates, security and monitoring, for WordPress and other platforms. Call (425) 314-1415 from Mill Creek and we go through where your backups live and whether they would restore.

Check if your backup works

Tell us where your backups live and we will go through them with you and say what we find.

Get help from Venbit

More website guides

Every question in this series, from Fix website problems.

Symptoms & emergencies17
What happens if...11
Plans & hiring1
Ownership & switching11
Platform-specific3
Seattle & local1

Questions & Answers

  • The database, which holds your pages, posts, menus, comments and plugin settings, plus the files: the wp-content folder with your theme, plugins and uploads, and wp-config.php and .htaccess. WordPress.org says you need both parts to fully restore a typical site. WordPress core can be downloaded fresh from WordPress.org.

  • Some hosts do, and their terms differ. Bluehost's help page calls its backup service a courtesy and says it gives no backups to suspended or terminated accounts. Read your own host's policy for the number of days kept, where the copies sit and who restores them, and keep a copy of your own off the host.

  • Restore it to a staging copy or a test subdomain, never over the live site first. Log in to wp-admin on the copy, click through your main pages and the media library, send your contact form and confirm the message arrives, and note how long the restore took. CISA's guidance also calls for scheduled recovery tests.

  • WordPress.org says a small site with few new posts can back up weekly and a busy site daily, and every site should be backed up before an upgrade or a move. Match the schedule to how much work you would lose between copies.

  • Follow the 3-2-1 rule from CISA: 3 copies, on 2 different types of storage, with 1 copy off-site. For WordPress that means the live site, a plugin copy in Google Drive or Dropbox, and a download on your own computer or an external drive.

  • A backup plugin gets you back after a problem. It does nothing to stop the break-in, so pair it with updates, a changed admin username, two-factor login and a limit on login attempts. Fix the way in before you restore, or the same hole is open again.

Keep reading

Let’s grow your business

Tell us about your business. We would love to hear from you. Or call us at (425) 314-1415.

Join the local businesses that grow with us

  • Pawn Fathers
  • Protectee
  • Pinnacle Energy Services
  • See Clearwater Beach
  • Q Blinds
  • Domaine des Florines
  • Track & Field AI
  • Edgewater Commercial Park
  • Colour Play Salon
  • Houston Hurricane & Security