Help Centre › Building Processes
This article describes the RPA Compression functionality to create a TAR archive.
For a full list of available functions, please read COMPRESSION functions.
Description
The Create TAR function creates a new TAR archive from a file or directory. Optionally compresses the archive with gzip to produce a .tar.gz file.
Setting it up
To use the Create TAR function, follow these instructions:
{{popups:rpas/add:action=tar-create}}
Once on a process map:
- Navigate to the process where you would like to add the Create TAR function
- Click on the green button’s drop-down (right side of the green button labelled “Process”)
- On the menu that appears, click on the “+ Activity” item
- From here you can select the COMPRESSION Create TAR option
- Click "Add" once you are done
Input parameters
| Parameter | Required | Type | Default | Description |
|---|---|---|---|---|
| Archive Path | Yes | Text | - | The path for the output TAR file |
| Source | Yes | Text | - | The file or directory to include in the archive |
| Compress | No | Boolean | true | Whether to compress with gzip (produces .tar.gz) |
Output variables
This action does not produce output variables.
Errors
| Error | Description |
|---|---|
| Source not found | The source file or directory does not exist |
| File write error | Could not write the archive to the specified path |
Tips
- Set compress to true to produce a .tar.gz file for smaller archive size
- TAR preserves Unix file permissions, making it ideal for Linux/macOS file transfers