includefile#. To compress folders, use includefolder#.
Required Parameters
- type: The type of the archive. The allowed values are ZIP, TAR, JAR, and GZIP. The default is ZIP.
- archive: The path on disk, including the filename, where the operation should place the archive.
- includefile#: An array of files to include in the archive. For example, to archive two files, set the filepath to those files in
includefile#1andincludefile#2. See Introduction to ArcScript for more information on array attributes in Script. - includefolder#: An array of folders to include in the archive. For example, to archive two folders, set the filepath to those folders in
includefolder#1andincludefolder#2.
Optional Parameters
- manifest: The location of the manifest file. Only valid for JAR archives.
Output Attributes
- zip:result: If the operation is successful, SUCCESS is returned.
Example
This example compresses two folders (/tmp/foo and /tmp/bar) and places them in a gzip archive located at /home/mydata.gzip.