...
Simple File Selection
- Document: simple_file_selection_01.xml
- see The JADE Client Command Line Interface - Tutorial 2 - Simple File Selection
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_select_recursive"> <Operation> <Copy> <CopySource> <CopySourceFragmentRef> <SFTPFragmentRef ref="sftp_test" /> </CopySourceFragmentRef> <SourceFileOptions> <Selection> <FileSpecSelection> <FileSpec><![CDATA[^test_.\.txt$]]></FileSpec> <Directory><![CDATA[/rec]]></Directory> <Recursive><![CDATA[true]]></Recursive> </FileSpecSelection> </Selection> </SourceFileOptions> </CopySource> <CopyTarget> <CopyTargetFragmentRef> <LocalTarget /> </CopyTargetFragmentRef> <Directory><![CDATA[${USERPROFILE}\jade_demo\a]]></Directory> </CopyTarget> </Copy> </Operation> </Profile> </Profiles> </Configurations> |
- Document: todo simple_file_selection_02.xml
- see The JADE Client Command Line Interface - Tutorial 2 - Simple File Selection
Code Block | ||||
---|---|---|---|---|
| ||||
todo<?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_zero_byte"> <Operation> <Copy> <CopySource> <CopySourceFragmentRef> <SFTPFragmentRef ref="sftp_test" /> </CopySourceFragmentRef> <SourceFileOptions> <Selection> <FileSpecSelection> <FileSpec><![CDATA[^test_[0-9]\.txt$]]></FileSpec> <Directory><![CDATA[/]]></Directory> </FileSpecSelection> </Selection> <Directives> <TransferZeroByteFiles><![CDATA[relaxed]]></TransferZeroByteFiles> </Directives> </SourceFileOptions> </CopySource> <CopyTarget> <CopyTargetFragmentRef> <LocalTarget /> </CopyTargetFragmentRef> <Directory><![CDATA[${USERPROFILE}\jade_demo\a]]></Directory> </CopyTarget> </Copy> </Operation> </Profile> </Profiles> </Configurations> |