Exporting data feeds
You can export your Business Analytics data feeds.
Export creates an export file that you can use to import data feeds to Business Analytics.
Procedure
1. Open a command window and move to the MashZoneNG-install/prestocli/bin folder.
2. Enter this command:
padmin exportFeeds -i identifier [-f output-file] [-l prestoURL]
-u username -w password [-v] [-o]
-i identifier: mandatory data feed identifier. It can be "id=", "name=" or "all", enclosed in quots.
-i "name=feedname": If there are multiple data feeds with the same name then only the first founded data feed will be exported.
-i "id=43243244434432": The data feed id (Guid) is unique in the Business Analytics system.
-i "all": Export of all data feeds for that user.
-f output-file: an optional path and name for the export file to put data feeds. If omitted, this generates an output zip file in the folder where this command is executed:
Single export with option -i "id=3456" or "name=name" create a new file with name "name_guid.zip" Multiple export with option -i "all" create a new file datafeed-export-timestamp.zip This file must not already exist, unless you also use the -o option.
-l prestoUrl: is optional. Use this if the
Business Analytics Server is remote or if it is not running in Tomcat on the default Tomcat port. If you omit this option, this defaults to
http://localhost:8080/presto/esd/api.
-u username: is the
Business Analytics username to log in with. This account
must have
Business Analytics administrator permissions.
-w password: is the
Business Analytics password to log in with.
-v: is an optional flag to turn on verbose logging.
-o: an optional flag to overwrite an existing export file. If you omit this option, the output file must not already exist.
Once the export command completes successfully, you can use the output file to import data feeds to Business Analytics.
Permissions for each data feed were automatically stored into the zip file. If there are not any permissions assigned to the data feed an empty permission file is stored.
There is also an information about the data feed creator stored in the zip file.
Example
padmin exportFeed –l http://localhost:8080/presto/esd/api -f feedDefinition.zip
-u Administrator -w manage –i "id=MyFeed"
This created zip file "feedDefinition.zip" contains all information of the data feed "MyFeed" incl. definition and permissions.