DBSync Cloud Replication process can be initiated in Batch mode and the same is explained in this section.
Existing command: %JAVA_HOME%\bin\java -Xmx512m -Dinstance=%1 -Dconfig.dir=%CONFIG_DIR% -classpath %CLASSPATH% com.dbsync.salesforce.dbsynch.Driver %2 %3 %4 |
New command: %JAVA_HOME%\bin\java -Xmx512m -Dinstance=%1 -DconsoleExitCode=true -Dconfig.dir=%CONFIG_DIR% -classpath %CLASSPATH% com.dbsync.salesforce.dbsynch.Driver %2 %3 %4 set ExitCode=%ERRORLEVEL% echo %ExitCode% |
Commands to run replication with example is shown below.