You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

h1. Modularizing Profiles: include directive

General

Transfer profile is collection of parameters i.e. source_host, target_host, file_spec etc. There are 80+ parameters in JADE which can combined with each other depending upon protocol etc.

Example 1: copy files from local host to target host using SFTP


[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 SFTP


[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
  • No labels