-
Notifications
You must be signed in to change notification settings - Fork 80
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.
In version 2.7.0, support is provided for exporting the following resources:
- Servers, which by default exports the content-database and modules-database attached to each server.
- 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).
- Forests, though it's much more likely to just export the databases that forests are attached to.
- Scheduled tasks
- 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.
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