function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
krupananda reddykrupananda reddy 

How do i take metadata backup of an salesforce org ?

How can take entire metadata backup of my production org apart from using Force.com IDE or Third party priced tools.
Solutions and suggestion are welcome, thanks in advance.
 
KaranrajKaranraj
Create/refresh a developer sandbox which will copy and move all the metadata information from production to sandbox instance. This is one of the way to take backup of production metadata.
surasura
you can use anit migration tool and save your metadata  to harddisk . refer https://developer.salesforce.com/page/Force.com_Migration_Tool it is free .
Amit Chaudhary 8Amit Chaudhary 8
Download Force.com Plugins
Link :- https://developer.salesforce.com/page/Force.com_IDE_Installation
Then:-
  • Create new project and select Force.com
  • Enter username, password,security Token
  • Select Environment in which you have to take backup e.g Sandbox.
Step by Step process link :-
http://salesforce.stackexchange.com/questions/34760/how-to-deploy-eclipse-backups-from-personal-folder-to-a-sandbox

Another way is to use the Ant Tool
Link:- http://www.salesforce.com/us/developer/docs/daas/Content/forcemigrationtool_install.htm
LINK:- http://learningthecloudway.blogspot.in/2013/02/how-to-use-ant-for-metadata-backup.html

How to Step Up ANT :-
Link:- http://www.salesforce.com/us/developer/docs/daas/salesforce_migration_guide.pdf

 
krupananda reddykrupananda reddy
Thanks everybody for your reply, As i mentioned in my question there should not be any tool used such as Force.com IDE or Ant. In fact my direct question to the developer community would be, Can we take backup of entire org's metadata to the local machine ? especially by using Metadata API or something similar ?
surasura
with ant you can backup your enteir meta data to your local machine . 
K.G.K.G.
Krupananda Reddy, unfortunately, you can't get a backup of your org's metadata without using and configuring some sort of tool.  The only user interface that Salesforce provides for downloading your org's metadata is an HTTP "SOAP"-based programming API that is a real pain to make HTTP requests against by hand.  The tools people are mentioning take care of a lot of the annoying work involved in fetching information over that API.

Typically, if people just want to manually download their information once, they use a graphical user interface with this functionality built in, such as Eclipse + the Force.com API.

Typically, if people want to write scripts to download their information on a scheduled basis, they use a command line interface with this functionality built in, such as Ant + the Force.com Migration Tool (sometimes combined with scripts they write in another command-line interface-based programming language that communicate with the data in their organization over Salesforce's ordinary HTTP "REST"-based programming API).  Here's one such example:  https://developer.salesforce.com/page/Syncing_Salesforce_Org_Metadata_to_Github
Mat HamlinMat Hamlin
WIthout using the Force.com IDE or the Java/Ant tool, the easiest way is to use the force.com command line interface (CLI).

https://force-cli.herokuapp.com/

Once you have this installed:  
  • Open a Mac or Windows command line and navigate to the installed file.
  • Type force login from the command line.  This will open a web browser and prompt you to login.  
  • After the login is complete, close the browser window and switch back to the command line.
  • Type force export.  This will download your metadata to the directory you are currently in.  Optionally, you can pass a directory name, like this: force export metadata_export_080917
Alternatively, you can look at automated backup and recovery tools, like Spanning Backup for Salesforce (https://appexchange.salesforce.com/listingDetail?listingId=a0N3000000B51BgEAJ) ( <-- where I work).

Hope that helps.
mwaidnermwaidner
@Karanraj Within a developer edition it is not possible to build sandboxes. This feature is not available.
AlvinBCAlvinBC
Found a really good app for this. Octopus - https://appexchange.salesforce.com/appxListingDetail?listingId=a0N3000000B5cEKEAZ
Juliver AnoosJuliver Anoos

Use visual basic and and retrieve metadata names thru a command via sfdx:

to retrieve:

sfdx force:source:retrieve -m CustomObject,ApexClass,AuraDefinitionBundle,ApexPage,ApexTrigger,Profile,PermissionSet,Workflow,ApprovalProcess,DuplicateRule,CustomSite, SharingRules,Community,SiteDotCom -u <org default username>
 


 

rishu rathorrishu rathor
Hi,
You can try File ZIPO, a native appexchange application that integrates your Salesforce org with the most-popular external cloud storage platforms, viz. OneDrive, Amazon S3, Google Drive, Dropbox & Box.com.
here's link - https://appexchange.salesforce.com/appxListingDetail?listingId=a0N3u00000OMscFEAT