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.
- Rename all of the folders in your Local Sites folder to something like
SITE-backup
- If the site still exists in Local with a “Container Missing” error, delete it.
- Create new sites for each using the existing domains and paths. So, if it was
site
before, you’ll usesite
again - Browse back to the Local Sites folder and delete the newly created
site
folder and renameSITE-backup
back tosite
. This is done because you can’t create sites over site folders that already exist. - Right-click on the site in Local and go to “Open Site SSH”
- Enter
myloader -p root -d /app/sql --overwrite-tables --database local
… This will load in the SQL files in /app/sql - Check the site and make sure it looks right