The Pre Transfer section allows user to customize the behaviors of protection/backup/recovery. This section describes the operation that will be performed on remote end or locally before the real file transfer.
The Pre Transfer section of the BatchSFTP Connectivity Map properties contains the top-level parameters displayed in this table.
Table 34 Connectivity Map - BatchSFTP - Pre Transfer
Name |
Description |
Required Value |
---|---|---|
Remote Dir Name |
Specifies the directory name (path) on the remote external system where the file the is renamed or copied. This is only for Rename or Copy of the Remote Pre Command. The value can be a literal, regular expression (source), or pattern name (destination). For outbound (destination), the directory is created if it doesn’t already exist. Special characters are allowed. The expansion of any special characters is carried out each time this parameter is used. For example, the pattern %f means the original working directory name. See Table 34. |
A directory name. |
Remote Dir Name Is Pattern |
Specifies whether the Remote Directory Name represents a literal, or a regular expression or name pattern, as follows:
|
Select Yes or No. The configured default is Yes. |
Remote File Name |
Specifies the file name on the external system, to which a file is renamed or copied. This setting is only for the Rename or Copy operations of Pre Transfer Command parameter. The value can be a literal, regular expression (get), or pattern name (put). Special characters are allowed, for example, the pattern %f indicates the original working file name. The expansion of any special characters is carried out each time this parameter is used. See Table 34. |
The file name. |
Remote File Name Is Pattern |
Specifies whether the Remote File Name represents a literal, or a regular expression or name pattern, as follows:
|
Select Yes or No. The configured default is Yes. |
Remote Pre Command |
Allows you to execute a desired action directly before the actual file transfer. For an inbound transfer, the file can be made unavailable to other clients polling the target system with the same directory and file pattern or name. For an outbound transfer, you can perform an automatic backup/clean-up of the existing files. The options are:
|
Select Rename, Copy, or None. The configured default is None. Note – The Copy option could slow system performance, especially if you are copying a large file. |
Local Dir Name |
Specifies the local directory name (path) to be used by Rename or Copy. The value can be a literal, regular expression (source), or pattern name (destination). Special characters are allowed. The expansion of any special characters is carried out each time this parameter is used. See Table 34. See Using Regular Expressions or Using Name Patterns. Note – When entering a path separator, use the forward slash “ / ” instead of the back slash “ \ ”. The adapter interprets the back slash as a special character. For example, use c:/temp/dir. |
A directory name. |
Local Dir Name Is Pattern |
Specifies whether the Local Directory Name represents a literal, or a regular expression or name pattern, as follows:
|
Select Yes or No. The configured default is No. |
Local File Name |
Specifies the local file name to be used by Rename or Copy. The value can be a literal, regular expression (get), or pattern name (put). Special characters are allowed. The expansion of any special characters is carried out each time this parameter is used. See Table 34. |
A file name. |
Local File Name Is Pattern |
Specifies whether the Local File Name name represents a literal, or a regular expression or name pattern, as follows:
|
Select Yes or No. The configured default is No. |
Local Pre Command |
Allows you to execute a desired action directly before the actual file transfer. For an inbound transfer, the file can be made unavailable to other clients polling the target system with the same directory and file pattern or name. For an outbound transfer, you can perform an automatic backup of the existing files. The options are:
|
Select Rename, Copy, or None. The configured default is None. Note – The Copy option could slow system performance, especially if you are copying a large file. |