...
More Advanced File Selection
- Document: todoadvanced_file_selection_01.xml
- see The JADE Client Command Line Interface - Tutorial 3 - More Advanced File Selection
Code Block | ||||
---|---|---|---|---|
| ||||
|
- Document: todo
- see The JADE Client Command Line Interface - Tutorial 3 - More Advanced File Selection
<?xml version="1.0" encoding="utf-8"?>
<Configurations xsi:noNamespaceSchemaLocation="http://www.sos-berlin.com/schema/jade/JADE_configuration_v1.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Fragments>
<ProtocolFragments>
<SFTPFragment name="sftp_test">
<BasicConnection>
<Hostname><![CDATA[test.sos-berlin.com]]></Hostname>
<Port><![CDATA[22]]></Port>
</BasicConnection>
<SSHAuthentication>
<Account><![CDATA[demo]]></Account>
<AuthenticationMethodPassword>
<Password><![CDATA[demo]]></Password>
</AuthenticationMethodPassword>
</SSHAuthentication>
</SFTPFragment>
</ProtocolFragments>
</Fragments>
<Profiles>
<Profile profile_id="sftp_server_2_local_poll_minfiles">
<Operation>
<Copy>
<CopySource>
<CopySourceFragmentRef>
<SFTPFragmentRef ref="sftp_test" />
</CopySourceFragmentRef>
<SourceFileOptions>
<Selection>
<FileSpecSelection>
<FileSpec><![CDATA[^test_[0-9]\.txt$]]></FileSpec>
<Directory><![CDATA[/]]></Directory>
</FileSpecSelection>
</Selection>
<Polling>
<PollInterval><![CDATA[20]]></PollInterval>
<PollTimeout><![CDATA[1]]></PollTimeout>
<MinFiles><![CDATA[3]]></MinFiles>
</Polling>
</SourceFileOptions>
</CopySource>
<CopyTarget>
<CopyTargetFragmentRef>
<LocalTarget />
</CopyTargetFragmentRef>
<Directory><![CDATA[${USERPROFILE}\jade_demo\a]]></Directory>
</CopyTarget>
</Copy>
</Operation>
</Profile>
</Profiles>
</Configurations> |
File Transfer
- Document: file_transfer_01.xml
- see The JADE Client Command Line Interface - Tutorial 4 - File Transfer
Code Block | ||||
---|---|---|---|---|
| ||||
<?xml version="1.0" encoding="utf-8"?>
<Configurations>
<Fragments>
<ProtocolFragments />
</Fragments>
<Profiles>
<Profile profile_id="replace_local_datestamp">
<Operation>
<Copy>
<CopySource>
<CopySourceFragmentRef>
<LocalSource />
</CopySourceFragmentRef>
<SourceFileOptions>
<Selection>
<FileSpecSelection>
<FileSpec><![CDATA[^test_[0-9]\.txt$]]></FileSpec>
<Directory><![CDATA[${USERPROFILE}\jade_demo\a]]></Directory>
</FileSpecSelection>
</Selection>
</SourceFileOptions>
</CopySource>
<CopyTarget>
<CopyTargetFragmentRef>
<LocalTarget>
<Rename>
<ReplaceWhat><![CDATA[^(test)(_)[0-9]\.txt]]></ReplaceWhat>
<ReplaceWith><![CDATA[file_;[date:yyyy-MM-dd]_]]></ReplaceWith>
</Rename>
</LocalTarget>
</CopyTargetFragmentRef>
<Directory><![CDATA[${USERPROFILE}\jade_demo\b]]></Directory>
</CopyTarget>
</Copy>
</Operation>
</Profile>
</Profiles>
</Configurations> |
- Document: file_transfer_02.xml
- see The JADE Client Command Line Interface - Tutorial 4 - File Transfer
Code Block | ||||
---|---|---|---|---|
| ||||
<?xml version="1.0" encoding="utf-8"?>
<Configurations>
<Fragments>
<ProtocolFragments>
<SFTPFragment name="sftp_test">
<BasicConnection>
<Hostname><![CDATA[test.sos-berlin.com]]></Hostname>
<Port><![CDATA[22]]></Port>
</BasicConnection>
<SSHAuthentication>
<Account><![CDATA[demo]]></Account>
<AuthenticationMethodPassword>
<Password><![CDATA[demo]]></Password>
</AuthenticationMethodPassword>
</SSHAuthentication>
</SFTPFragment>
</ProtocolFragments>
</Fragments>
<Profiles>
<Profile profile_id="sftp_server_2_local_cumulate">
<Operation>
<Copy>
<CopySource>
<CopySourceFragmentRef>
<SFTPFragmentRef ref="sftp_test" />
</CopySourceFragmentRef>
<SourceFileOptions>
<Selection>
<FileSpecSelection>
<FileSpec><![CDATA[^test_.\.txt$]]></FileSpec>
<Directory><![CDATA[/]]></Directory>
</FileSpecSelection>
</Selection>
</SourceFileOptions>
</CopySource>
<CopyTarget>
<CopyTargetFragmentRef>
<LocalTarget />
</CopyTargetFragmentRef>
<Directory><![CDATA[${USERPROFILE}\jade_demo\a]]></Directory>
<TargetFileOptions>
<CumulateFiles>
<CumulativeFileSeparator><![CDATA[--- File: %{SourceFileName} ---]]></CumulativeFileSeparator>
<CumulativeFilename><![CDATA[text-files.txt]]></CumulativeFilename>
</CumulateFiles>
</TargetFileOptions>
</CopyTarget>
</Copy>
</Operation>
</Profile>
</Profiles>
</Configurations> | ||||
Code Block | ||||
| ||||
|
Simple File Transfer Operations with multiple Profiles
...