[SalesForce] How to deploy “Eclipse Backups” from personal folder to a Sandbox

As part of Sandbox refresh, we have archived a copy of all files through eclipse force.come IDE environment for a full Sandbox into a local folder.After the Sandbox refresh completed, now we need to deploy only the required files (approx 80 files) which might be pages,class,trigger,static resources etc.,. into a another Sandbox (it is s full sandbox which has production's copy after the refresh) again. So, is there any possibility to deploy the codes into Sandbox from local archived folder using Eclipse Force.com IDE?. I read this could be possible using ANT tool but I would like to know if there is any alternative approach to do this? Appreciate for any ideas on this.

Best Answer

I hope I have understood your requirement correctly here, but I would personally just copy the files that I wanted to deploy from the archived folder, into their respective folder on the operating system that the new project is deployed to. In Eclipse you can find out where the workspace folder is by selecting "Properties" from the right hand click context menu on the project name in the navigator, and then select "Resource":

properties

Head over to this folder and copy in the "right" or "new" versions of the files you want into their relevant subfolders. New files will of course just copy, most operating systems will warn you of a file replacement.

Then in Eclipse, click on the new project title, and hit F5 to refresh it (or select Refresh from the right click context menu) this will re-scan the source folders for these changes. Once the project has pulled in all the new and updated files, you can "Deploy" the files to the server.

You can either whip through and select all the changed files by hand and then right click, and from the "Force.com" menu select "Deploy to Server" and then follow the easy deployment wizard.

deploy files

or you can just right click on the project title and select the same deploy option and follow the wizard through.

This will push the local copies of the files up to the new Sandbox, and I hope, that is what you are trying to do?