How to Back Up and Restore WordPress: cPanel, Plugin and Manual Methods

Sunucun 3 min read

A WordPress backup has two parts: the files (core, themes, plugins, uploads and wp-config.php) and the database (posts, pages, comments, settings). WordPress’s own documentation says you need both to fully restore a site; copying files alone doesn’t capture the database.

Illustration: WordPress

Which Method?

MethodProsWatch out
Hosting panel (cPanel/Plesk)Back up the whole account or files and database separatelyAlso keep a copy off the server
Backup pluginScheduled backups, cloud storage, easy migrationFree versions may have size or feature limits
Manual (phpMyAdmin + FTP)No extra software, full controlMore steps; slower for large sites

1. Backing Up With cPanel

  1. Open Files > Backup or the Backup Wizard.
  2. Under partial backups, download the Home Directory backup (your site files).
  3. Download your site’s database from the MySQL Databases list; the name is in wp-config.php (DB_NAME).
  4. Keep both files together locally or in cloud storage.

2. Backing Up With a Plugin

  1. Install a backup plugin such as UpdraftPlus, Duplicator or All-in-One WP Migration from Plugins > Add New.
  2. Run its backup / export option; files and database are packaged together.
  3. Download the backup or send it to a supported cloud account.
  4. Set a schedule for automatic backups.

A .wpress file is All-in-One WP Migration’s backup format and is restored only from that plugin’s Import screen. Free-version size and feature limits vary by version; check the plugin’s current documentation for large sites.

3. Manual Backup (phpMyAdmin + FTP)

  1. Database first: in phpMyAdmin select the database, then Export > Format: SQL > Go.
  2. Then files: download everything in the site root (usually public_html) over FTP/SFTP, or compress the folder in cPanel File Manager and download one zip.
  3. Store the .sql file and the archive together in a dated folder.

With shell access you can also run wp db export backup.sql (WP-CLI). See WordPress database backup and recovery.

Restoring a Backup

Backup typeRestore steps
cPanel partial backupUse Restore a Home Directory Backup and Restore a MySQL Database Backup on the Backup page.
Plugin backupInstall the same plugin on a clean WordPress and use its Restore / Import screen (.wpress: All-in-One WP Migration > Import).
Manual backup1) Upload files over FTP. 2) Import the .sql into an empty database in phpMyAdmin. 3) Check the database name, user and password in wp-config.php.

If you moved to a new domain, update old URLs in the database (siteurl, home and content links) with a plugin’s search-replace or wp search-replace. Re-saving Settings > Permalinks after a restore helps prevent 404 errors.

How Often and Where to Store Backups

  • WordPress documentation suggests weekly backups for smaller sites and daily for very active sites, and always before updates or a move.
  • Keep the last 3-5 backups in different places: server, cloud and your own computer.
  • Test a restore in a staging environment now and then.

See also website backup methods and our WordPress hosting plans.

Frequently Asked Questions

Can I back up WordPress without a plugin?

Yes, with your hosting panel’s backup tools or manually with phpMyAdmin (database) and FTP (files).

Is backing up wp-content enough?

No. Posts and settings live in the database. Back up wp-content, the database and wp-config.php; core files can be downloaded again from wordpress.org.

I get “file too large” when restoring.

You are hitting PHP’s upload_max_filesize or post_max_size. Upload the file over FTP and restore from there, raise the limit in your panel, or import the database from the command line.

Categories

Latest guides