Import a WordPress Site into Local
Local is pretty flexible about being able to import a WordPress site from a
There are two required things that Local needs for the import to be successful:
wp-contentfolder (containing plugins, themes, and uploads)
- A database dump as a
There are a few ways to get a zip backup of your site:
Once you have your backup, your zip archive will probably look something like this:
Note that in this case, the database dump is next to a files folder, which contains the
All you need to do is import this
zip file by dragging and dropping it over Local or selecting “Import” from Local’s menu.
Local will ask you a few questions about the site, such as the Site Domain as well as the folder you want to use to hold the site. Depending on the size of the archive, the import can take a few seconds for smaller sites, or much longer if the
zip file is quite large.
Restoring From Only Local Site files
There are some cases where you might need to re-import a site into Local using only the files contained within the site folder. Power failure or breaking changes caused by a system update can force you to restore a backup of your Local WordPress sites.
If you can get the Local site folder from a system restore point or a time-machine backup and it has both the WordPress files as well as the
sql files, then you have everything you need to re-import the site!
To give some context, you would want to
zip the whole site folder, including the
logs folders. Using the following screenshots as an example, you would zip up the
wordpress-import folder, and then use the
wordpress-import.zip file to import into Local by dragging and dropping the archive over Local.