Rebuild WordPress Site From Incremental Backup
Backup, Sysadmin, WordPress
This involves creating a new database, importing the backed up database, replacing site files and connecting site files to the new database.
Create Blank Database
Import Copy of Backup Database
After creating a new database, make sure you are logged out of the MySQL shell (ctrl + c), then enter:
Set Up Files
- Add backup site files to document root
- Amend
wp-config.php
- enter the correct database name, user and password
If deploying to the same URL, you are done. If you are migrating the site, you need to edit database entries, since the site URL will be different.
Migration: Amend Database
Start a MySQL session for the new database:
Check you’re working in the right database:
Amend the following code block to reflect your old and new domain names:
NB: if you use a custom database table prefix, replace the wp_
prefixes in the example code block
Migration: Flush Rewrite Rules
Log in to the new site, navigate to Settings » Permalinks and click save. Pretty permalinks should now work.
comments powered by Disqus