salt.modules.archive

A module to wrap archive calls

Members

gunzip

salt.modules.archive.gunzip(gzipfile)

Uses the gunzip command to unpack gzip files

CLI Example to create /tmp/sourcefile.txt:

salt '*' archive.gunzip /tmp/sourcefile.txt.gz

gzip

salt.modules.archive.gzip(sourcefile)

Uses the gzip command to create gzip files

CLI Example to create /tmp/sourcefile.txt.gz:

salt '*' archive.gzip /tmp/sourcefile.txt

rar

salt.modules.archive.rar(rarfile, *sources)

Uses the rar command to create rar files Uses rar for Linux from http://www.rarlab.com/

CLI Example:

salt '*' archive.rar /tmp/rarfile.rar /tmp/sourcefile1 /tmp/sourcefile2

tar

salt.modules.archive.tar(options, tarfile, *sources)

Uses the tar command to pack, unpack, etc tar files

CLI Example:

salt '*' archive.tar cjvf /tmp/tarfile.tar.bz2 /tmp/file1 /tmp/file2

unrar

salt.modules.archive.unrar(rarfile, dest, *xfiles)

Uses the unrar command to unpack rar files Uses rar for Linux from http://www.rarlab.com/

CLI Example:

salt '*' archive.unrar /tmp/rarfile.rar /home/strongbad/ file1 file2

unzip

salt.modules.archive.unzip(zipfile, dest, *xfiles)

Uses the unzip command to unpack zip files

CLI Example:

salt '*' archive.unzip /tmp/zipfile.zip /home/strongbad/ file1 file2

zip

salt.modules.archive.zip(zipfile, *sources)

Uses the zip command to create zip files

CLI Example:

salt '*' archive.zip /tmp/zipfile.zip /tmp/sourcefile1 /tmp/sourcefile2

Parent topic

Table Of Contents

Previous topic

salt.modules.apt

Next topic

salt.modules.brew