Scope of Example
- The following transfer profiles are a collection of basic parameters, i.e. source_host, target_host, file_spec etc.
- There is a terrific number of parameters in YADE that can combined with each other depending upon protocol etc.
Example 1: copy files from local host to target host using FTP
[copy_to_sftp_server]
;; This is comment
operation = copy
;;
source_host = localhost
source_protocol = local
source_dir = ${local_dir}
;;
target_host = 8of9.sos
target_protocol = ftp
target_port = 21
target_user = kb
target_password = ****
ssh_auth_method = password
target_dir = ${remote_dir}
;;
file_spec = ^\.txt$
To execute this profile on the command line type:
jade.sh -settings=name-of-your-configuration-file -profile=copy_from_sftp_server
Example 2: copy files from target host to localhost host using FTP
[copy_from_sftp_server]
;; This is comment
operation = copy
;;
target_host = localhost
target_protocol = local
target_dir = ${local_dir}
;;
source_host = 8of9.sos
source_protocol = ftp
source_port = 21
source_user = kb
source_password = ****
source_ssh_auth_method = password
source_dir = ${remote_dir}
;;
file_spec = ^\.txt$
To execute this profile on the command line type:
jade.sh -settings=name-of-your-configuration-file -profile=copy_from_sftp_server