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
Relink / Import site
2.0.3 stuck starting local machine
Version 2.2 Prerelease, websites not working
Re-import existing site
Local Site will not start
Move a Local site to another computer (under extraneous circumstances!)
Urgent! Lost weeks of work - hung on local machine start
Restoring site after reinstalling Local by FlyWheel
Can't restore a Local site
Pulling previous "Local Sites" into new Local setup
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
Import existing site using Local 2.2.0
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
Container is missing after manually updating to 2.1.1
Installed Local Update - now one of my sites is getting error: Error establishing a database connection
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
WordPress Installation Fails and can't connect to Database
Urgent! Lost weeks of work - hung on local machine start
2.1.1 Installation errors
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
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
After update, all local sites won't start and can't seem to be restore from local files
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)
Multiple Errors w/ Local Update; Attempts to Reinstall Local/Restore Sites Fail (MacOS)