...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
[protocol_fragment_ftp@ftp_server_2_local]
protocol = ftp
host = test.sos-berlin.com
port = 21
user = demo
password = demo
passive_mode = true
[protocol_fragment_sftp@sftp_server_2_local_pass]
protocol = sftp
host = test.sos-berlin.com
port = 22
user = demo
ssh_auth_method = password
password = demo
[profile@ftp_server_2_local]
operation = copy
source_include = protocol_fragment_ftp@ftp_server_2_local
file_spec = .*
source_dir = /
target_protocol = local
target_host = localhost
target_dir = ${USERPROFILE}\jade_demo\a
overwrite_files = true
transactional = true
[profile@sftp_server_2_local_pass]
operation = copy
source_include = protocol_fragment_sftp@sftp_server_2_local_pass
file_spec = .*
source_dir = /
target_protocol = local
target_host = localhost
target_dir = ${USERPROFILE}\jade_demo\a
overwrite_files = false
transactional = true |
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
[protocol_fragment_sftp@sftp_server_2_local_poll_minfiles]
protocol = sftp
host = test.sos-berlin.com
port = 22
user = demo
ssh_auth_method = password
password = demo
[profile@sftp_server_2_local_poll_minfiles]
operation = copy
source_include = protocol_fragment_sftp@sftp_server_2_local_poll_minfiles
file_spec = ^test_[0-9]\.txt$
source_dir = /
poll_interval = 20
poll_timeout = 1
poll_minfiles = 5
polling_server = false
polling_server_poll_forever = false
target_protocol = local
target_host = localhost
target_dir = ${USERPROFILE}\jade_demo\a |
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
[protocol_fragment_sftp@sftp_server_2_local_cumulate] protocol = sftp host = test.sos-berlin.com port = 22 user = demo ssh_auth_method = password password = demo [profile@replace_local_datestamp] operation = copy source_protocol = local source_host = localhost replacing = ^(test)(_)[0-9]\.txt replacement = file_;[date:yyyy-MM-dd]_ file_spec = ^test_[0-9]\.txt$ source_dir = ${USERPROFILE}\jade_demo\a target_protocol = local target_host = localhost target_dir = ${USERPROFILE}\jade_demo\b [profile@sftp_server_2_local_cumulate] operation = copy source_include = protocol_fragment_sftp@sftp_server_2_local_cumulate file_spec = ^test_.\.txt$ source_dir = / target_protocol = local target_host = localhost target_dir = ${USERPROFILE}\jade_demo\a cumulate_files = true cumulative_file_separator = --- File: %{SourceFileName} --- cumulative_file_name = text-files.txt |
...
Simple File Transfer Operations with multiple Profiles
...