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


#1

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:

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

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
Local Site will not start
Import existing site using Local 2.2.0
Version 2.2 Prerelease, websites not working
Move a Local site to another computer (under extraneous circumstances!)
Urgent! Lost weeks of work - hung on local machine start
Can't restore a Local site
Pulling previous "Local Sites" into new Local setup
2.0.3 stuck starting local machine
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
Start up hangs at "starting Local Machine"
"Starting Local Machine" Hang... Twice
Container is missing - can't working anymore
How to restore Local from TimeMachine
After update, all local sites won't start and can't seem to be restore from local files
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
Container is missing after manually updating to 2.1.1
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
Installed Local Update - now one of my sites is getting error: Error establishing a database connection
Change of computer
Error! Container is missing. You will need to restore this site from a backup or previous export
Multiple Errors w/ Local Update; Attempts to Reinstall Local/Restore Sites Fail (MacOS)
WordPress Installation Fails and can't connect to Database
Recovering database after computer breaks
Urgent! Lost weeks of work - hung on local machine start
Importing local website to flywheel does not include pages, posts and users
Flywheel not working after OSX Mojave update
Local hung on "Starting Local Machine"
Error establishing database connection
Error Connecting to Database
How to restore database from app/sql
Can't Install the WordPress after the new update. 3.0.1
Error connection to database when trying to restore a site