How to back up a WordPress site comes down to copying two things: the database and the files in your WordPress folder. A backup plugin does both in one click, and the copy takes a few seconds on a small site.
We tested this in October 2026 on a WordPress 7.1.3 and WooCommerce 11.2 test store. We ran UpdraftPlus 1.26.8, made a manual backup with WP-CLI, and restored both to prove they worked. We did not test a hosting panel, because that needs a hosting account, so that part comes from the vendor’s docs.
This guide shows what a backup must include and four ways to make one. Then it covers offsite copies and a schedule, and ends with a restore test most guides skip.
What a WordPress Backup Must Include
A complete WordPress backup has two parts: the database and the files in your WordPress folder. The database holds your posts, pages, orders, comments and settings. The files hold your themes, plugins, uploads and the wp-config.php file that connects the site to its database.
The WordPress developer handbook says you need both to fully restore a typical site. A copy of the files alone loses every post, because the database lives in a separate system.

On our test store the database was 52 tables. Twelve belonged to WordPress core and 40 to WooCommerce and its Action Scheduler. The SQL export came to 1.6 MB, and the archive of wp-content, wp-config.php and .htaccess came to 36 MB.
WordPress core files are the one part you can skip. The WordPress.org download gives you a fresh copy, so most backup plugins leave core out. That also means a plugin may leave out wp-config.php, which we cover in the plugin method.
How to Back Up a WordPress Site: Four Methods Compared
Here is how to back up a WordPress site with each method: a plugin, your hosting panel, a manual download or WP-CLI. A plugin suits owners who want files, database and restore in one place. The other three give you more control and need more steps.

Pick by what you need after a failure. If you want a one-click restore, use a plugin. If your host already runs daily backups, use the panel for extra copies.
Manual downloads suit a one-off copy before a risky change. WP-CLI suits developers who deploy often and want a backup in a script.
Cost matters less than reliability here. UpdraftPlus is free for every step in this guide, and the manual and WP-CLI methods cost only your time. Its paid extras are incremental backups and more storage destinations, according to its WordPress.org listing.
A host’s backup tool depends on your plan. Run two methods together, such as a plugin plus a host copy, so one failure never leaves you without a restore point.
Method 1: Back Up WordPress With a Plugin
To back up WordPress with a plugin, install UpdraftPlus, open Backup / Restore and click Backup Now with the database and files ticked. The free version stores the copy on your server unless you add remote storage. It had 4+ million active installations and a 4.8 rating from 8,671 reviews on WordPress.org in October 2026.
We used UpdraftPlus because it is the free option the top guides name most often. Any backup for WordPress follows the same pattern of settings, a Backup Now action and a list of existing backups.
- Install and activate it: Go to Plugins, then Add New, and search for UpdraftPlus. A short setup wizard opens on first run. Its schedule step defaults to Manual and keeps 2 backups.
- Open Backup Now: Go to Settings, then UpdraftPlus Backups, and click the blue Backup Now button.

- Tick the database and files: Leave both boxes ticked. Expanding the files option lists Plugins, Themes, Uploads, Must-use plugins and any other directories inside wp-content.

- Check Existing backups: The list shows one row with a button per part. Our first backup took about 3 seconds and totaled 40.7 MB.

- Set a schedule: Open the Settings tab. Both the files and database schedules start on Manual with 2 copies kept, so nothing runs by itself until you change them.

- Add remote storage: Pick a destination below the schedule. Without one, the copy stays on the same server as your site.

The files in our first backup were six archives. The database file was 302 KB, plugins 26.4 MB, themes 15.6 MB and uploads 352 KB. The Backup Now dialog also said the copy would not go to remote storage, because we had saved none.
The retain setting decides how many backups UpdraftPlus keeps before it deletes the oldest. Both schedules started at 2 on our test store.
Raise it if you want a few days of history. Watch your disk space too, because each full backup on our store was about 41 MB.
The Backup / Restore tab also shows an “Add changed files (incremental backup)” link. The Settings tab says incremental backups need UpdraftPlus Premium, so do not expect that link to work on the free version.
Worth knowing: UpdraftPlus’s settings page says backing up wp-config.php and core changes needs the paid version. So a free plugin restore brings back content, plugins and themes but not that file. Keep your own copy of wp-config.php.
Method 2: Back Up WordPress From Your Hosting Panel
To back up WordPress from your hosting panel, open the backup tool your host provides. In cPanel that is the Backup Wizard, which makes a full or partial backup you then download. Many hosts also run their own daily copies, so check your plan first.
We did not test this method, because it needs a hosting account. The cPanel Backup Wizard docs say partial backups cover the home directory, email forwarders and filters, or MySQL databases. A full backup is a .tar.gz file you download.
Restoring is where hosting panels surprise people. The same docs say you cannot automatically restore a full backup file in cPanel. That function exists only in WHM, so you contact your host or restore the public_html folder by hand.

