Force.com Apex Data Loader for Linux/Mac - command line version
This project provides the missing configuration and scripts for running the Apex Data Loader from Linux or Mac command line. The Apex Data Loader provided by Salesforce.com is for Windows only but it is a Java jar file that can be run on any platform that supports a JDK. The scripts are solely for executing the data loader from a command line and do not provide the GUI that is available in the Windows and the open source Mac versions.
The open source version of dataloader is available from: https://github.com/forcedotcom/dataloader
##Requirements:
-
Java 1.6+, available in the PATH
-
DataLoader JAR file from Windows or built from the open source project. (The current name/version of the jar file is: dataloader-30.0.0-uber.jar)
##Steps:
- Clone this project
$ git clone https://github.com/sthiyaga/dataloader.git
- Copy the dataloader-30.0.0-uber.jar file to dataloader/ directory
- Generate the private key to encrypt the password
$ bin/encrypt.sh -g <some-random-seed-text>
- Copy the output from Step 3 above to conf/private.key (replacing the text in there)
- Encrypt the salesforce password (+security token, if required) using the generated private key
$ bin/encrypt.sh -e "password+security token" conf/private.key
- Copy the output from Step 4 above to the conf/config.properties file for the sfdc.password token
- Update the conf/config.properties file with sfdc.username and sfdc.endpoint token values
- Optionally, adjust any other parameters in the conf/config.properties file
- Run the sample account extract process
$ bin/process.sh csvAccountExtractProcess
This should produce the output file in the data/ directory and if the debug log was enabled, the trace file in the status/ directory.
Enjoy!
-Senthil