File & Folder: Compress file with gzip

Compress a file using gzip.

Help Centre › Building Processes

Compress a file using gzip.

Add it to a process

In the process designer, open the Add step tab. Find Compress file with gzip under File & Folder › GZIP, or type its name in the search box, and drag it onto the canvas.

Fields

FieldRequiredWhat it does
File to compressYesFile to compress
VariableYesVariable name to store the compressed file path Default: compressed_file.
Output pathNoOutput path (defaults to file_path.gz)

What it gives back

  • {compressed_file} – Path to compressed file

See all File & Folder steps.

Errors

ErrorDescription
File not foundThe source file does not exist
File write errorCould not write the compressed file

Tips

  • Gzip only compresses single files – use tar-create for directories
  • The original file is not modified or deleted

Related functions

Get started

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or have your first automation working in 7 days.