Treat a host backup as a safety net and keep a second copy somewhere else. Our guide to WordPress maintenance services explains what ongoing care usually includes, backups among them.
Method 3: Back Up WordPress Manually
To back up WordPress manually, download the WordPress folder over FTP or your File Manager and export the database from phpMyAdmin. Show hidden files so .htaccess comes with you. Save both in one dated folder so you can match them later.
Download wp-content, wp-config.php and .htaccess, because core files are replaceable. Then open phpMyAdmin, select your database and use Export in SQL format. The result is a database dump you can import again later.
Here is the order that worked for us:
- Show hidden files: Turn on hidden files in your FTP client or File Manager so .htaccess appears in the list.
- Download the files: Copy wp-content, wp-config.php and .htaccess into a dated folder on your computer.
- Export the database: In phpMyAdmin select your database, open Export and choose the SQL format.
- Label both copies: Name the folder and the SQL file with the site and the date so the two stay together.
The phpMyAdmin docs say an SQL export can restore your database, which is why it suits backups. They also mention that large dumps can hit a packet size error on import.

Manual backups are slow and easy to forget. They work well before a plugin update or a migration. Our guide to moving a WordPress site to a new domain uses the same two parts.
Method 4: Back Up WordPress With WP-CLI
To back up WordPress with WP-CLI, run wp db export for the database and tar for the files. Both commands ran from one folder on our test store. The export took 0.22 seconds, and the file archive took 4.1 seconds.
The wp db export reference says it writes an SQL file and names it after the database if you give no file name. We gave it a name so the restore command was easy to read.
The archive held 8,813 entries, and wp-config.php and .htaccess were both inside. We excluded the updraft folder, so one backup did not contain another.
The two commands are short enough to keep in a script. Run them from your WordPress folder:
wp db export backups/wp-db.sql tar czf backups/wp-files.tar.gz --exclude=wp-content/updraft wp-content wp-config.php .htaccess
A backup folder inside the WordPress folder is still a backup on the same server. Copy the two files off the server after each run, or the script protects you from a bad update but not from a dead disk.

This method fits a deploy script or a nightly job. It also needs shell access, which many shared hosts do not give.
How to Backup WordPress Website Data Offsite and on a Schedule
An offsite backup is a copy kept away from your web server, such as cloud storage or your own computer. Good WordPress backups always include one. Back up daily if the site changes daily, and weekly if it rarely does.
A server failure takes local copies with it, so keep at least one copy off the server.
The WordPress handbook suggests a weekly backup for a small site and a daily one for a busy site. It also says to keep three to five recent backups in different places. It says to back up the database before any upgrade or move.

