I’ve started working on an existing app and the only copy of the code is in SalesForce. How do I back this up (export it) such that I can rollback to this original code if I make a mess?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There are a few options to backup or add version control to your Salesforce configuration or Apex code.
Only edit code or make configuration changes in a Sandbox (Setup -> Administration Setup -> Data Management -> Sandbox) or Developer Edition. This keeps your changes separate from your production instance in case something goes wrong, and if the Sandbox gets too messed up, you can always refresh it from production and start clean (losing all previous work).
You can use Subversion through the Force.com Eclipse IDE for version control (for code or object configuration). Check out this answer for details on how to set it up.
Another option is to create multiple Sandboxes, if your Salesforce edition allows it, as “snapshots” of your instance. However, Sandboxes do expire (after 30 days of being inactive).