Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Correction to settings file paths

...

Code Block
titleSimple file transfer configuration in settings.ini format
collapsetrue
[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
titleftp_server_2_local
collapsetrue
[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:

Running the file transfer XML configuration on Windows format (JADE 1.11 and newer))
jade.cmd -settings="%USERPROFILE%\jade_demo\sos-berlin_demo_2_local.xml" -profile="ftp_server_2_local"
Code Block
titleRunning the file transfer settings.ini configuration on Windows format (JADE 1.10 and earlier)
Code Block
languagebash
titleWindows
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:

...