Move task configuration
Configure the following properties for the Move file operation task:
| Field | Description |
|---|---|
| Task name | Type a unique name for the task. |
| File filter | Type the name of the file if you want to filter files with specific names. By default, Managed File Transfer considers all files. If you want to use
regular expression, specify a valid regular expression in the File filter and
select the Use regular expression option. Note: Use wildcard
characters to filter the file names. For example, type The following are a few examples of regular expressions:*.zip to trigger the action
only when ZIP files are uploaded or downloaded. To trigger an action based on a name string in the
ZIP files, use the name string in the File filter box, which is preceded and
followed by wildcard characters. For example, type *invoice*.zip to trigger the
action based on the file URLs, when ZIP files containing the character string
invoice in their file names are uploaded or downloaded. If you define a
File filter for a task, the task acts only on files that are filtered
out.
|
| Destination location | Select one of the following options to configure the location where the file is copied to:
|
| Execute error task | Select this checkbox to run an error task if the file operation fails. |
| Advanced | |
| Preserve folder structure | When copying or moving files, select the Preserve folder structure
checkbox to retain the original folder structure. If not selected, all files including files in
subfolders are placed directly in the destination folder, overwriting existing files with the same
name. When the checkbox is selected, the folder structure from the source is replicated at the
destination. When you select Preserve folder structure, the Create
directory checkbox is selected automatically. If there's an Unzip task before the Copy
or Move task, the unzipped files also retain their folder structure in the destination folder. Note:
|
| Create directory | Select this checkbox to create the destination folder if the folder specified in Destination location is not present. If Destination location path does not include a folder, Managed File Transfer copies the file directly to the specified directory path. Ensure that the application has permission to create directories at the destination. |
| Check if the file exists at destination | Select this checkbox to check whether the file exists at the destination location and run one
of the following actions:
|
| Use temporary file name | Select this checkbox and specify a temporary file name to be used during the move file
process. The file is renamed to its original name after the move file operation is complete. Note: The temporary file name is not used for a file that is moved within an operating system
or server.
|
| Preserve file modification date | Select this option to retain the timestamp that indicates when the file was last modified |
| Check for stability | If you want the file operation to check its progress at regular intervals, specify the time in seconds in the following format: Every [ ] seconds up to [ ] seconds, where, [ ] is the text box to type the value in seconds. |
| Retry [ ] times at an interval of [ ] seconds | Select this option to retry a failed move operation for the specified number of times at the interval specified in seconds. |
| Resume transfer from the point of interruption | Select this option to resume an interrupted or failed move operation from the point of interruption. |
| Command before upload | Choose this option to run a SITE command before the Move task. For example, when you work
with Mainframe servers, you can send values for record size and block size to the server before
upload by setting the following value for this configuration field:SITE
LRECL=<record\_size\> BLKSIZE=<block\_size\>
|
| Simple mode | Select this option to change the file transfer mode to simple mode and if you are transferring files to AS/400 systems. This mode is applicable for FTP, FTPS, or FTPES protocols. |
| ASCII mode | Select this option to change the file transfer mode to ASCII mode and choose one of the
following Convert line endings options for Managed File Transfer to change the line endings of the file:
|
| Assign partner | Select this option to assign a partner for the action. Then do one of the following tasks:
Note: For virtual folders, use this option only if you want to override the
partners configured for the folders.
|
A Move task moves all the files that are passed on from the previous task to the location
specified in Destination location. The files are removed from the source
folder. The list of files in the destination location is passed on to the subsequent task. For
example, assume that there exists an action with the following configuration:
- Find task Find files in Source location.
- Encrypt task Encrypt the files.
- Move task Moves the files to the Destination location.
- The Find task lists all the files in the Source location.
- The Encrypt task encrypts all the files that the Find task lists.
- The Move task moves the files that the Encrypt task encrypts, to the Destination location