...
In this example all files with the file name extension ".txt" should be transfered from JADE server where JADE is installed to the server "wilma" via sftp. JADE will check the file to transferred for completeness by using steady state parameterSteady state parameter. JADE will check every 1 second for next 30 seconds for file changing file size. Once file size don't change between check intervals , JADE will start the file transfer.
To start this with the command line client one must type
Code Block | ||
---|---|---|
| ||
jade.sh -settings=name_of_settings_file -profile=ftp_server_2_serversftp_to_wilma_with_stedy_state_check |
To make the profile more reusable and readable it is possible to reuse profiles in the way like this:
Code Block |
---|
[globals] log_filename=$\{TEMP\}/sosftphistory.log [wilma_as_source] ssh_auth_method = password source_user = kb source_password = ***** source_ssh_auth_method = password source_host = wilma.sos source_protocol = sftp source_port=22 [8of9_as_target] target_user=test target_password=***** target_host=8of9.sos target_protocol=ftp target_port=21 = 22 |
The profiles for wilma as source and 8of9 as target are defined once. They could be used as many time as needed. There is a "globals" profile as well.
...
Code Block |
---|
[sftp_to_wilma_with_stedy_state_check] include = wilma_as_source operation = copy file_spec = ^.*\.txt$ check_steady_state_of_files = true steady_state_count = 30 check_steady_state_interval = 1 |
...