Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Conversion corrections

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

Modularizing Profiles: include directive

JADE's powerful feature of importing profiles can be used to create generic parameter groups or called fragment.
JADE's term fragment is small set of parameters which its self can't be used for file transfer , but can be combined with other fragments to create complete profile.
i.e. user can create an fragment called archive_server which just contents parameter concerning archive server i.e. host name, user name etc.

General

Transfer profile is collection of parameters i.e. source_host, target_host, file_spec etc. There are 80+ parameters in JADE which can combined with each other depending upon protocol etc.

Example 1: Profile without fragments : copy files from local host to target host using SFTP

Code Block
[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: Profile with fragments : copy files from source host to localhost host using SFTP

Code Block
;; localhost settings
[localhost_settings]
host     = localhost
protocol = local
local_dir      = ${local_dir}

;; 8of9.sos settings
[8of9.sos_settings]
host            = 8of9.sos
protocol        = ftp
port            = 21
user            = kb
password        = ****
ssh_auth_method = password
local_dir       = $\{remote_dir\}


;; profile with fragments
[copy_from_sftp_server]
;; 
operation              = copy
;;
;; include fragments 
source_include         = 8of9.sos_settings
target_include         = localhost_settings
;;
file_spec              = ^\.txt$

...