Skip to content

Exporting resources

rjrudin edited this page May 8, 2017 · 14 revisions

As of version 2.7.0, the mlExportResources task can be used to export one or more resources via the Manage API. This task is largely based on the APIs in ml-app-deployer.

Supported resources

In version 2.7.0, support is provided for exporting the following resources:

  1. Servers, which by default exports the content-database and modules-database attached to each server.
  2. Databases, which by default exports the forests attached to the database (but not yet the triggers, schemas, or security databases, as those sometimes are the default ones that probably aren't worth exporting).
  3. Forests, though it's much more likely to just export the databases that forests are attached to.
  4. Scheduled tasks
  5. Users, roles, and privileges

More resources will be supported in future versions - the goal in 2.7.0 is to get something basic in place and get feedback on it and how it's used.

Selecting what to export

mlExportResources provides multiple options for specifying resources to export - each is specified via a Gradle property flag on the command line.

You can export resources whose name starts with a prefix:

gradle -Pprefix=myapp mlExportResources

You can export resources whose name matches a prefix:

gradle -Pregex=.*myapp.* mlExportResources
Clone this wiki locally