function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
mandycmandyc 

Clone entire Salesforce environment

Hello,

 

We are looking to create an exact clone of our production Salesforce instance into a new, completely separate enterprise instance of Salesforce. I would like everything to clone over such as custom objects, fields, triggers, workflows, apex classes, visualforce pages, etc. Has anyone been through a similar situation? I'm looking for all and any advice on the easiest way to complete this task.

 

Thank you in advance!!

JayNicJayNic

Yes! 

 

there are a couple ways:

 

The simplest way (that will probably not work) is to bring everything in to your Force.com IDE, then right click on it and select "deploy to server" to send it to another org.

 

However, there are currently limitations on what can be sent this way: master-details for example are a no go. It also get's all tripped up on the order of execution in what it shoudl deploy - and will tell you things don't exist because it hasn't deployed them properly.

 

If your org is simple - then this is the way to go.

 

 

However, I used the Force.com Migration Tool here: http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_deploying_ant.htm

And after a few attempts, got it to work wonderfully.

 

Keep in mind, if you have features in your org enabled, you will need to have those features enabled in your Dev Org before you can deploy to it. Multi-Currency for example. So create your dev org, then call salesforce suypport (dev orgs cannot open cases from the interface - you must call) and get those features enabled.

Kal GillKal Gill
Hi,

I am also trying to clone a org from a seperate customer, using the Migration tool and am running into the issues you mentioned JayNic. 
You mentioned you got it to work, can you please share your method, especially regards order of execution, existing features ? 

Thanks,
Kal
 
Sanjay RaoSanjay Rao
Hi Guys,

Wondering if anybody in this thread have been able to port the meta data and data from a Production managed Package SFDC Org into another similar org which is empty ? And if yes, is the Force.com Migration Tool the only way to achieve this ?  
Kal GillKal Gill
The ANT migration tool is the one to use. However we were unable to perform a clean migration, and have had to perform some manual cleanup.