--- title: "ExportProfiles" slug: "export-profiles" updated: 2026-08-06T07:01:00Z published: 2026-08-06T07:01:00Z canonical: "docs.lobstersoftware.com/export-profiles" --- > ## 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. # ExportProfiles ## Description The ExportProfiles class exports profiles in `.pak` and `.xml` format to a defined directory. Per line, the class expects a profile ID or a profile name. It always interprets each line as an ID first. The input comes from the input file. This is either a file directly or, for example, a database query in the Input agent (see example profile). A profile that uses this class therefore does not need an active Mapping. You cannot re-import exported `.xml` files as profiles. You can re-import `.pak` files. The `.xml` files are only for documentation or a profile comparison (diff). > [!NOTE] > **NOTE:** You can use this class to create automated profile exports as a backup, for example. ## Parameters As the only parameter, enter the path of the target directory. Enter it in the **Additional parameters** field. ## Example ```Exampleinput -1301252d:150cc436e03:2d4a.63f3351b93729ea1:-1301252d:150cc4360e1:-7ff8 XML_ORDERS ``` With this input and the parameter `./temp/export/profiles/`, the class creates the respective `.pak` and `.xml` files for both profiles. They are located in the `./temp/export/profiles/` directory. **Example profile:** [Profile-Custom_response_ExportProfiles.pak](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/Profile-Custom_response_ExportProfiles.pak) In the example profile, a database query determines all existing profile IDs. The class thus exports all profiles. > [!NOTE] > **NOTE:** The SQL in Phase 1 is suitable for a MySQL database. For a different database, you may need to slightly adjust the syntax. For an Oracle database, for example, remove the semicolon (;) at the end. The input agent receives data in Phase 1 and starts a job for further processing. It works either as event based (passively waits for data) or scheduled (actively fetches data). The core task of Phase 3. Mapping transfers data from the source structure to the target structure according to defined rules. In the process, fields can be transformed, functions can be called, and values can be calculated. Input: An input agent receives the data. It can work either as event based (e.g. FTP upload) or scheduled (cron).