Table of Contents |
---|
| outlinh1. true |
---|
| outlinh1. true |
---|
1 | printablefalse |
---|
2 | stylh1. none |
---|
3 | indent20px |
---|
|
h1. Modularizing Profiles: include directive
General
...
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+ parameters in JADE
...
- that can combined with each other depending upon protocol etc.
Example 1: copy files from local host to target host using
...
FTP
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$
|
To execute this profile on the command line type:
Code Block |
---|
|
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$
|
To execute this profile on the command line type:
Code Block |
---|
|
jade.sh -settings=name-of-your-configuration-file -profile=copy_from_sftp_server
|