Clone an SXA site

Version: 10.4

With SXA, you can quickly create a duplicate of a site by using the clone script. With a cloned site, you have an exact copy of the images, content, themes, and so on. The site operates exactly as the original, with the exception of the domain name. This can be convenient when you want to create a copy of your site to test modifications, create a live backup of your site, or deliver your site across different environments.

If you use the clone script to clone a site, the script copies all site content, themes, and media library items and changes the file locations to point to the new site, as follows:

  • The site content – /sitecore/content/<site collection>/<site>

  • The site themes – /sitecore/media library/Themes/<site collection/<site>

  • The site media library items – /sitecore/media library/Project/<site collection>/<site>

To create a clone of an SXA site:

  1. In the Content Editor, right-click the site item, click Scripts, and click Clone Site.

    You can clone a site under the site item in the Content Editor.
  2. In the Clone a Site dialog box, enter a name, select the target location for the clone, and click OK.

Note

You can only place the clone under a site folder or site collection item. By default, the clone appears under the same site collection item as the source site.

Do you have some feedback for us?

If you have suggestions for improving this article,