Export aliases

You can export your MashZone NextGen aliases.

Export creates an export file that you can use to import aliases to MashZone NextGen.

Procedure

  1. Open a command window and move to the <MashZone NextGen installation>/prestocli/bin folder.
  2. Enter this command:

    padmin exportAlias -i identify [-f output-file] [-l prestoURL] -u username -w password [-o] [-j]

    -i identifier: mandatory alias identifier. Supported identifiers are: type, name or all Supported types: PPM, FILE, DATABASE, EVENT, URL, TERRACOTTA, MATERIALIZED_FEED, BIGMEMORY_CONNECTION

    Examples

    - i "type=PPM": Aliases with type PPM’ are exported.

    - i "name=UMG_EN": Aliases with name UMG_EN are exported.

    - i "all": Export of all aliases 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:

    Export creates a new file alias-export-<timestamp>.zip

    This file must not already exist, unless you also use the

    -o

    option.

    -l prestoUrl: is optional. Use this if the MashZone NextGen 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/mashzone/.

    -u username: is the MashZone NextGen username to log in with. This account must have MashZone NextGen administrator permissions.

    -w password: is the MashZone NextGen password to log in with.

    -j is an optional flag to turn on inclusion jdbc driver JAR files in export.

    -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 aliases to MashZone NextGen.

Permissions for each alias were automatically stored into the ZIP file. If there are not any permissions assigned to the alias an empty permission file is stored.

There is also an information about the alias creator stored in the ZIP file.