Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents
outlinh1. true
outlinh1. true
1printablefalse
2stylh1. none
3indent20px

You can set the following command parameter which parameters that are executed for each file before the transfer:

  • pre_command
  • source_pre_command
  • target_pre_command

You can set the following command parameter parameters which are executed for each file after the transfer:

  • post_command
  • source_post_command
  • target_post_command

The commands parameter command parameters with the prefix source_ are only exclusively executed on the source serverhost, with the prefix target_ on the target serverhost.
The commands parameter command parameters without a prefix are executed on both source and target host.

If you use a an FTP connection then the commands parameter command parameters should have include FTP commands.
On a For an SFTP connection the SSH channel is used. Make sure that it is allowed to use the SSH channel.
Then  Then the commands parameter can have include 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 host to decompress a gzip-compressed file after

...

transfer

Code Block

 target_post_command=gzip -d $TargetFileName