Scripting and Scheduling Administrative Tasks
MarkLogic Server includes built-in and library modules that enable you to write XQuery, JavaScript, and REST scripts that perform administrative tasks on MarkLogic Server. The functions provided by these modules enable you to script most administrative procedures.
For example, the Admin Library Module (admin.xqy
) enables you to write scripts that create or modify databases, forests, App Servers, set up SSL security, and so on. The Security Library Module (security.xqy
) provides a set of functions that enable you to create scripts that set up security entities. The xdmp
built-in functions enable you to do forest and database backup/restore operations, as well as other database and forest management operations.
For a general overview of scripting administrative tasks, see Scripting Administrative Tasks in MarkLogic Server in the Scripting Administrative Tasks Guide. All of the available administrative functions are described in the XQuery and XSLT Reference Guide and in MarkLogic REST API Reference.
You can schedule administrative scripts to be invoked at specific intervals or times, as described in Scheduling Tasks.