Skip to main content

Clone Site

Table of Contents

Introduction

The Clone Site job enables you to create an exact replica of an existing site. This process involves duplicating all essential elements, including entries, views, sections, lists, URLs, and tags, allowing you to set up new instances with identical configurations. Clone Site is particularly valuable for testing environments, creating backup instances, or establishing new sites based on proven structures. After cloning, the new site can be customized independently of the original.

Cloned Entities

OptionDescription
EntriesClones all entries associated with the original site, including entry data, tags, and sections.
ViewsDuplicates all view settings, maintaining the same display structure for the cloned site.
SectionsReplicates all sections, ensuring organizational consistency across the cloned and original sites.
ListsClones lists, including configurations and associated entries.
URLsDuplicates all URLs, providing identical link structures in the new site.
TagsCopies all tags associated with entries, preserving tagging schemes.

Logging Details

After the Clone Site job is completed, detailed logging messages provide insights into the cloning process. These messages summarize the outcome of each element cloned, ensuring you can verify the completeness and success of the operation. Below you can find the logging messages you may encounter:

MessageDescription
New site is created!Confirms the new site was successfully created as a replica of the original.
Cloning entities in site has started!Indicates that the cloning of entities has started.
Cloned [count] entriesSpecifies the number of Entries successfully cloned.
Cloned [count] viewsSpecifies the number of Views duplicated.
Cloned [count] sectionsShows the number of Sections replicated in the new site.
Cloned [count] listsDetails the count of Lists cloned.
Cloned [count] URLsNotifies the number of URLs duplicated.
Cloned [count] tagsProvides the count of Tags cloned along with entries.
Invalid site id: [siteId]!Indicates that an invalid siteId was provided.
Site alias is requiredNotifies that a site alias must be provided.
Site name is requiredNotifies that a site name must be provided.
New Site id is required!Indicates that a new site ID is required.
Site with id: [siteId] not foundNotifies that the site ID was not found.
Site alias is already in use.Indicates that the site alias provided is already taken.
Unable to clone [Entity] documents on attempt [attempt].Informs that an entity could not be cloned on the specified attempt.
Retrying cloning [Entity] documents on attempt [attempt]. Next attempt at [time] UTC in [minutes] minutes.Indicates a retry with the time for the next attempt.
Stopped retrying cloning [Entity] documents after [attempt] attempts.Confirms that retries stopped after the specified number of attempts.
Finished Cloning/DeepCloning [Entity] documents!Confirms the successful completion of cloning/deep cloning for the entity.
Clone site completed successfullyConfirms that the Clone Site job was executed successfully.

These logging messages give you complete transparency over the Clone Site job, allowing you to track the progress of each component duplicated. Whether cloning for testing, backup, or to create a new instance, these logs help ensure accuracy and traceability throughout the cloning process.