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

Compare with Current View Page History

« Previous Version 11 Next »

JADE settings and command line arguments

  • JADE accepts parameters from a settings file and from the command line.

JADE example for a settings file

[ftp_server_2_server]
 ssh_auth_method=password 
 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
 
 file_spec=^.*\.txt$
 operation=copy 

JADE example for mixed usage of settings and command line arguments

  • JADE can use the transfer profile fromthe above jade_settings.ini and parameters from the CLI command line interface.
  • Command line parameters have precedence. If a parameter value is provided from the CLI, then parameters from jade_settings.ini will be overwritten.
./jade.sh -settings="jade_settings.ini" -profile="ftp_server_2_server" -local_dir="${source_dir}" -remote_dir="${archive_dir}"

Variables in a jade_settings.ini profile

  • JADE profiles can use variables that are substituted within settings

JADE example for a settings file with variables

 [globals]
 sftp.port = 22
 ftp.port  = 21

 [ftp_server_2_server]
 file_spec              =^.*\.txt$
 operation              =copy 

 ssh_auth_method        = password 
 source_user            = kb
 source_password        = *****
 source_ssh_auth_method = password
 source_host            = wilma.sos
 source_protocol        = sftp
 source_port            = ${sftp.port}
 
 target_user            = test
 target_password        = *****
 target_host            = 8of9.sos
 target_protocol        = ftp
 target_port            = ${ftp.port}

JADE example of variables in jade_settings.ini file

  • The jade_settings.ini file can use variables in a profile.
  • Such variables can be defined in the global profile and subsequent profiles. The globals profile is included automatically by all profiles.
./jade.sh -settings="jade_settings.ini" -profile="ftp_server_2_server" 

See also

 

  • No labels