tar_create()#
Syntax
tar_create( file, file_loc, dir, dir_loc, flags )
Returns#
Return 1 on success 0 on failure
Parameters#
Parameter | Description |
---|---|
file |
target output file |
location |
location of the output file - ‘data’ or ‘script’ |
dir |
source directory to create a tarball of |
dir_loc |
location of the source file - ‘data’ or ‘script’ defaulting to data |
flags |
may be an empty string or ‘compress’ which will cause the output .tar file to be bzip2 encoded. |