...
However, to do this, JADE requires write permissions for the source directory. In turn, this means that this feature cannot be demonstrated by downloading files from our test server, where the demo user only has read permissions. Instead it will be demonstrated through local transfer.
Image Added
The Profile Code
The following code boxes can be opened to show the Profile used in this example in XML and in settings.ini
formats.
Code Block |
---|
| [xml | title | The 'local_2_local_create_md5' Profile in XML Format |
---|
collapse | true |
---|
|
<?xml version="1.0" encoding="utf-8"?>
<Configurations>
<Fragments>
]
;;
operation <ProtocolFragments />
</Fragments>
<Profiles>
<Profile profile_id= copy
file_spec"local_2_local_create_md5">
<Operation>
<Copy>
= ^test_[0-9]\.txt$
;;
create_security_hash_file = true
;;
source_host <CopySource>
<CopySourceFragmentRef>
=<LocalSource localhost/>
source_protocol </CopySourceFragmentRef>
= local
source_dir <SourceFileOptions>
= ${USERPROFILE}\jade_demo\a
;;
target_host <Selection>
= localhost
target_protocol <FileSpecSelection>
= local
target_dir <FileSpec><![CDATA[^(test)(_)[0-9]\.txt]]></FileSpec>
= ${USERPROFILE}\jade_demo\b |
Run the example using:
<Directory><![CDATA[${USERPROFILE}\jade_demo\a]]></Directory>
</FileSpecSelection>
</Selection>
</SourceFileOptions>
</CopySource>
<CopyTarget>
<CopyTargetFragmentRef>
<LocalTarget />
</CopyTargetFragmentRef>
<Directory><![CDATA[${USERPROFILE}\jade_demo\b]]></Directory>
<TargetFileOptions>
<CheckIntegrityHash>
<CreateIntegrityHashFile>true</CreateIntegrityHashFile>
</CheckIntegrityHash>
</TargetFileOptions>
</CopyTarget>
</Copy>
</Operation>
</Profile>
</Profiles>
</Configurations> |
Code Block |
---|
language | text |
---|
title | The 'local_2_local_create_md5' Profile in settings.ini Format |
---|
collapse | true |
---|
|
[local_2_local_create_md5]
operation = copy
source_protocol = local
file_spec = ^(test)(_)[0-9]\.txt
source_dir = ${USERPROFILE}\jade_demo\a
target_protocol = local
target_dir = ${USERPROFILE}\jade_demo\b
check_security_hash = true
create_security_hash_file = true |
Run the example using:
Code Block |
---|
|
jade.cmd -settings="%USERPROFILE%\jade_demo\jade_settings.ini" -profile="local_2_local_create_md5" |
Running the Profile
This profile is called on Windows systems using the following command, depending on the JADE version being used:
Code Block |
---|
language | bash |
---|
title | Running the file transfer configuration in Windows format using an XML (JADE 1.11 and later) or settings.ini file (JADE 1.10 and earlier) |
---|
|
jade.cmd -settings="%USERPROFILE%\jade_demo\local_2_local_file_complete.xml" -profile="local_2_local_create_md5"
jade.cmd -settings="%USERPROFILE%\jade_demo\local_2_local_file_complete.xml" -profile="local_2_local_create_md5" |
On Unix systems the profile is called using one of the following commands, again depending on the JADE version being used:
Code Block |
---|
language | bash |
---|
title | Running the file transfer configuration in Unix format using an XML (JADE 1.11 and later) or settings.ini file (JADE 1.10 and earlier) |
---|
|
./jade.sh -settings="${HOME}/jade_demo/local_2_local_file_complete.xml" -profile="local_2_local_create_md5"
./jade.sh -settings="${HOME}/jade_demo/local_2_local_file_complete.xml |
Code Block |
---|
|
jade.cmd -settings="%USERPROFILE%\jade_demo\jade_settings.ini" -profile="local_2_local_create_md5" |
...