---
schema_version: "1"
id: 87d9672d249b88db14d3c5968379ff583e413384951ff4d83a3f8684c61f8f65
title: Copy and Overwrite a Site
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/platform/264-0-0/siteforce_website_sandbox.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.siteforce_website_sandbox.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 837e3d944095b19cd17bf9808ac190a119c4f75f0e314c58410a53dfe141ac6a
description: Export a copy of your site, and then use the overwrite feature to replace your current production Site.com or Site.com community site with the exported file.
products:
  - Salesforce Platform
  - Security
release: "264"
---
# Copy and Overwrite a Site

Export a copy of your site, and then use the overwrite feature to replace your current production Site.com or Site.com community site with the exported file.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition">
        <colgroup>
          <col>
        </colgroup>
        <tbody>
          <tr class="">
            <td class="slds-cell-wrap" style="vertical-align:top;">Available in: Salesforce Classic</td>

          </tr>
          <tr class="">
            <td class="slds-cell-wrap" style="vertical-align:top;">
              <p>Available for purchase in: <strong>Enterprise</strong>, <strong>Performance</strong>,
                and <strong>Unlimited</strong> Editions</p>
              <p style="margin-bottom:0;">Available (with limitations) in:
                <strong>Developer</strong> Edition
              </p>
            </td>

          </tr>
        </tbody>
      </table> <table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small permission">
        <colgroup>
          <col style="width:50%">
          <col style="width:50%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="colgroup" class="slds-cell-wrap" colspan="2" style="text-align:center;vertical-align:top;" id="d16993e74">User
              Permissions Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d16993e74 ">To overwrite sites:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d16993e74 ">
              <p style="margin-bottom:0;">Site administrator or designer role assigned at the site
                level</p>
            </td>

          </tr>
        </tbody>
      </table>

First, export a copy of your site from your Site.com Studio. Next, import the exported .site file into production using the overwrite feature. Overwrite replaces your production site with the imported site. You can only overwrite sites that are the same type. For example, you can't overwrite a Site.com site with a Site.com community site.

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-extend_click-264-0-0-production-enus/5f7d9219-b7b1-4552-8891-f1aba9b289fc/images/icon_note.png)

Note We recommend only overwriting Aura sites, and only using Aura .site files to do so. To replace a Build Your Own (LWR) site with an Aura .site file, or to replace any site using a Build Your Own (LWR) .site file, import the .site file to a new site instead.

1. Create your .site file using the [export](https://help.salesforce.com/s/articleView?id=platform.siteforce_website_export.htm&release=264.0.0&type=5 "You can export your site from Site.com to your hard drive. The site is exported in a packaged format with a .site extension, which you can import into another Salesforce organization. The maximum site size you can import is 2 GB.") feature in Site.com Studio.
2. From Site.com Studio in your production site, click **Site Actions** | **Overwrite This Site**. Alternatively, if you have access to the Site.com tab, you can click ![Arrow Menu in Site.com](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-extend_click-264-0-0-production-enus/5f7d9219-b7b1-4552-8891-f1aba9b289fc/extend_click/images/siteforce_icon_arrowdrop.png) next to the site name to find **Overwrite**.
3. Click **Browse** to find and select the .site file you exported.
4. Click **OK** at the overwrite warning.
    
    ![Warning](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-extend_click-264-0-0-production-enus/5f7d9219-b7b1-4552-8891-f1aba9b289fc/images/icon_warning.png)
    
    Warning You can't revert after you overwrite a site.

Here are a few tips when using overwrite:

- You must publish the site you overwrote for changes to take effect.
- When copying a site, the production site is overwritten. Be sure to back up your production site by exporting a .site file before you overwrite.
- Overwrite doesn’t copy data changes. For example, if you created a custom object to use in a repeater in the site that you’re copying from, the repeater doesn’t work in the production site until you create the same custom object.
- If the production site has assets that don’t exist in the site that you’re copying from, they’re moved to the trash can during the overwrite process so you can restore them if needed.
- If your copied site has a different name than your production site, the production name is preserved and only the contents are changed. For example, if your site is called Site One and you overwrite your production site called Site Two, the production site is still called Site Two.

#### See Also

- [Export a Site.com Site](https://help.salesforce.com/s/articleView?id=platform.siteforce_website_export.htm&release=264.0.0&type=5 "You can export your site from Site.com to your hard drive. The site is exported in a packaged format with a .site extension, which you can import into another Salesforce organization. The maximum site size you can import is 2 GB.")
- [Use the Metadata API to Deploy a Site](https://help.salesforce.com/s/articleView?id=platform.siteforce_website_api_overview.htm&release=264.0.0&type=5 "As a user, you can migrate a site from sandbox to production. You can use the Metadata API to create a deployable package for Site.com sites and Site.com Communities sites.")