How to Backup WordPress Site Manually?

What a Complete Manual Backup Contains

How To Backup WordPress Site Manually - SiteHale

Every WordPress site has two separate parts, and a usable backup needs both. Copying only one leaves you with a site you cannot rebuild.

  • The files: WordPress core, your themes and plugins, and everything in wp-content/uploads, where all your images and PDFs live. The uploads folder is usually the largest part of a site and often runs from several hundred megabytes to many gigabytes.
  • The database: a MySQL or MariaDB database that stores your posts, pages, comments, users, menus, widget placements, and plugin settings. None of this text lives in the file system.
  • Two critical config files: wp-config.php, which holds your database credentials, security salts, and table prefix, and .htaccess, which controls permalinks and redirects on Apache servers. Many FTP clients hide .htaccess by default, so it is often missed.

Before you start, open wp-config.php in your host’s file manager and write down the values of DB_NAME and $table_prefix. On hosts that run several WordPress installs under one account, these tell you which database belongs to this site. Plan for roughly 20 to 40 minutes on a typical small business site. Choose a low-traffic window, especially for WooCommerce stores, so no orders come in between the file copy and the database export.

Steps 1 and 2: Copy and Download Your Site Files

Step 1: Compress the WordPress folder on the server. Log in to cPanel and open Files > File Manager. Navigate to the folder that holds your site, usually public_html, or public_html/yourdomain.com for an add-on domain. Click Settings in the top-right corner and tick Show Hidden Files (dotfiles) so .htaccess is included. Select all contents, then click Compress and choose Zip Archive. Name the file with the date, such as site-files-2024-06-15.zip. Compressing on the server is much faster than downloading thousands of small files one at a time.

Step 2: Download the archive and remove the server copy. Right-click the new zip file and choose Download. If your host does not use cPanel, connect with an SFTP client such as FileZilla. Use your server hostname, your SFTP username, and port 22. In FileZilla, open Server > Force showing hidden files, then drag the site folder to your computer. When the download finishes, delete the zip file from the server. A backup archive left inside public_html can be downloaded by anyone who guesses its name, and it exposes your database password from wp-config.php.

Steps 3 to 5: Export, Verify, and Store the Database

Step 3: Export the database in phpMyAdmin. In cPanel, go to Databases > phpMyAdmin. Click the database whose name matches DB_NAME in the left sidebar, then open the Export tab. Choose Custom, confirm the format is SQL, and make sure every table is selected. Under Output, set compression to gzipped. Under Object creation options, tick Add DROP TABLE / VIEW / PROCEDURE / FUNCTION / EVENT / TRIGGER statement so the file restores cleanly over an existing database. Click Export.

Step 4: Verify both files. Open the zip file and confirm that wp-config.php, .htaccess, and wp-content/uploads are inside. Unzip the .sql.gz file and open it in a text editor. It should end with complete statements for tables such as wp_users and wp_usermeta, with your own prefix in place of wp_. A file that stops in the middle of a line means the export timed out.

Step 5: Store copies in more than one place. Follow the 3-2-1 rule: keep three copies on two kinds of storage, with one copy offsite. For example, keep one on your computer, one on an external drive, and one in cloud storage such as Google Drive or Backblaze B2.

Practical Tips for Reliable Manual Backups

  • Skip cache folders to shrink the archive. Folders such as wp-content/cache, wp-content/litespeed, and wp-content/et-cache rebuild themselves automatically and can add hundreds of megabytes. Leave them out of your selection before you compress. If an old backup plugin has stored archives in wp-content/updraft or wp-content/ai1wm-backups, exclude those as well so you are not backing up backups.
  • Use WP-CLI when phpMyAdmin times out. phpMyAdmin often fails on databases larger than about 500 MB. If your host offers SSH access, run wp db export backup.sql from the WordPress folder to get a complete dump with no browser timeout. Then run tar -czf files.tar.gz public_html to compress the files in one command.
  • Test a restore before you need it. A backup you have never restored is unproven. Install the free LocalWP app and create a blank site. Replace its wp-content folder with yours, then import your .sql file through LocalWP’s Adminer database tool. Update siteurl and home in the wp_options table to the local address. If your pages, images, and logins all work, your backup process is sound.

Does Your Site Have This Problem?

Every check in this article runs automatically on the sites we look after. You can run the same health checks on your own site in seconds with the free SiteHale plugin — no account, nothing transmitted anywhere. Or have us do it: we’ll crawl your site and send you a written report, free.

Get My Free Site Report

Proven on our own sites first

Every automation runs on our own sites before any client site

25+ years in IT

Built by a 25-year professional IT team

$49/mo flat

Everything included — no tiers, no upsells

Leave a Comment