Skip to content

Actions: Archive

tar

Input: directory

Output: stream

Unaction: yes

Parameters

ignored (you can pass whatever you want 🙃)

Description

Archives a directory into a tar file. Only files, symbolic links and directories are stored, the rest are ignored.

Example

Compresses a folder using tar as archive.

- name: tar task example
  actions:
    - from-directory:
        path: '/some/where'
    - tar:
    - compress-gz: {}
    - to-file:
        path: 'compressed-folder.tar.gz'