--- title: "replicate file()" slug: "system-replicate-file" updated: 2026-08-17T11:57:50Z published: 2026-08-17T11:57:50Z canonical: "docs.lobstersoftware.com/system-replicate-file" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # replicate file() This function can be used to replicate files or entire directories from the Node Controller to all active working nodes in a Load balancing system. The function can only be executed on an active node controller. **NOTE:** See also [Configuration of a node controller](/v1/docs/en/load-balancing-node-controller) (→ "replicateFiles" and "replicateAdminFiles"). The return value on success is "true". If an error occurred during replication or the Working Node is not active, the return value is "false". If working nodes are not active, no error occurs and the return value is not "false". If an unauthorised path was specified (→ see parameter **b**), the Profile terminates with an error. ## Parameters | Parameter | Description | | --- | --- | | a | Directory or path to file. Only the paths "./conf/" and "./etc/admin/datawizard/semantic" (only files with the extension ".xml" are replicated here and the [rules](/docs/en/phase-2-semantic-check) are read in again on the working nodes) are allowed. See examples. | | b | (optional) File encoding. Default: "ISO-8859-1". **NOTE:** Use the three dots to select a value. | ## Examples | Parameter a | Parameter b | Result | | --- | --- | --- | | ./etc/admin/datawizard/semantic | | All files from this directory with the extension ".xml" are replicated from the node controller to all active working nodes. The rules are read in again there. The return value of the function is "true". | | ./conf/ | | All files from this directory are replicated from the node controller to all active working nodes. The return value of the function is "true". | | ./conf/example.txt | | The specified file is replicated from the node controller to all active working nodes. The return value of the function is "true". | | ./etc/admin/datawizard/ | | Profile terminates with error, as directory not permitted. | Controlling server in Lobster's optional Load Balancing module. The Node Controller distributes incoming tasks across several additional servers (Working Nodes) and coordinates them. The module is operated only through it; some tasks run only on it, and a DMZ server must point to the Node Controller. The Lobster Data Platform's operating mode ensures high availability and scalability. A node controller accepts input data and distributes processing tasks to any number of working nodes using a round-robin or load-balancing algorithm. If the node controller fails, a working node takes over its role. Additional server that takes on part of the processing within the optional Lobster Load Balancing module: it carries out the tasks assigned to it by the Node Controller. Multiple Working Nodes increase throughput. A Working Node can only be used once it has been activated in the Node Controller. A profile is the central configuration unit in the Lobster Data Platform. It receives data, processes it, and forwards it. Configuration is done graphically, with no programming required.