
Compression ArchiveDecompress
CertifiedExtract files from an archive
Compression ArchiveDecompress
Extract files from an archive
Reads an archive from internal storage, optionally decompresses the stream (for example GZIP over TAR), and writes each entry back to storage with metrics for total size and file count. Entry names with spaces are stored using underscores.
type: io.kestra.plugin.compress.ArchiveDecompressExamples
id: archive_decompress
namespace: company.team
inputs:
- id: file
description: Compressed file
type: FILE
tasks:
- id: archive_decompress
type: io.kestra.plugin.compress.ArchiveDecompress
from: "{{ inputs.file }}"
algorithm: ZIP
compression: GZIP
Properties
algorithm *Requiredstring
ARARJCPIODUMPJARTARZIPArchive container format to create
Required archive format. Compression supports AR, CPIO, JAR, TAR, and ZIP; ARJ and DUMP are extract-only and will fail on compression.
from *Requiredstring
Internal storage URI of the archive
Pebble expression referencing an Internal Storage URI e.g. {{ outputs.mytask.uri }}.
compression string
BROTLIBZIP2DEFLATEDEFLATE64GZIPLZ4BLOCKLZ4FRAMELZMASNAPPYSNAPPYFRAMEXZZZSTDOptional compressor applied to the archive stream
Use a single-file compressor such as GZIP alongside TAR. Leave null to store the archive uncompressed. Brotli, Deflate64, and Snappy variants are decode-only and will fail during compression.
pluginDefaultsRef Non-dynamicstring
Reference (ref) of the pluginDefaults to apply to this task.
Outputs
files object
URIs of decompressed files on Kestra's internal storage
Metrics
count counter
Number of files decompressed
size counter
Total size of decompressed files in bytes