Updated: May 13, 2016
Applies To: System Center 2012 SP1 - Orchestrator, System Center 2012 - Orchestrator, System Center 2012 R2 Orchestrator
The Compress File activity compresses files into zip archives. You can use the Compress File activity to archive log files before storage or before sending them to another location using FTP or email.
Configuring the Compress File Activity
Before you configure the Compress File activity, you need to know which files you will compress.
Use the following information to configure the Compress File activity.
|Folder||Type the path to the file, or to the folder that contains the files, that you want to compress, or click the ellipsis (...) button and browse for the files. You can use wildcards in filenames. You cannot browse for the folder name; you must type in the full folder name and location and include a trailing slash.|
|Include files in sub-folders||Select this option to include any files that are found within sub-folders of the folder that you specified.|
|File||Type the path and filename of the archive that you are creating. This field will only accept characters from the current system locale. If you use other characters, the activity will fail.|
|Store relative path in archive||Select this option to store the files within the same sub-folders that they were found in. When this option is unselected, the files will be added to the archive with the full path. For example:
Selected: ..\subfolder1\file.txt, and ..\subfolder1\subfolder2\file.txt
Unselected: C:\files\subfolder1\file.txt, and C:\files\subfolder1\subfolder2\file.txt
|If the destination archive already exists||Select the action that you want to take if a file with the same name as the archive being created already exists in the destination folder:
Add files to the existing archive: Select this option to add the files that you specified to the existing archive.
Overwrite the existing archive: Select this option to overwrite the existing file with the archive that you are creating.
Fail if the archive exists: Select this option to cause the Compress File activity to fail if the filename already exists.
Create a unique named archive: Select this option to append a value to the filename to create a unique filename that does not conflict with the existing filename.
|Compression level||Select the level of compression that you want to use to compress the files into the archive. You can select one of the following levels.
Higher compression levels take more time to complete but usually result in smaller files. Lower compression levels create larger archives, but take less time to complete.
The following table lists the published data items.
|Archive name and path||The name and path of the archive file that was created.|
|Number of files within archive||The number of files inside the archive file.|
|Size of archive||The size of the archive file.|