GithubHelp home page GithubHelp logo

niv-shah / force-meta-backup Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alan-morey/force-meta-backup

0.0 1.0 0.0 98.25 MB

A tool to help download Salesforce.com Metadata

Groovy 100.00%

force-meta-backup's Introduction

force-meta-backup

A tool to help download Salesforce.com Metadata.

Using the Salesforce Metadata API, this tool will dynamically generate Ant build.xml files and Salesforce Metadata package.xml files for downloading the Metadata from your Organisation.

The metadata is downloaded in 3 phases:

  • All bulk retrievable components are downloaded first, the bulkRetrievable Ant target is dynamically generated and executed.
  • Queries are performed on the Salesforce Org. to determine all folders for Dashboards, Documents, Email Templates and Reports. Then build.xml and package.xml files are dynamically generated with this information. A bulk retrieve is then invoked for all folders and content.
  • The remaining miscellaneous metadata components that can not be retrived by bulk or by wildcard methds are downloaded by building a package.xml file that explicitly lists these items.

It uses the Force.com Migration Tool along with Ant to do most of the heavy lifting. Salesforce SOAP API and Metadata API are used in a Groovy script to dynamically build up lists of components for downloading.

Inspired by:

http://wiki.developerforce.com/page/Syncing_Salesforce_Org_Metadata_to_Github https://github.com/danieljpeter/salesforceMetadataBackup

Prerequisites

The following tools should be installed before use:

Ensure the GROOVY_HOME environment variable is defined and you are able to execute both ant and groovy on command line: e.g.

$> ant -version
Apache Ant(TM) version 1.8.2 compiled on December 3 2011

$> groovy -version
Groovy Version: 2.1.5 JVM: 1.7.0_51 Vendor: Oracle Corporation OS: Linux

Usage

  • Copy build.sample.properties to build.properties
  • Edit build.properties and specify your Salesforce credentials
  • Open command prompt and enter command ant backupMetadata

The results will be downloaded to build/metadata

force-meta-backup's People

Contributors

alan-morey avatar ranad avatar

Watchers

Nirav Shah avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.