...
Code Block | ||||
---|---|---|---|---|
| ||||
[protocol_fragment_ftp@ftp_demo_sos-berlin] protocol = ftp host = test.sos-berlin.com user = demo password = demo [ftp_server_2_local] operation = copy source_include = protocol_fragment_ftp@ftp_demo_sos-berlin file_spec = .* source_dir = ./ target_protocol = local target_dir = ${USERPROFILE}\jade_demo\a |
...
Running the configuration
The following profile from your settings file will be used to run the example on your computersimple configuration described above is started from the command line or in a batch file on Windows systems using one of the following calls, where sos-berlin_demo_2_local is the name given to the configuration on saving:
Code Block | ||||
---|---|---|---|---|
| ||||
[ftp_server_2_local]
;;
operation = copy
;;
source_host = test.sos-berlin.com
source_protocol = ftp
source_port = 21
source_user = demo
source_password = demo
source_dir = /
;;
target_host = localhost
target_protocol = local
target_dir = ${USERPROFILE}\jade_demo\a
|
The parameters listed above should not require further description and are the minimum that are required to copy files from the demo user's root directory on the remote source to a local target directory. By default JADE will download all the files it finds in the directory.
Run the example by entering the following in the command line:
| |
jade.cmd -settings="%USERPROFILE%\jade_demo\sos-berlin_demo_2_local.xml" -profile="ftp_server_2_local" |
Code Block | ||||
---|---|---|---|---|
| ||||
Code Block | ||||
| ||||
jade.cmd -settings="%USERPROFILE%\jade_demo\jade_settingssos-berlin_demo_2_local.ini" -profile="ftp_server_2_local" |
More information including example calls for Unix systems can be found in the JADE User Manual - Configuring and Running File Transfers article.
Behavior
JADE will log onto the remote server and download all the files it finds in the source_dir folder before stopping.
...
As the new profile name suggests, the SFTP protocol is used in this profile and authentication is by user/password. Key pair authentication is described later in this series of articles.
Example
The profile is included in the jade_settings_windows.ini file as follows:
...