Improving Enterprise Development in the Cloud – Part 2

(c) FreeFoto.comThou Shall Backup Production before Deploying

Enterprise Development, as I stated in the introduction, must effectively coordinate the efforts of a development team. By organizing around a source code repository, you have a source of truth than enables you to always know what is in production, helping your team to quickly replicate your production environment.

Another powerful practice is to back up your production environment before deploying any new changes. This seemingly simple practice is necessary to mitigate against the risk of production deployments that don’t go according to plan. I have personally witnessed production deployments that tested fine in development, QA and UAT environments not work in production due to configuration and/or data discrepancies. When this happens, having a plan of action to be able to roll back to a previous configuration is critical to minimize downtimes for people using the systems.

Backing up production before migration becomes even more important when you cannot completely automate the migration process. On the platform, because there is no way of extracting a complete representation of configuration and code that describes a organization, there will be certain types of configuration that will need to be done manually. This means that certain configurations may not exactly match how the lower environments were configured and cause problems in production. And if you don’t remember the exact steps, or have incomplete or missing documentation, you would like to be able to roll back to a known good state.

Unfortunately, the ability to backup and restore a Salesforce organization is not available on the platform. (You can schedule a weekly backup of your data, but not your configuration and code). Instead, if you want to test your deployment before moving to production, you are forced to create a full copy sandbox and test your deployment process within the sandbox. Sounds like a great alternative, except for one, minor detail. You can only refresh a full copy sandbox every 29 days. So if you manage to screw up a deployment and want to test it again, you will need to wait until you can refresh it.

I did find a suggestion at that speaks about having the ability to restore using a snapshot metaphor. If you think that this would be a valuable addition to, I encourage you to vote on it here.

In the meantime, what practices have you invented for minimizing the risks of failed production deployments within the platform?

This entry was posted in Backup, Commentary, PaaS, Practices,, Sandbox, Software Development. Bookmark the permalink.

One Response to Improving Enterprise Development in the Cloud – Part 2

  1. Chinarut says:

    thank you! very well put – it amazes me this wasn’t architected in the system in the first place. Putting my vote in.

Leave a Reply

Your email address will not be published. Required fields are marked *