Instance cloning
What a clone copies from production to a non-production instance, what runs after it, and when to use a change set instead.
Instance cloning copies an existing instance, the source, over another instance, the target. It is how administrators bring a development or test instance back in line with production.
This page is for customers with a production instance and at least one non-production instance. If you have production only and want a non-production instance, ask your account manager or raise a support request.
What a clone copies
The target receives everything the source holds: configuration, data such as tickets, users, companies, locations and configuration items, and user permissions. The result is a working replica of the source. Anything that existed only on the target is overwritten.
| Question | Answer |
|---|---|
| Which instances can I clone? | Any instance, except that cloning a non-production instance over production is disabled. |
| How current is the data? | A clone uses the last backup of the source, so the data is usually less than 24 hours old. |
| Does the source go down? | No. The target has a short outage while the clone runs. |
| How long does it take? | It depends on the size of the source and on scheduled maintenance. Servicely gives you an estimate when it processes the request. |
| Can I cancel? | Yes, if the clone has not started. Contact support as soon as possible. |
Cloning and change sets
A clone replaces the whole target. A change set carries only the configuration you tracked and leaves everything else on the target alone. Never use a clone to promote work from a non-production instance to production. Use a change set, as described in Deploy a change set.
Work in progress on the target is lost in a clone. Close and export open change sets before the clone, and export any data you want to keep to a spreadsheet or CSV file. Import them again after the clone.
What runs after a clone
The target starts with the production configuration, so it would read the production mailboxes and email your users. System configuration scripts prevent this. A script whose Run on triggers includes Instance clone runs on the target when it starts after a clone.
Servicely ships one such script, “After clone record update”. It does three things:
- deactivates the “Inbound email processing” and “Outbound email processing” jobs
- deletes the global search sync states, so the target builds its own search index
- clears the job scheduler and registers only the jobs that are still active
The same script holds commented-out lines that deactivate all messaging accounts and outbound tokens, or clear the token keys. Implementation projects often add scripts of their own for other non-production settings.
What you set up again
Integrations, single sign-on and email arrive configured for production. Reconfigure each of them for the target before you reactivate its jobs. Email stays off until you reactivate the two email jobs under Administration → Configuration → Jobs.