Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents
outlinh1. true
outlinh1. true
1printablefalse
2stylh1. none
3indent20px

Scope of Example

  • The following transfer profiles are a collection of basic parameters, i.e. source_host, target_host, file_spec etc.
  • There are 80+ is a terrific number of parameters in JADE YADE that can combined with each other depending upon protocol etc.

Example 1: copy files from local host to target host using FTP

Code Block
languagetext
[copy_to_sftp_server]
;; This is comment
operation       = copy
;;
source_host     = localhost
source_protocol = local
source_dir      = ${local_dir}
;;
target_host     = 8of9.sos
target_protocol = ftp
target_port     = 21
target_user     = kb
target_password = ****
ssh_auth_method = password
target_dir      = ${remote_dir}
;;
file_spec       = ^\.txt$

...

Code Block
languagebash
jade.sh -settings=name-of-your-configuration-file -profile=copy_from_sftp_server

Example 2: copy files from target host to localhost host using FTP

Code Block
[copy_from_sftp_server]
;; This is comment
operation              = copy
;;
target_host            = localhost
target_protocol        = local
target_dir             = ${local_dir}
;;
source_host            = 8of9.sos
source_protocol        = ftp
source_port            = 21
source_user            = kb
source_password        = ****
source_ssh_auth_method = password
source_dir             = ${remote_dir}
;;
file_spec              = ^\.txt$

...