You can set the following command parameter which are executed for each file before the transfer:
- pre_command
- source_pre_command
- target_pre_command
You can set the following command parameter which are executed for each file after the transfer:
- post_command
- source_post_command
- target_post_command
The commands parameter with the prefix source_ are only executed on the source server, with the prefix target_ on the target server.
The commands parameter without a prefix are executed on both.
If you use a FTP connection then the commands parameter should have FTP commands.
On a SFTP connection the SSH channel is used. Make sure that it is allowed to use the SSH channel.
Then the commands parameter can have shell commands.
"$TargetFileName
" is a variable name (place holder) for the current target file.
"$SourceFileName
" is the name of the file from the source which is currently transferred.
Example for SFTP on a unix target to decompress a gzip-compressed file after the transfer
target_post_command=gzip -d $TargetFileName