Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I back-up a SalesForce package?

Tags:

salesforce

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?

like image 726
Ian Warburton Avatar asked Mar 06 '12 16:03

Ian Warburton


1 Answers

There are a few options to backup or add version control to your Salesforce configuration or Apex code.

  1. 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).

  2. 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.

  3. 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).

like image 162
Matt K Avatar answered Nov 12 '22 17:11

Matt K