UpdraftPlus’s own settings page warns that without remote storage, losing the web server means losing both the site and the backups. Its free version listed Dropbox, Google Drive, Amazon S3, FTP and email among its choices. That page is where we set our test schedule.
Worth checking: Incremental backups are not in the free version. UpdraftPlus’s setup wizard lists them under its premium upgrade, so on the free plugin each backup is a full copy.
A backup is also your fastest way back from a hack. Keep a copy from before the infection as well as the newest one. Our WordPress security checklist lists the other steps to take.
How to Backup a WordPress WooCommerce Site
To back up a WordPress WooCommerce site, include the whole database and every file folder, because products alone are not enough. Orders and customers live in WooCommerce’s own tables. A restore rolls them all back to the backup time, so orders placed after the copy are gone.
Our test store held 3 orders and 12 products. That data sits in the 40 WooCommerce tables beside the 12 core tables, which is why a files-only backup is useless for a shop.
WooCommerce keeps orders in its own tables when High-Performance Order Storage is on. Our store listed wp_wc_orders and wp_wc_order_addresses among them, so a database backup that skips those tables loses your order history.
Back up before every WooCommerce update, and schedule the database more often than the files. Our guide to backing up the WooCommerce database covers the database side in more detail. Our guide to WooCommerce product backup covers copying products alone.
A backup is also one of the basics every site needs. Our list of critical components for your WordPress website puts it beside security and updates.
How to Test That a WordPress Backup Restores
To test that a WordPress backup restores, restore it to a copy of your site and check the content. Never trust a backup you have not restored. The WordPress handbook only suggests a manual backup now and then to check the process works, so we ran two real restores.
Test 1: Restore With UpdraftPlus
We damaged our test store on purpose. We deleted 5 products and 1 order, and renamed the site to “Oops”. Then we restored the database from the backup in the plugin.
The restore wizard asks which components to restore. We ticked only Database and clicked through the steps. Plugins, themes and uploads stayed as they were.
Ticking everything would also replace those folders. That is the right choice after a hack or a broken update.

The log said Restore successful after 143 lines in about half a second. The plugin restores each table to a temporary name, then drops the original and renames the new one. Afterward we counted 12 products, 3 orders and the original site name.

Test 2: Restore the Manual Backup to a Copy
We then restored the WP-CLI backup into a new folder with a new database. This is the test that proves the files and the SQL file work together without the plugin.
We downloaded a fresh WordPress core, extracted the archive on top and pointed wp-config.php at the new database. Then we imported the SQL file and ran a search and replace on the site address. The whole restore took 3.6 seconds.
The handbook says to restore the files first and then import the database. We followed that order and the copy worked on the first try.

The copy showed 12 products, 3 orders, the same theme and the same two plugins. We also opened the product list in the restored admin.

What to Check After Every Restore Test
After a restore, count your content, log in and click through the shop. A site that loads is not proof, because a missing database table can still render a front page. Counting products and orders catches half-finished restores.
Use the same checks each time:
- Counts: Compare your product, order and page counts with the live site.
- Login: Sign in to the admin with a real administrator account.
- Media: Open a post with images and confirm they load.
- Checkout: Add a product to the cart and open the checkout page.
The infographic lists the full sequence, from the fresh copy to the final click.

Do the test after the first backup and again after any big change. If a restore fails, you want to find out while the live site still works. Our guide to the WordPress white screen of death shows what a bad day looks like without one.
Conclusion
Here is how to back up a WordPress site so you can trust it: start with a plugin and a schedule. Copy the database and the files, keep one copy off the server, and keep wp-config.php yourself.
The step most people skip is the restore test. Ours took a few minutes and proved both backups worked.
If you would rather hand the work over, our WordPress maintenance services cover ongoing site care. Either way, test one restore this week.
Frequently Asked Questions (FAQs)
Q1. How do you back up a WordPress site for free?
Install a free backup plugin such as UpdraftPlus and click Backup Now with the database and files ticked. Then download the files or add free remote storage. You can also run WP-CLI if you have shell access.
Q2. How do I back up my WordPress website without a plugin?
Download wp-content, wp-config.php and .htaccess over FTP, then export the database from phpMyAdmin. Our own WP-CLI run did the same with two commands. Keep both files in one dated folder.
Q3. Where are WordPress backups stored?
It depends on the tool. UpdraftPlus saves to your server unless you add remote storage, and a cPanel backup goes to your home directory or a destination you pick. Always copy one backup somewhere else.
Q4. How often should I back up my WordPress site?
The WordPress handbook suggests weekly for a small site and daily for a busy one. Back up the database before any upgrade or move too. Stores with daily orders should back up the database daily.
Q5. Does a WordPress backup include the database?
Only if you choose it. UpdraftPlus ticks both the database and files by default, but a manual FTP copy has no database at all. Check that your backup holds an SQL file.
Q6. Can I restore a WordPress backup to a different domain?
Yes, but the addresses stored in the database must change. We ran a search and replace on our copy and it made 75 replacements. Our guide to moving a WordPress site to a new domain covers it.
Q7. Is a hosting backup enough?
Not on its own. The cPanel docs say a full backup cannot be restored automatically in cPanel, and a copy on the same server can fail with it. Keep a second copy elsewhere.
