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

Compare with Current View Page History

Version 1 Next »

h1. Define profiles into ini file

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.
Profiles can be put into central settings file called jade_settings.ini file. Profiles defined in the jade_settings.ini can import/refer other parameters using include keyword

Example of ini file with profiles: copy files from local host to target host using SFTP

[MailSettings]
 file_notification_to      = admin@example.com
 file_notification_subject = JADE-Client mail
 file_notification_body    = This is a test.
 mail_smtp                 = mail.example.com
 
 [BackgroundService]
 BackgroundServiceHost     = 8of9.sos
 BackgroundServicePort     = 4210
 SendTransferHistory       = true
 TransferMethod            = TCP

 [JADEHistory]
 log_filename      = $\{basedir\}/jade_history.log
 HistoryFileName   = $\{basedir\}/jade_history.csv

 [globals]
 include           = MailSettings , JADEHistory, BackgroundService
 title             = Global Profile
 basedir           = C:\sos-berlin.com\jade

[wilma]
 user=kb
 password=*****
 ssh_auth_method=password
 host=wilma.sos
 protocol=sftp
 port=22

 [8of9]
 user=test
 password=*****
 host=8of9.sos
 protocol=ftp
 port=21

[copy_to_sftp_server]
;; This is comment
operation       = copy
;;
source_dir      = $\{local_dir\}
source_include  = wilma
;;
target_dir      = $\{remote_dir\}
target_include  = 8of9.sos
;;
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