...
Following are two examples of such system property files that contain global Java properties for a data provider. One system property file can also contain properties for multiple data providers. At run-time the YADE will automatically apply applicable properties to the respective data provider, e.g. SFTP properties to the JSch data provider and SMB properties to the JCifs data provider.
sftp_system_.properties.ini
Code Block language bash title System Propery File sftp_system_.proprerties.in # SFTP properties known_hosts=/home/gollum.sos/.ssh/known_hosts remote_exec=true
smb_system_.properties.ini
Code Block language bash title System Propery File smb_system_.properties.ini # SMB properties jcifs.smb.client.useExtendedSecurity=false
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
[globals] history = /home/test/sos-berlin.com/jade_client/logs/jade_history.csv system_property_files = /home/test/sos-berlin.com/jade_client/configurations/sftp_system_.properties.ini ; /home/test/sos-berlin.com/jade_client/configurations/smb_system_.properties.ini [protocol_fragment_sftp@sftp-uk.sos] protocol = sftp host = uk.sos port = 22 user = london ssh_auth_method = publickey ssh_auth_file = ${HOME}/.ssh/id_rsa [protocol_fragment_sftp@sftp-japan.sos] protocol = sftp host = japan.sos user = tokyo ssh_auth_method = publickey ssh_auth_file = ${HOME}/.ssh/id_rsa [CopyLocal2SFTPUKSOS] operation = copy file_spec = TEST-M-1111.TXT source_protocol = local source_dir = /mnt/r2d2/nobackup/data/from_galadriel target_include = protocol_fragment_sftp@sftp-uk.sos target_dir = /home/london/data/to_london/ [CopySFTPJapanSOS2Local] operation = copy file_spec = TEST-M-2222.TXT source_protocol = sftp source_include = protocol_fragment_sftp@sftp-japan.sos source_dir = /home/tokyo/data/from_tokyo/ target_protocol = local target_dir = /mnt/r2d2/nobackup/data/to_galadriel |
...
- The YADE settings consist of the following types of sections:
- Globals section
- Protocol Fragment sections
- Transfer Profile sections
- In the sample
yade_settings.ini
file, under the globals section the system property files are configure as semicolon separated list of files by the optionsystem_property_files
. - The properties defined in the files
sftp_system_properties.ini properties
andsmb_system_.properties.ini
will be available to all protocol fragments. The
known_hosts
andprotocol_fragment_sftp@sftp-uk.sos
andprotocol_fragment_sftp@sftp-japan.sos
.
...
Code Block language bash title SFTP packet compression configuration sftp-_zlip-_compression.iniproperties # ssh packet compression compression.s2c=zlib@openssh.com,zlib,none compression.c2s=zlib@openssh.com,zlib,none compression_level=9
Code Block language bash title SFTP Cipher configuration sftp-_cipher-_aes128-ctr.iniproperties # ssh transfer cipher cipher=aes128aes256-ctr
Sample YADE Configuration
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
[globals] history = /home/test/sos-berlin.com/jade_client/logs/jade_history.csv system_property_files = /home/test/sos-berlin.com/jade_client/configurations/sftp_system_.properties.ini ; /home/test/sos-berlin.com/jade_client/configurations/smb_system_.properties.ini [protocol_fragment_sftp@sftp-uk.sos] protocol = sftp host = uk.sos port = 22 user = london ssh_auth_method = publickey ssh_auth_file = ${HOME}/.ssh/id_rsa configuration_files = /home/test/sos-berlin.com/jade_client/configurations/sftp-zlip-_zlib_compression.iniproperties [protocol_fragment_sftp@sftp-japan.sos] protocol = sftp host = japan.sos user = tokyo ssh_auth_method = publickey ssh_auth_file = ${HOME}/.ssh/id_rsa configuration_files = /home/test/sos-berlin.com/jade_client/configurations/sftp-_cipher-_aes128-ctr.iniproperties [CopyLocal2SFTPUKSOS] operation = copy file_spec = TEST-M-1111.TXT source_protocol = local source_dir = /mnt/r2d2/nobackup/data/from_galadriel target_include = protocol_fragment_sftp@sftp-uk.sos target_dir = /home/london/data/to_london/ [CopySFTPJapanSOS2Local] operation = copy file_spec = TEST-M-2222.TXT source_protocol = sftp source_include = protocol_fragment_sftp@sftp-japan.sos source_dir = /home/tokyo/data/from_tokyo/ target_protocol = local target_dir = /mnt/r2d2/nobackup/data/to_galadriel |
...
- The global system property file will be applicable as explained in the previous chapter on YADE Java System Property Files.
- In the YADE Settings sample two configuration files are created, both of them include configuration properties for the SFTP data provider;
sftp-_zlip-_compression.iniproperties
: effects packet compression during transfer by SFTP data provider.sftp-_cipher-_aes128-ctr.iniproperties
: effects Cipher used by SFTP data provider.
The
sftp-_zlip-_compression.iniproperties
is referred to by the protocol fragmentprotocol_fragment_sftp@sftp-uk.sos
using theconfiguration_files
option, thus the packet compression properties will only be applicable to the transfers using protocol fragmentprotocol_fragment_sftp@sftp-uk.sos
, e.g.CopyLocal2SFTPUKSOS.
Similarly the
sftp-_cipher-_aes128-ctr.iniproperties
is referred to by the protocol fragmentprotocol_fragment_sftp@sftp-japan.sos
using theconfiguration_files
option, thus the cipher aes128-ctr will only be applicable to the transfers using the protocol fragmentprotocol_fragment_sftp@sftp-japan.sos
, e.g.CopySFTPJapanSOS2Local.
At run-time the YADE will automatically apply applicable properties to respective data provider, e.g. SFTP properties to the JSch data provider and SMB properties to the JCifs data provider.
...