Creating Config File ==================== We recommend running ecs-sync by submitting an XML configuration file as a job. To this end we’ve built and included a new XML generator tool. This tool will generate a template configuration file to include the necessary plugins for your migration. This is done according to the options passed to it. Running the generator constructs an XML file that has all of the available options set to their defaults (if available). Please note: ------------ - This tool does not create a complete configuration, only a template that must be expanded and/or modified before it is ready to be run. - The XML generator tool does not currently include error checking. This means that incorrect values, if passed into the generator, will also be passed into the newly created XML configuration file. **Please review the generated XML file before submitting it as a job to ecs-sync in order to ensure a successful migration.** - Several sample configuration files are included in the repo under ecs-sync/sample. Please refer to these samples when building your configuration file. - Some options will appear in the template with a value, but that value may not be valid. When generating, you can also optionally include comments describing each option and it's possible values and default value. The new generator is part of the ecs-sync-ctl tool and invoked like so: ----------------------------------------------------------------------- :: usage: java -jar ecs-sync-ctl-{version}.jar --xml-gen [--xml-comments] [--xml-source ] [--xml-filters ] [--xml-target ] --xml-comments Adds descriptive comments to the generated config file --xml-filters A comma-delimited list of names of filters to use as the source in the generated config file (optional) --xml-gen Generates a verbose XML config file for the specified plugins --xml-source The prefix for the storage plugin to use as the source in the generated config file --xml-target The prefix for the storage plugin to use as the target in the generated config file Notice that XML Generator requires three arguments to run successfully. They are: - Desired name of the xml file being created - Necessary storage plugin for source - Necessary storage plugin for target Available storage plugins and their appropriate uses can be found `here `__. For example ``ecs-sync-ctl --xml-gen example.xml --xml-source s3 --xml-target ecs-s3`` outputs the file ``example.xml`` for a sync **coming from** s3 type storage and **going to** ecs s3 type storage. Example.xml sets the following options for the transfer: :: 524288 dbConnectString dbFile dbTable false false false quiet true true false 2 sourceListFile false true true false 16 1000 false false false for the source: :: accessKey bucketName false false false host false keyPrefix false 128 4 512 -1 false protocol secretKey 50000 and for the target: :: accessKey false bucketName false false false false host false keyPrefix false 128 4 512 0 false protocol secretKey true 15000 60000 vdcs As noted previously, many fields, such as accessKey, bucketName, protocol, port, secretKey, etc. are set to placeholder values and must be changed accordingly depending on each specific case. ***Without changing these placeholder values the configuration file cannot be run successfully***. All values not filled with a placeholder are set to default values that may or may not apply to any particular case. ***Be sure to review these values before submitting as a job*** as they may need to be changed in order to fit your situation.