FREE GUIDE!  Spin up sites in a snap with the perfect WordPress development workflow.

Download

Help articles Local by Flywheel

How to Import a WordPress Site into Local

Local is pretty flexible about being able to import a WordPress site from a zip archive.

There are two required things that Local needs for the import to be successful:

  • The wp-content folder (containing plugins, themes, and uploads)
  • A database dump as a sql file

If you manually download a backup from Flywheel’s servers or export a backup from a different host using a tool like BackWPup, then the 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 wp-content folder.

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.

Options screen when importing a site into Local.

 

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 app and 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.

Local site App folder

Local site sql folder

Was this article helpful?

  • Billing & Accounts

    Questions relating to payments, billing and managing your account on Flywheel.

    14 Articles
  • Blueprints

    Learn everything there is to know about what Blueprints are, how to create them and how to make the best use of them.

    5 Articles
  • Database

    How to access your WordPress database to make changes and update content.

    3 Articles
  • Domain Names

    Details about how to manage DNS and point your domain names at Flywheel.

    14 Articles
  • Frequently Asked

    The most commonly asked questions, and a few we just think you should know.

    26 Articles
  • General Questions

    Questions that don't fit elsewhere, or those about Flywheel in general.

    58 Articles
  • Getting started

    Everything you need to know to get your first Flywheel site up and running.

    16 Articles
  • Local by Flywheel

    Everything you need to know about our amazing, free local WordPress development software for Mac and PC.

    9 Articles
  • Organizations

    Everything you need to know about managing your team with our Organizations feature.

    8 Articles
  • Plugins

    Which plugins work best, which plugins work worst, and everything in between.

    7 Articles
  • Security

    Details about everything Flywheel does to makes your site so secure.

    14 Articles
  • SFTP

    Information on setting up and troubleshooting with SFTP connections and file transfers.

    5 Articles
  • Simple SSL

    All there is to know about our free, automatically installed and activated SSL certificates.

    9 Articles
  • Staging

    How to get the most out of Staging, which allows you to duplicate a site, make changes, and then push those changes to the live site.

    6 Articles
  • White Label

    Everything you need to know about our Whitelabel subscriptions for branding and reselling Flywheel.

    4 Articles

Flywheel help

Help is just a click away! Log into the Flywheel dashboard to instantly chat with an expert, open a ticket, or follow along with in-depth documentation. We happily offer support 24 hours a day, 7 days a week, 365 days a year!

Log in
WordPress experts

Try it yourself. It's free & takes less than 60 seconds. Sign up