# Zip file creates then immediately deletes site

**URL:** <https://community.localwp.com/t/zip-file-creates-then-immediately-deletes-site/41290>\
**Category:** Support\
**Created:** [February 9, 2024, 6:51pm UTC](https://community.localwp.com/t/zip-file-creates-then-immediately-deletes-site/41290 "2024-02-09T18:51:55Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![uniondesign](https://avatars.discourse-cdn.com/v4/letter/u/ccd318/32.png) [@uniondesign](https://community.localwp.com/u/uniondesign)\
**Post date:** [February 9, 2024, 6:51pm UTC](https://community.localwp.com/t/zip-file-creates-then-immediately-deletes-site/41290/1 "2024-02-09T18:51:55Z")

</div>

I have an infuriating issue that has come up before and just came up again.

Let’s say I’m doing a site redesign for company.local. I want a fresh install for the new build but I want to keep an archive of the old site too. So in local I change the following:

- name: Company (Old)
- domain: company-old.local

But the folder in Sites/ folder is still /company/. I don’t want that. That’s confusing. And I can’t seem to find any way to rename the site folder.

So I…

1. Make a zip of the old /company/ site folder in /Sites/
2. Delete the site in Local
3. Drag the zip file into Local to recreate the site
4. Tell the import to use…

- name: Company (Old)
- domain: company-old.local
- folder: company-old/

Local creates the new site and then **IMMEDIATELY** deletes it?! Huh?

---

<div class="post-metadata">

**Author:** ![sambrockway](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/sambrockway/32/18726_2.png) [@sambrockway](https://community.localwp.com/u/sambrockway)\
**Post date:** [February 9, 2024, 6:55pm UTC](https://community.localwp.com/t/zip-file-creates-then-immediately-deletes-site/41290/2 "2024-02-09T18:55:40Z")

</div>

Hello @uniondesign - thank you for your question. 👋

Can provide the Local Logs by chance? You can get a zip of those logs by clicking the “Download Local Log” button from the “Support” tab of Local. See this help doc for more information:

> **[Retrieve Local’s Log File](https://localwp.com/help-docs/troubleshooting/retrieving-locals-log-file/)**
>
> A big part of troubleshooting errors, on any website or application, is the log file. This file contains a record of actions or errors that have occurred when a process is done. When reaching out for…

I wonder if something is failing behind the scenes resulting in the site being deleted.

Thank you!

Sam 💚

---

<div class="post-metadata">

**Author:** ![uniondesign](https://avatars.discourse-cdn.com/v4/letter/u/ccd318/32.png) [@uniondesign](https://community.localwp.com/u/uniondesign)\
**Post date:** [February 9, 2024, 7:10pm UTC](https://community.localwp.com/t/zip-file-creates-then-immediately-deletes-site/41290/3 "2024-02-09T19:10:03Z")

</div>

Attached. I know I could just rebuild the archive site manually but dropping a zip seems much simpler. Also question, is there a way to rename / process for renaming the site folder?  
[local-logs.zip](https://community.localwp.com/uploads/short-url/iJ0o0NdTfvIKdA0102e5qnkxowI.zip) (2.4 MB)

---

<div class="post-metadata">

**Author:** ![sambrockway](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/sambrockway/32/18726_2.png) [@sambrockway](https://community.localwp.com/u/sambrockway)\
**Post date:** [February 9, 2024, 7:12pm UTC](https://community.localwp.com/t/zip-file-creates-then-immediately-deletes-site/41290/4 "2024-02-09T19:12:12Z")

</div>

Hi @uniondesign -

Something else you might want to consider is using the **Clone site** feature.

Would this workflow accomplish what you’d like to do?

1. Right-click the site \> Clone site. Give the site name / domain `Company (Old)` and `company-old.local`

2. Delete original site

3. Create a new site with the desired domain

Let me know what you think about that!

Sam

---

<div class="post-metadata">

**Author:** ![uniondesign](https://avatars.discourse-cdn.com/v4/letter/u/ccd318/32.png) [@uniondesign](https://community.localwp.com/u/uniondesign)\
**Post date:** [February 9, 2024, 7:27pm UTC](https://community.localwp.com/t/zip-file-creates-then-immediately-deletes-site/41290/5 "2024-02-09T19:27:34Z")

</div>

AHHH! Why didn’t I think of that. Thanks you. Filing that away in my brain for future reference.

---

<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:** [February 12, 2024, 7:06pm UTC](https://community.localwp.com/t/zip-file-creates-then-immediately-deletes-site/41290/6 "2024-02-12T19:06:36Z")

</div>

Closed on February 12, 2024, 7:06pm UTC

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.

---

<div class="post-metadata">

**Author:** ![sambrockway](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/sambrockway/32/18726_2.png) [@sambrockway](https://community.localwp.com/u/sambrockway)\
**Post date:** [February 12, 2024, 7:06pm UTC](https://community.localwp.com/t/zip-file-creates-then-immediately-deletes-site/41290/7 "2024-02-12T19:06:44Z")

</div>

Hi @uniondesign -

Awesome! Glad to hear that worked for you.

Sam
