# Re-importing a site

**URL:** https://community.localwp.com/t/re-importing-a-site/1779
**Category:** Support
**Created:** [June 8, 2017, 11:34am UTC](https://community.localwp.com/t/re-importing-a-site/1779 "2017-06-08T11:34:07Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Steven](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/steven/32/4785_2.png) [@Steven](https://community.localwp.com/u/Steven)
#### Post date: [June 8, 2017, 11:34am UTC](https://community.localwp.com/t/re-importing-a-site/1779/1 "2017-06-08T11:34:07Z")

</div>

I had some trouble with Local not working, so I had to re-install it from square 1.  
Local is now working fine, but not recognizing any of my previous sites I had in there.

I created a new site and tried to overwrite everything with an old Local site, but none of this is working.

Is there any way I can re-import a site?  
I have the folders with public and SQL, but I can’t do a regular import because the database is not a single database.sql file, I guess…?

I really need the previously created site to work again: i can’t redo all the work I put into that.  
Any help?

---

<div class="post-metadata">

### Author: ![Steven](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/steven/32/4785_2.png) [@Steven](https://community.localwp.com/u/Steven)
#### Post date: [June 8, 2017, 12:17pm UTC](https://community.localwp.com/t/re-importing-a-site/1779/2 "2017-06-08T12:17:49Z")

</div>

Just to be clear I have a folder from the site, with these subfolders

> app  
> conf  
> logs

all wordpress files are in app\>public and all sql files are in app\>sql

So the question is: how do I get this to work again in my new install of Local?

---

<div class="post-metadata">

### Author: ![clay](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/clay/32/8248_2.png) [@clay](https://community.localwp.com/u/clay)
#### Post date: [June 8, 2017, 9:27pm UTC](https://community.localwp.com/t/re-importing-a-site/1779/3 "2017-06-08T21:27:44Z")

</div>

Hi Steven,

I just added this FAQ: [How can I restore a site from a Local site folder?](https://local.getflywheel.com/community/t/how-can-i-restore-a-site-from-a-local-site-folder/1791)

Please let me know how it works for you 🙂

---

<div class="post-metadata">

### Author: ![jps](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/jps/32/5006_2.png) [@jps](https://community.localwp.com/u/jps)
#### Post date: [August 29, 2017, 4:42am UTC](https://community.localwp.com/t/re-importing-a-site/1779/4 "2017-08-29T04:42:29Z")

</div>

hello, I am also trying to restore my local websites after a computer issue. I did exactly what the FAQ said but when I enter the text (myloader -p root -d /app/sql --overwrite-tables --database local) SSH, I get this error:  
\*\* (myloader:338): CRITICAL \*\*: the specified directory is not a mydumper backup

I am not advanced in this sort of thing but I assuming the directory is wrong. Could you please help. My Local sites folder is in my home directory on my Mac running Sierra 10.12.6

---

<div class="post-metadata">

### Author: ![jps](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/jps/32/5006_2.png) [@jps](https://community.localwp.com/u/jps)
#### Post date: [August 29, 2017, 4:50am UTC](https://community.localwp.com/t/re-importing-a-site/1779/5 "2017-08-29T04:50:32Z")

</div>

I just tried putting the line of code in a plain text file and then pasting into SSH and now I am getting the error:  
bash: -p: command not found

---

<div class="post-metadata">

### Author: ![tristanic](https://avatars.discourse-cdn.com/v4/letter/t/73ab20/32.png) [@tristanic](https://community.localwp.com/u/tristanic)
#### Post date: [February 13, 2019, 11:22am UTC](https://community.localwp.com/t/re-importing-a-site/1779/6 "2019-02-13T11:22:58Z")

</div>

Hi JPS, I have similar issues. Did you find a solution ? Thanks!

---

<div class="post-metadata">

### Author: ![tristanic](https://avatars.discourse-cdn.com/v4/letter/t/73ab20/32.png) [@tristanic](https://community.localwp.com/u/tristanic)
#### Post date: [February 13, 2019, 11:30am UTC](https://community.localwp.com/t/re-importing-a-site/1779/7 "2019-02-13T11:30:37Z")

</div>

Hi Steven,  
I have similar issues. I changed my hard drive into an SSD drive and I copied the local sites file. I tried to follow the procedure recommended by Clay but it did not work…  
Any advice on your side ? Thanks a lot…

---

<div class="post-metadata">

### Author: ![system](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/system/32/1_2.png) [@system](https://community.localwp.com/u/system)
#### Post date: [August 25, 2020, 6:32pm UTC](https://community.localwp.com/t/re-importing-a-site/1779/8 "2020-08-25T18:32:02Z")

</div>


