dump(request) {
    const waitForRefresh = request.input.args.refresh === "wait_for";
    const suffix = request.getString("suffix", "manual-api-action");

    const promise = global.kuzzle.dump(suffix);

    return this._waitForAction(waitForRefresh, promise);
  }
Generate a dump
Kuzzle will throw a PreconditionError if a dump is already running