Local Community

How can I restore a site from a Local site folder?

Note: Local has come a long way since this was first posted and mostly just works for importing sites. Have a look at our help doc for more current information:

https://getflywheel.com/wordpress-support/how-to-import-a-wordpress-site-into-local/

You probably want the above link, but the below information is being kept for history:


In case you are seeing a “Container Missing” error or are just needing to restore a Local site from an existing Local site folder, here’s how:

Note: There must be SQL files present in app/sql in order for this to work. Otherwise, the database won’t be able to be restored.

  1. Rename all of the folders in your Local Sites folder to something like SITE-backup
  2. If the site still exists in Local with a “Container Missing” error, delete it.
  3. Create new sites for each using the existing domains and paths. So, if it was site before, you’ll use site again
  4. Browse back to the Local Sites folder and delete the newly created site folder and rename SITE-backup back to site. This is done because you can’t create sites over site folders that already exist.
  5. Right-click on the site in Local and go to “Open Site SSH”
  6. Enter myloader -p root -d /app/sql --overwrite-tables --database local … This will load in the SQL files in /app/sql
  7. Check the site and make sure it looks right
13 Likes
Re-importing a site
Can't restore a Local site
Does Removing a Virtual Machine in VirtualBox Result in Loosing Databases?
Local 2.06 Problems to Error! Container is missing. You will need to restore this site from a backup or previous export
Updated to 2.0.4 and now local gets stuck in a loop starting up
Cannot restore my website after having to move from one computer to another
Re-import existing site
Relink / Import site
Restoring site after reinstalling Local by FlyWheel
Urgent! Lost weeks of work - hung on local machine start
Local Site will not start
Version 2.2 Prerelease, websites not working
Move a Local site to another computer (under extraneous circumstances!)
Import existing site using Local 2.2.0
Can't restore a Local site
Pulling previous "Local Sites" into new Local setup
2.0.3 stuck starting local machine
Local hung on "Starting Local Machine"
Error Connecting to Database
How to restore database from app/sql
Error connection to database when trying to restore a site
Import DB through CLI
Missing Container - Auto Update Issue
Auto update now all sites say container missing
Migrating sites after clean install
Auto update now all sites say container missing
Stuck in "Starting Local Machine..." (MacOS 10.13.2 / Local 2.1.2)
503 Error on all sites front-end since latest update
How can I import a site into Local by Flywheel
"Starting Local Machine" Hang... Twice
How to restore Local from TimeMachine
Local 2.06 Problems to Error! Container is missing. You will need to restore this site from a backup or previous export
Importing a site and config file not transferring
Annoying VirtualBox Setup On Flywheel Startup
HOW to restore site after Flywheel upgrade
Container is missing after manually updating to 2.1.1
Local Flywheel Does Not Open
Local Site will not start
2.1.1 Installation errors
Stuck on 'Starting...' after clicking 'Start Site' on all sites
Upgrade to 2.1 on Windows 10 not working, Stuck at "Starting New Machine"
LocaL by Flywheel is so convenient, yet also a total nightmare
Regenerating Docker Machine TLS Certificates
Error Connecting to Database
Cannot restore my website after having to move from one computer to another
Error! Container is missing. You will need to restore this site from a backup or previous export
Local don't list Local Sites
Urgent! Lost weeks of work - hung on local machine start
WordPress Installation Fails and can't connect to Database
Restoring Local site doesn't work
Re-instate my local sites to LocalByFlywheel from backup?
Local Sites not showing up
Reintall a Local Site
Local by Flywheel not opening after Accidentally Deleting the .docker files
Losing hope, can anyone test my site please?
How to restore from just the files?
Just about to deliver site and now "Error establishing a database connection"
Importing local website to flywheel does not include pages, posts and users
Recovering database after computer breaks
Container is missing - can't working anymore
Change of computer
Installed Local Update - now one of my sites is getting error: Error establishing a database connection
Start up hangs at "starting Local Machine"
Can't Install the WordPress after the new update. 3.0.1
Error establishing database connection
Flywheel not working after OSX Mojave update