ArchiveCompress ArchiveCompress

yaml
type: "io.kestra.plugin.compress.ArchiveCompress"

Decompress an archive file

Examples

yaml
id: "archive_compress"
type: "io.kestra.plugin.compress.ArchiveCompress"
from:
  myfile.txt: "{{ inputs.files }} "
algorithm: ZIP
compression: GZIP
yaml
id: "archive_compress"
type: "io.kestra.plugin.compress.ArchiveCompress"
from: "{{ outputs.taskId.uri }}"
algorithm: ZIP
compression: GZIP

Properties

algorithm

  • Type: string
  • Dynamic:
  • Required: ✔️
  • Possible Values:
    • AR
    • ARJ
    • CPIO
    • DUMP
    • JAR
    • TAR
    • ZIP

The algorithm of the archive file

from

  • Type: object
  • SubType: string
  • Dynamic: ✔️
  • Required: ✔️

The files to compress

The key must be a valid path in the archive and can contains / in order to create directory, the value must be a kestra internal storage path. The value can also be a JSON containing multiple keys/values.

compression

  • Type: string
  • Dynamic:
  • Required:
  • Possible Values:
    • BROTLI
    • BZIP2
    • DEFLATE
    • DEFLATE64
    • GZIP
    • LZ4BLOCK
    • LZ4FRAME
    • LZMA
    • SNAPPY
    • SNAPPYFRAME
    • XZ
    • Z
    • ZSTD

The algorithm compression of the archive file

Outputs

uri

  • Type: string

The url of the archive file on kestra storage