Backing Up WordPress¶
Use this page when creating a WordPress backup before updates, plugin work, URL changes, PHP changes, imports, or other work that affects the live site.
What A WordPress Backup Needs¶
| Piece | Why it matters |
|---|---|
| Site files | Themes, plugins, uploads, and WordPress files. |
| Database | Posts, pages, settings, users, plugin data, and WooCommerce data. |
| Notes | Date, reason for backup, and what changed after it. |
Backup From cPanel¶
Use cPanel when you need an account-level backup or a copy you can download.
- Log in to cPanel.
- Open
BackuporBackup Wizard. - Download the home directory backup.
- Download the relevant MySQL database backup.
- Store the files somewhere safe.
For WordPress, files and database both matter
A home directory backup without the database is not a complete WordPress backup. A database backup without uploads, themes, and plugins is also incomplete.
Where To Store Backups¶
Keep important backups somewhere other than the live hosting account. Good storage locations include:
- A local computer.
- A cloud storage account.
- A managed backup service.
- Another storage system controlled by your organization.
For business-critical sites, keep more than one restore point. A single backup created after a problem starts may not be enough.
Backup Before Updates¶
Before updating WordPress core, plugins, or themes:
- Confirm the site works before you start.
- Create or download a backup.
- Update one important component at a time when possible.
- Test the public site and admin dashboard after updates.
Back Up From SSH With WP-CLI¶
Run this from the WordPress document root to export the database before risky work:
wp db export ~/example-before-change.sql
WP-CLI database exports do not include uploads, themes, or plugins. Pair the database export with a cPanel file backup, file archive, or another complete file backup.
Review wp-toolkit and WP-CLI backup options
Backup Before Larger Work¶
Create a fresh backup before:
- Changing PHP versions.
- Updating WooCommerce, page builders, membership plugins, or form plugins.
- Importing content.
- Running search/replace tools.
- Switching themes.
- Working on SSL or URL changes.
Restore Planning¶
Backups are only useful if they can be restored. For important sites, keep notes with the backup date, the domain, the database name, and the reason the backup was created. If you are not sure whether a backup is complete, contact Fused before making a risky change.
Related Guides¶
-
Maintenance checklist
-
wp-toolkit
-
Staging