Sunday 8 February 2015

Salesforce Components Daily Automatic Backup Process

Dev Folks, 

Being a developer components management are most important part for us in any application. So we need backup always. 

But again taking-up a backup is very tedious/time taking challenge. So here I am presenting a process to setup Salesforce Components Daily Automatic Backup

For this first of all, you need ANT setup in our machine. If you want to know how to setup ANT, please visit one of my previous blog How to Setup ANT.

Moving ahead now we need to setup a folder like below


In above folder we should have:
1.) Build.xml 
2.) Build.properties 
3.) run.bat 

for All sample files you can click here .

Now it is time to our schedule backup script in windows scheduler. For this Please follow below steps 

Step1. Open Windows Scheduler->Create Basic Task-> Provide Name of the Task


Step2 : In Trigger select "Daily" 
Step3 : In Action fill what time you want to schedule it 
Step4 : In Action "Start Program" 
Step5 : In "Start Program" provide path of run.bat


Step6 : click on finish. 

Now all Set and so enjoy your work without worrying about your backup.