Table of Contents | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
No Format |
---|
h2. General
|
YADE profiles with settings for transfer history, log file and Background Service
General
YADE logs JADE do log each and every file transfer in a local csv CSV history file and an in a log4j format file. At the same time The transfer file history can be sent to an background servicethe YADE Background Service.
The Background service Service will insert the transfer history into log a table of its database.
...
Example
...
for transfer profile with global settings for transfer history, log file and
...
Background Service
jade_settings.ini file with settings for history csvCSV, log and background service.file and Background Service:
Code Block |
---|
[MailSettings] file_notification_to = admin@example.com file_notification_subject = YADE 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 |
In this example all files with the file name extension ".txt" should be transferred from the server "wilma" via sftp SFTP to the server 8of9 by ftpFTP. the folders are not explicitly specified and therefore the "home" folders of the user are is selected. JADE YADE will write the transfer history into a CSV , Log file and also will send the log entry to the Background serviceService
Define
...
profiles using the include directive
Now we will specify the transfer profile againThe include parameter will include the named profiles in the order they are defined. The globals profile is included automatically, no need to specific it in an include parameter.
The profiles have to be defined in the same settings file:
Code Block |
---|
[ftp_server_2_server] include = globals source_user = kb source_password = ***** source_ssh_auth_method = password source_host = wilma.sos source_protocol = sftp source_port = 22 target_user = test target_password = ***** target_host = 8of9.sos target_protocol = ftp target_port = 21 operation = copy file_spec = ^.*\.txt$ |
The "include" parameter will include the named profiles in the order they are defined. In the first example wilma will be included as source and in the second example as target. The "globals" profile is included automatically, no need to specific it in an include parameter.
The profiles must be defined in the same settings file.
See also
- For information about the YADE parameters see the YADE - Reference Documentation - Parameter Reference
For infos about the parameters see the parameter documentation on jadeParameterReference
.