WordPress manual backup: how to back up your site and database, CloudyWP guide
Luke Anderson WordPress

WordPress Manual Backup: How to Back Up Your Site and Database

To back up WordPress manually, without a plugin, you take two copies: the database, exported from phpMyAdmin, and the site’s files, downloaded over SFTP or through the File Manager in cPanel or your host’s dashboard. You need both. The database holds your posts, pages, users and settings; the files hold your theme, plugins, uploads and wp-config.php.

It takes 15 to 30 minutes on a typical small business site. Do it before any update to WordPress, a theme or a plugin, before you change hosts, and any time you are about to make a change you are not sure about. Take the backup first, then update.

What you need

  • Your hosting control panel login (cPanel, Plesk or your host’s own dashboard), for phpMyAdmin and the File Manager.
  • SFTP details if you prefer an SFTP client such as FileZilla, Cyberduck or WinSCP. Your host lists them in the control panel.
  • Somewhere off the server to keep the backup: your computer plus a cloud drive or an external drive.

Step 1: Export the WordPress database in phpMyAdmin

First find out which database your site uses. Open wp-config.php in the site’s main folder (with the File Manager or SFTP) and look for this line:

define( 'DB_NAME', 'example_wp123' );

The value in quotes is the database name. Do not confuse it with the table prefix further down the file ($table_prefix = 'wp_';): the prefix is the start of each table’s name, not the database’s.

  1. Open phpMyAdmin from your hosting control panel.
  2. Click the database name from DB_NAME in the left-hand list. You should see its tables, such as wp_posts and wp_options (with your own prefix). Note how many tables it has.
  3. Click the Export tab.
  4. Leave the method on Quick and the format on SQL.
  5. Click Export (Go on older versions). Your browser downloads a file such as example_wp123.sql.

If the export times out or the file stops short on a large site, ask your host for a database backup, or, if you have SSH access, export it from the command line instead. With WP-CLI, run this in the site’s folder:

wp db export backup.sql

Without WP-CLI, mysqldump -u DB_USER -p DB_NAME > backup.sql does the same, using the user and database names from wp-config.php.

Step 2: Download the site files from cPanel or SFTP

Download the whole folder WordPress is installed in, usually public_html or a folder named after your domain. Taking all of it is the simplest way to be sure nothing is missed, and it keeps the exact WordPress version your site runs. The parts that matter most are:

  • wp-content: your themes, plugins and the uploads folder with every image and document in the Media Library. This cannot be downloaded again from anywhere else.
  • wp-config.php: the database connection details, table prefix and security keys.
  • .htaccess, on Apache hosting: your permalink and redirect rules. It is a hidden file, so turn on “show hidden files” in your SFTP client or File Manager.

The fastest way is usually the File Manager: select the folder, choose Compress to make a .zip, download the .zip, then delete the .zip from the server. A backup left inside public_html can be downloaded by anyone who guesses its name, and it contains your database password.

Over SFTP, connect, open the site folder and download it to your computer. Thousands of small files make this slow; if a transfer stops, download the folder that failed again rather than starting from the beginning.

Step 3: Check the backup is complete

  • Database: open the .sql file in a text editor. Search it for CREATE TABLE: the number of matches should equal the number of tables phpMyAdmin showed. The file should end with complete SQL statements, not stop part-way through a line.
  • Files: open the downloaded folder or .zip and check that wp-config.php is there and that wp-content/uploads has folders for recent months with your images in them.

Name the two files with the site and the date, for example example-com-2026-11-10.sql and example-com-2026-11-10-files.zip, so you can tell backups apart later.

Step 4: Store it off the server

A backup kept on the same hosting account is lost along with the site if the server fails or the account is hacked. Keep at least two copies in different places, such as your computer and a cloud drive (Google Drive, Dropbox, OneDrive) or an external drive. The files include wp-config.php with your database password, so keep them in a private folder, never a shared or public link. Delete old copies on a schedule you choose, keeping a few recent ones.

Step 5: Test that the backup restores

A backup you have never restored is a guess. Test it on a copy of the site, never on the live one:

  1. Create a local site (with a tool such as Local) or a staging site at your host, with an empty database.
  2. Import the .sql file into that empty database with phpMyAdmin’s Import tab, or wp db import backup.sql.
  3. Upload the site files, then edit wp-config.php so DB_NAME, DB_USER, DB_PASSWORD and DB_HOST match the new database.
  4. If the copy runs at a different address, change the old address to the new one throughout the database with wp search-replace 'https://example.com.au' 'https://staging.example.com.au' --skip-columns=guid or a plugin such as Better Search Replace. Do not use a plain SQL find-and-replace: WordPress stores some settings as serialised data that breaks when the length of the text changes.
  5. Log in, open a few pages and posts, check images load and a form sends.

If anything is missing, fix the backup steps now, while the live site still works. If the live site is already down, see emergency help for a WordPress site that is down; if it has been hacked, restore from a backup taken before the hack and follow the steps to clean up a hacked site.

Manual backups and automatic backups

A manual backup is the right tool before a risky change or a move to a new host, and when you have no backup plugin or host backups to rely on. It is not a schedule: it only covers the day you take it. For ongoing protection, use your host’s automatic backups or a backup plugin that stores copies off the server, and still restore one now and then to prove it works. Backups are one item on a regular WordPress maintenance checklist.

WordPress’s own documentation covers the same ground in more depth: backing up the database, backing up the files, and the WP-CLI commands wp db export and wp search-replace.

If you would rather not do this yourself, our WordPress maintenance plans include weekly off-site backups of your files and database, kept on separate infrastructure from your server.

WordPress manual backup: common questions

Can I back up WordPress without a plugin?

Yes. Everything on this page works without a plugin: phpMyAdmin exports the database, and the File Manager or an SFTP client downloads the files. A backup plugin only automates the same two copies.

How do I back up a WordPress site to my local computer?

Follow steps 1 and 2: the .sql file and the .zip of your site folder both download to your computer. Then copy them to a second place, such as a cloud drive or an external drive, so a lost or broken laptop does not take your only backup with it.

How do I back up only the WordPress database?

Export it in phpMyAdmin as in step 1, or run wp db export over SSH. A database backup on its own keeps your posts, pages and settings, but not your images, theme or plugins, so take the files as well before any update.

How often should I back up WordPress?

Before every update and before any change you are unsure about, plus on a schedule that matches how often the site changes. A shop taking orders every day needs daily backups; a brochure site that changes once a month can be backed up weekly. A schedule is a job for automatic backups, not manual ones.

Does my web host already back up my site?

Many hosts do, but check how often they run, how long copies are kept, where they are stored and whether a restore costs extra. A host backup kept on the same server can be lost with it, so keep your own copy off the server as well.

How do I restore a manual WordPress backup?

The same way as the test in step 5, but on the live site: import the .sql file into the database, upload the files, and check that wp-config.php has the right database details. If the site address has not changed, you do not need a search-and-replace.

Discussion

Be the first to comment

Leave a comment

Get in touch