YADE Profiles
- A file transfer profile is a collection of parameters, e.g. 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.
- Profiles can be added to a central settings file called jade_settings.ini file. Profiles defined in the settings file can refer to other profile fragements using the include keyword
Example of a settings file with profiles
Example profile to copy files from local host to target host using SFTP
[MailSettings] file_notification_to = admin@example.com file_notification_subject = YADE 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$
Referencing settings files and profiles
To use this profile from the command line you would type:
jade.sh -settings=name-of-your-configuration-file -profile=copy_from_sftp_server
See also
- For information about the YADE parameters see the YADE Parameter Reference Documentation