Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

All examples are used for JADE Configuration XSD schema http://www.sos-berlin.com/schema/jade/JADE_configuration_v1.0.xsd

...

Getting Started

Code Block
languagexml
collapsetrue
<?xml version="1.0" encoding="utf-8"?>
<Configurations xsi:noNamespaceSchemaLocation="http://www.sos-berlin.com/schema/jade/JADE_configuration_v1.0.work.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Fragments>
    <ProtocolFragments>
      <FTPFragment name="ftp_test">
        <BasicConnection>
          <Hostname><![CDATA[test.sos-berlin.com]]></Hostname>
          <Port><![CDATA[21]]></Port>
        </BasicConnection>
        <BasicAuthentication>
          <Account><![CDATA[demo]]></Account>
          <Password><![CDATA[demo]]></Password>
        </BasicAuthentication>
      </FTPFragment>
    </ProtocolFragments>
  <SFTPFragment name="sftp_test</Fragments>
  <Profiles>
    <Profile profile_id="ftp_server_2_local">
      <Operation>
  <BasicConnection>
      <Copy>
    <Hostname><![CDATA[test.sos-berlin.com]]></Hostname>
      <CopySource>
    <Port><![CDATA[22]]></Port>
        </BasicConnection><CopySourceFragmentRef>
        <SSHAuthentication>
      <FTPFragmentRef ref="ftp_test" />
  <Account><![CDATA[demo]]></Account>
          <AuthenticationMethodPassword></CopySourceFragmentRef>
            <Password><![CDATA[demo]]></Password>
 <SourceFileOptions>
         </AuthenticationMethodPassword>
     <Selection>
   </SSHAuthentication>
      </SFTPFragment>
      <SFTPFragment name="sftp_test_key"> <FileSpecSelection>
        <BasicConnection>
          <Hostname><<FileSpec><![CDATA[test.sos-berlin.com*]]></Hostname>FileSpec>
          <Port><        <Directory><![CDATA[22/]]></Port>Directory>
        </BasicConnection>
        <SSHAuthentication></FileSpecSelection>
          <Account><![CDATA[demo]]></Account>    </Selection>
          <AuthenticationMethodPublickey>
  </SourceFileOptions>
          <AuthenticationFile><![CDATA[${USERPROFILE}\jade_demo\demo_id_rsa]]></AuthenticationFile></CopySource>
          </AuthenticationMethodPublickey><CopyTarget>
        </SSHAuthentication>
    <CopyTargetFragmentRef>
  </SFTPFragment>
    </ProtocolFragments>
  </Fragments>
  <Profiles>
    <Profile profile_id="ftp_server_2_local"<LocalTarget />
      <Operation>
        <Copy></CopyTargetFragmentRef>
          <CopySource>
            <CopySourceFragmentRef>  <Directory><![CDATA[${USERPROFILE}\jade_demo\a]]></Directory>
              <FTPFragmentRef ref="ftp_test" />
    </CopyTarget>
        </CopySourceFragmentRef>Copy>
            <SourceFileOptions></Operation>
    </Profile>
  </Profiles>
</Configurations>

 

Code Block
languagexml
collapsetrue
<?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">          <Selection>
                <FileSpecSelection>
                  <FileSpec><![CDATA[.*]]></FileSpec>
        <BasicConnection>
          <Directory><<Hostname><![CDATA[/test.sos-berlin.com]]></Directory>Hostname>
          <Port><![CDATA[22]]></Port>
        </FileSpecSelection>BasicConnection>
         <SSHAuthentication>
     </Selection>
     <Account><![CDATA[demo]]></Account>
       </SourceFileOptions>
   <AuthenticationMethodPassword>
            </CopySource><Password><![CDATA[demo]]></Password>
          <CopyTarget></AuthenticationMethodPassword>
        </SSHAuthentication>
    <CopyTargetFragmentRef>
  </SFTPFragment>
    </ProtocolFragments>
  </Fragments>
  <Profiles>
    <LocalTarget />
<Profile profile_id="sftp_server_2_local_pass">
      <Operation>
        </CopyTargetFragmentRef><Copy>
            <Directory><![CDATA[${USERPROFILE}\jade_demo\a]]></Directory>
  <CopySource>
            <CopySourceFragmentRef>
        </CopyTarget>
      <SFTPFragmentRef ref="sftp_test" </Copy>>
      </Operation>
      </Profile>CopySourceFragmentRef>
    <Profile profile_id="sftp_server_2_local_pass">
        <Operation><SourceFileOptions>
        <Copy>
      <Selection>
    <CopySource>
            <CopySourceFragmentRef><FileSpecSelection>
                <SFTPFragmentRef ref="sftp_test" /> <FileSpec><![CDATA[.*]]></FileSpec>
            </CopySourceFragmentRef>
            <SourceFileOptions>
              <Selection>
                <FileSpecSelection>
                  <FileSpec><![CDATA[.*]]></FileSpec>
                  <Directory><![CDATA<Directory><![CDATA[/]]></Directory>
                </FileSpecSelection>
              </Selection>
            </SourceFileOptions>
          </CopySource>
          <CopyTarget>
            <CopyTargetFragmentRef>
              <LocalTarget />
            </CopyTargetFragmentRef>
            <Directory><![CDATA[${USERPROFILE}\jade_demo\a]]></Directory>
          </CopyTarget>
        </Copy>
      </Operation>
    </Profile>
  </Profiles>
</Configurations>

Simple File Selection

Code Block
languagexml
collapsetrue
<?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>
  <Profile profile_id="sftp_server_2_local_select_recursive">
      <Operation>
        <Copy>
          <CopySource><SFTPFragment name="sftp_test">
        <BasicConnection>
    <CopySourceFragmentRef>
      <Hostname><![CDATA[test.sos-berlin.com]]></Hostname>
        <SFTPFragmentRef ref="sftp_test" /> <Port><![CDATA[22]]></Port>
            </CopySourceFragmentRef></BasicConnection>
            <SourceFileOptions><SSHAuthentication>
              <Selection><Account><![CDATA[demo]]></Account>
                <FileSpecSelection><AuthenticationMethodPassword>
                  <FileSpec><<Password><![CDATA[^test_.\.txt$demo]]></FileSpec>Password>
          </AuthenticationMethodPassword>
        <Directory><![CDATA[/rec]]></Directory></SSHAuthentication>
      </SFTPFragment>
    </ProtocolFragments>
        <Recursive><![CDATA[true]]></Recursive></Fragments>
  <Profiles>
    <Profile profile_id="sftp_server_2_local_select_recursive">
      <Operation>
    </FileSpecSelection>
    <Copy>
          </Selection><CopySource>
            </SourceFileOptions><CopySourceFragmentRef>
           </CopySource>
   <SFTPFragmentRef ref="sftp_test" />
           <CopyTarget> </CopySourceFragmentRef>
            <CopyTargetFragmentRef><SourceFileOptions>
              <LocalTarget />
<Selection>
                </CopyTargetFragmentRef>
<FileSpecSelection>
                 <Directory>< <FileSpec><![CDATA[${USERPROFILE}\jade_demo\a^test_.\.txt$]]></Directory>FileSpec>
          </CopyTarget>
        </Copy><Directory><![CDATA[/rec]]></Directory>
      </Operation>
    </Profile>
    <Profile profile_id="sftp_server_2_local_zero_byte">
      <Operation>   <Recursive><![CDATA[true]]></Recursive>
        <Copy>
        </FileSpecSelection>
  <CopySource>
            <CopySourceFragmentRef></Selection>
              <SFTPFragmentRef ref="sftp_test" /></SourceFileOptions>
            </CopySourceFragmentRef>CopySource>
            <SourceFileOptions><CopyTarget>
              <Selection><CopyTargetFragmentRef>
              <LocalTarget  <FileSpecSelection>/>
                  <FileSpec><![CDATA[^test_[0-9]\.txt$]]></FileSpec>
  </CopyTargetFragmentRef>
                <Directory><![CDATA[/${USERPROFILE}\jade_demo\a]]></Directory>
                </FileSpecSelection>CopyTarget>
        </Copy>
      </Selection>Operation>
    </Profile>
  </Profiles>
</Configurations>

 

Code Block
languagexml
collapsetrue
<?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>          <Directives>
                <TransferZeroByteFiles><![CDATA[relaxed]]></TransferZeroByteFiles>
              </Directives>
            </SourceFileOptions>
          </CopySource>
          <CopyTarget>
      <SFTPFragment name="sftp_test">
     <CopyTargetFragmentRef>
   <BasicConnection>
           <LocalTarget /><Hostname><![CDATA[test.sos-berlin.com]]></Hostname>
            </CopyTargetFragmentRef><Port><![CDATA[22]]></Port>
        </BasicConnection>
        <SSHAuthentication>
          <Account><![CDATA[demo]]></Account>
          <AuthenticationMethodPassword>
            <Directory><<Password><![CDATA[${USERPROFILE}\jade_demo\a]]></Directory>Password>
          </CopyTarget>AuthenticationMethodPassword>
        </Copy>SSHAuthentication>
      </Operation>SFTPFragment>
    </Profile>ProtocolFragments>
  </Fragments>
  <Profiles>
    <Profile profile_id="sftp_server_2_local_pollzero_minfilesbyte">
      <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><Directives>
                <PollInterval><<TransferZeroByteFiles><![CDATA[20relaxed]]></PollInterval>
                <PollTimeout><![CDATA[1]]></PollTimeout>
                <MinFiles><![CDATA[3]]></MinFiles>
                <KeepConnection><![CDATA[true]]></KeepConnection>TransferZeroByteFiles>
              </Polling>Directives>
            </SourceFileOptions>
          </CopySource>
          <CopyTarget>
            <CopyTargetFragmentRef>
              <LocalTarget />
            </CopyTargetFragmentRef>
            <Directory><![CDATA[${USERPROFILE}\jade_demo\a]]></Directory>
          </CopyTarget>
        </Copy>
      </Operation>
    </Profile>
  </Profiles>
</Configurations>

 

Simple File Transfer Operations with multiple Profiles

Code Block
languagexml
collapsetrue
<?xml version="1.0" encoding="utf-8"?>
<Configurations xsi:noNamespaceSchemaLocation="http://www.sos-berlin.com/schema/jade/JADE_configuration_v1.0.work.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Fragments>
    <ProtocolFragments>
  <Profile profile_id="replace_local_datestamp">
      <Operation>
        <Copy>
 <FTPFragment name="ftp_test">
        <CopySource><BasicConnection>
            <CopySourceFragmentRef><Hostname><![CDATA[test.sos-berlin.com]]></Hostname>
              <LocalSource />
  <Port><![CDATA[21]]></Port>
          </CopySourceFragmentRef>BasicConnection>
        <BasicAuthentication>
    <SourceFileOptions>
      <Account><![CDATA[demo]]></Account>
        <Selection>
  <Password><![CDATA[demo]]></Password>
        </BasicAuthentication>
      </FTPFragment>
       <FileSpecSelection><SFTPFragment name="sftp_test">
        <BasicConnection>
          <FileSpec><<Hostname><![CDATA[^test_[0-9]\.txt$test.sos-berlin.com]]></FileSpec>Hostname>
                  <Directory><<Port><![CDATA[${USERPROFILE}\jade_demo\a22]]></Directory>Port>
        </BasicConnection>
        </FileSpecSelection><SSHAuthentication>
          <Account><![CDATA[demo]]></Account>
    </Selection>      <AuthenticationMethodPassword>
            </SourceFileOptions><Password><![CDATA[demo]]></Password>
          </CopySource>AuthenticationMethodPassword>
        </SSHAuthentication>
    <CopyTarget>  </SFTPFragment>
      <SFTPFragment name="sftp_test_key">
      <CopyTargetFragmentRef>
  <BasicConnection>
          <Hostname><![CDATA[test.sos-berlin.com]]></Hostname>
  <LocalTarget>
        <Port><![CDATA[22]]></Port>
        <Rename></BasicConnection>
        <SSHAuthentication>
          <ReplaceWhat><<Account><![CDATA[^(test)(_)[0-9]\.txt]]></ReplaceWhat>
demo]]></Account>
          <AuthenticationMethodPublickey>
            <ReplaceWith><<AuthenticationFile><![CDATA[file_;[date:yyyy-MM-dd]_${USERPROFILE}\jade_demo\demo_id_rsa]]></ReplaceWith>AuthenticationFile>
          </AuthenticationMethodPublickey>
        </Rename>SSHAuthentication>
      </SFTPFragment>
      </ProtocolFragments>
  </LocalTarget>Fragments>
  <Profiles>
    <Profile profile_id="ftp_server_2_local">
      </CopyTargetFragmentRef>
<Operation>
        <Copy>
       <Directory><![CDATA[${USERPROFILE}\jade_demo\b]]></Directory>
   <CopySource>
       </CopyTarget>
        </Copy><CopySourceFragmentRef>
      </Operation>
    </Profile>
    <Profile<FTPFragmentRef profile_idref="sftp_server_2_local_cumulate"ftp_test" />
      <Operation>
      </CopySourceFragmentRef>
  <Copy>
          <CopySource><SourceFileOptions>
              <CopySourceFragmentRef><Selection>
              <SFTPFragmentRef ref="sftp_test" /> <FileSpecSelection>
            </CopySourceFragmentRef>
      <FileSpec><![CDATA[.*]]></FileSpec>
      <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></CopyTarget>
        </Copy>
      <CumulateFiles></Operation>
    </Profile>
      <Profile profile_id="sftp_server_2_local_pass">
      <CumulativeFileSeparator><![CDATA[--- File: %{SourceFileName} ---]]></CumulativeFileSeparator>
<Operation>
        <Copy>
           <CumulativeFilename><![CDATA[text-files.txt]]></CumulativeFilename><CopySource>
            <CopySourceFragmentRef>
    <CumulativeFileDelete><![CDATA[true]]></CumulativeFileDelete>
          <SFTPFragmentRef    </CumulateFiles>ref="sftp_test" />
            </TargetFileOptions>CopySourceFragmentRef>
          </CopyTarget>  <SourceFileOptions>
        </Copy>
      </Operation><Selection>
     </Profile>
    <Profile profile_id="local_2_local_create_md5">
      <Operation><FileSpecSelection>
        <Copy>
          <CopySource>
<FileSpec><![CDATA[.*]]></FileSpec>
                  <CopySourceFragmentRef>
<Directory><![CDATA[/]]></Directory>
               <LocalSource </>FileSpecSelection>
              </CopySourceFragmentRef>Selection>
            <SourceFileOptions></SourceFileOptions>
          </CopySource>
      <Selection>    <CopyTarget>
            <CopyTargetFragmentRef>
    <FileSpecSelection>
          <LocalTarget />
         <FileSpec><![CDATA[^test_[0-9]\.txt$]]></FileSpec>
      </CopyTargetFragmentRef>
            <Directory><![CDATA[${USERPROFILE}\jade_demo\a]]></Directory>
          </CopyTarget>
        </FileSpecSelection>Copy>
      </Operation>
    </Profile>
    </Selection> <Profile profile_id="sftp_server_2_local_select_recursive">
      <Operation>
        </SourceFileOptions><Copy>
          </CopySource><CopySource>
            <CopyTarget><CopySourceFragmentRef>
            <CopyTargetFragmentRef>
  <SFTPFragmentRef ref="sftp_test" />
           <LocalTarget </>CopySourceFragmentRef>
            </CopyTargetFragmentRef><SourceFileOptions>
            <Directory><![CDATA[${USERPROFILE}\jade_demo\b]]></Directory>
  <Selection>
                <TargetFileOptions><FileSpecSelection>
              <CreateIntegrityHashFile><    <FileSpec><![CDATA[true^test_.\.txt$]]></CreateIntegrityHashFile>
FileSpec>
                  </TargetFileOptions><Directory><![CDATA[/rec]]></Directory>
          </CopyTarget>
        <Recursive><![CDATA[true]]></Recursive>
          </Copy>
      </Operation>FileSpecSelection>
    </Profile>
    <Profile profile_id="local_2_local_check_md5">
        </Selection>
    <Operation>
        <Copy></SourceFileOptions>
          <CopySource></CopySource>
            <CopySourceFragmentRef><CopyTarget>
            <CopyTargetFragmentRef>
  <LocalSource />
           <LocalTarget </CopySourceFragmentRef>>
            <SourceFileOptions></CopyTargetFragmentRef>
            <Directory><![CDATA[${USERPROFILE}\jade_demo\a]]></Directory>
  <Selection>
        </CopyTarget>
        <FileSpecSelection></Copy>
      </Operation>
    </Profile>
        <FileSpec><![CDATA[^test_[0-9]\.txt$]]></FileSpec><Profile profile_id="sftp_server_2_local_zero_byte">
      <Operation>
        <Copy>
    <Directory><![CDATA[${USERPROFILE}\jade_demo\b]]></Directory>
      <CopySource>
            </FileSpecSelection><CopySourceFragmentRef>
               </Selection><SFTPFragmentRef ref="sftp_test" />
            </SourceFileOptions>CopySourceFragmentRef>
          </CopySource>
  <SourceFileOptions>
        <CopyTarget>
      <Selection>
      <CopyTargetFragmentRef>
              <LocalTarget /><FileSpecSelection>
            </CopyTargetFragmentRef>
            <Directory><<FileSpec><![CDATA[${USERPROFILE}\jade_demo\b\checked^test_[0-9]\.txt$]]></Directory>FileSpec>
            <TargetFileOptions>
      <Directory><![CDATA[/]]></Directory>
        <CheckIntegrityHash />
       </FileSpecSelection>
     </TargetFileOptions>
          </CopyTarget>Selection>
        </Copy>
      </Operation><Directives>
     </Profile>
    <Profile profile_id="sftp_server_2_local_atomic">
      <Operation><TransferZeroByteFiles><![CDATA[relaxed]]></TransferZeroByteFiles>
        <Copy>
          <CopySource></Directives>
            <CopySourceFragmentRef></SourceFileOptions>
              <SFTPFragmentRef ref="sftp_test" /></CopySource>
            </CopySourceFragmentRef><CopyTarget>
            <SourceFileOptions><CopyTargetFragmentRef>
              <LocalTarget <Selection>/>
                <FileSpecSelection></CopyTargetFragmentRef>
                  <FileSpec><<Directory><![CDATA[^test_large_1\.txt$${USERPROFILE}\jade_demo\a]]></FileSpec>Directory>
          </CopyTarget>
        <Directory><![CDATA[/large/]]></Directory></Copy>
      </Operation>
          </FileSpecSelection></Profile>
              </Selection><Profile profile_id="sftp_server_2_local_poll_minfiles">
            </SourceFileOptions><Operation>
          </CopySource><Copy>
          <CopyTarget><CopySource>
            <CopyTargetFragmentRef><CopySourceFragmentRef>
               <LocalTarget<SFTPFragmentRef ref="sftp_test" />
            </CopyTargetFragmentRef>CopySourceFragmentRef>
            <Directory><![CDATA[${USERPROFILE}\jade_demo\a]]></Directory>
<SourceFileOptions>
              <TargetFileOptions><Selection>
                <Atomicity><FileSpecSelection>
                <AtomicPrefix><  <FileSpec><![CDATA[~^test_[0-9]\.txt$]]></AtomicPrefix>FileSpec>
                  <AtomicSuffix><<Directory><![CDATA[~/]]></AtomicSuffix>Directory>
                </Atomicity>FileSpecSelection>
              </TargetFileOptions>Selection>
            </CopyTarget>
  <Polling>
      </Copy>
      </Operation>
    </Profile>
    <Profile profile_id="local_2_local_check_steady_state">
<PollInterval><![CDATA[20]]></PollInterval>
        <Operation>
        <Copy><PollTimeout><![CDATA[1]]></PollTimeout>
          <CopySource>
      <MinFiles><![CDATA[3]]></MinFiles>
      <CopySourceFragmentRef>
          <KeepConnection><![CDATA[true]]></KeepConnection>
    <LocalSource />
            </CopySourceFragmentRef>Polling>
            <SourceFileOptions></SourceFileOptions>
          </CopySource>
      <Selection>
    <CopyTarget>
            <FileSpecSelection><CopyTargetFragmentRef>
              <LocalTarget />
   <FileSpec><![CDATA[^test_large_1\.txt$]]></FileSpec>
         </CopyTargetFragmentRef>
            <Directory><![CDATA[${USERPROFILE}\jade_demo\a]]></Directory>
                </FileSpecSelection>CopyTarget>
        </Copy>
      </Selection>Operation>
    </Profile>
    <Profile profile_id="replace_local_datestamp">
     <CheckSteadyState> <Operation>
          <Copy>
      <CheckSteadyStateInterval><![CDATA[2]]></CheckSteadyStateInterval>
    <CopySource>
            <CheckSteadyStateCount><![CDATA[10]]></CheckSteadyStateCount>
<CopySourceFragmentRef>
              <LocalSource </CheckSteadyState>>
            </SourceFileOptions>CopySourceFragmentRef>
          </CopySource>
  <SourceFileOptions>
            <CopyTarget>  <Selection>
             <CopyTargetFragmentRef>
   <FileSpecSelection>
           <LocalTarget />
      <FileSpec><![CDATA[^test_[0-9]\.txt$]]></FileSpec>
      </CopyTargetFragmentRef>
            <Directory><![CDATA[${USERPROFILE}\jade_demo\ba]]></Directory>
              <TargetFileOptions  </>FileSpecSelection>
              </CopyTarget>Selection>
            </Copy>SourceFileOptions>
      </Operation>
    </Profile>CopySource>
     <Profile profile_id="sftp_server_2_local_key">
    <CopyTarget>
  <Operation>
        <Copy>
  <CopyTargetFragmentRef>
        <CopySource>
      <LocalTarget>
      <CopySourceFragmentRef>
          <Rename>
    <SFTPFragmentRef ref="sftp_test_key" />
            </CopySourceFragmentRef><ReplaceWhat><![CDATA[^(test)(_)[0-9]\.txt]]></ReplaceWhat>
            <SourceFileOptions>
      <ReplaceWith><![CDATA[file_;[date:yyyy-MM-dd]_]]></ReplaceWith>
        <Selection>
        </Rename>
        <FileSpecSelection>
      </LocalTarget>
            <FileSpec><![CDATA[^test\.txt$]]></FileSpec></CopyTargetFragmentRef>
                  <Directory><![CDATA[/${USERPROFILE}\jade_demo\b]]></Directory>
                </FileSpecSelection>CopyTarget>
        </Copy>
      </Selection>Operation>
            </SourceFileOptions>Profile>
       <Profile profile_id="sftp_server_2_local_cumulate">
      <Operation>
        </CopySource><Copy>
          <CopyTarget><CopySource>
            <CopyTargetFragmentRef><CopySourceFragmentRef>
               <LocalTarget<SFTPFragmentRef ref="sftp_test" />
            </CopyTargetFragmentRef>CopySourceFragmentRef>
            <Directory><![CDATA[${USERPROFILE}\jade_demo\a]]></Directory>
<SourceFileOptions>
              </CopyTarget><Selection>
          </Copy>
      </Operation><FileSpecSelection>
    </Profile>
  </Profiles>
</Configurations>

Getting Started

Code Block
languagexml
collapsetrue
<?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>
              <FileSpec><![CDATA[^test_.\.txt$]]></FileSpec>
             <FTPFragment name="ftp_test">
        <BasicConnection>
          <Hostname><<Directory><![CDATA[test.sos-berlin.com/]]></Hostname>Directory>
          <Port><![CDATA[21]]></Port>
        </BasicConnection>FileSpecSelection>
           <BasicAuthentication>
   </Selection>
       <Account><![CDATA[demo]]></Account>     </SourceFileOptions>
          <Password><![CDATA[demo]]></Password></CopySource>
        </BasicAuthentication>
  <CopyTarget>
    </FTPFragment>
    </ProtocolFragments>
  </Fragments>
  <Profiles><CopyTargetFragmentRef>
    <Profile profile_id="ftp_server_2_local">
      <Operation>
    <LocalTarget />
   <Copy>
          <CopySource></CopyTargetFragmentRef>
            <CopySourceFragmentRef><Directory><![CDATA[${USERPROFILE}\jade_demo\a]]></Directory>
              <FTPFragmentRef ref="ftp_test" />
     <TargetFileOptions>
       </CopySourceFragmentRef>
            <SourceFileOptions><CumulateFiles>
              <Selection>
  <CumulativeFileSeparator><![CDATA[--- File:             <FileSpecSelection>%{SourceFileName} ---]]></CumulativeFileSeparator>
                  <FileSpec><<CumulativeFilename><![CDATA[text-files.*txt]]></FileSpec>CumulativeFilename>
                  <Directory><<CumulativeFileDelete><![CDATA[/true]]></Directory>CumulativeFileDelete>
                </FileSpecSelection>CumulateFiles>
              </Selection>TargetFileOptions>
            </SourceFileOptions>CopyTarget>
          </CopySource>Copy>
      </Operation>
    <CopyTarget></Profile>
    <Profile profile_id="local_2_local_create_md5">
      <Operation>
   <CopyTargetFragmentRef>
     <Copy>
         <LocalTarget /><CopySource>
            </CopyTargetFragmentRef>
<CopySourceFragmentRef>
               <Directory><![CDATA[${USERPROFILE}\jade_demo\a]]></Directory>
<LocalSource />
            </CopyTarget>CopySourceFragmentRef>
            </Copy><SourceFileOptions>
      </Operation>
        </Profile>
  </Profiles>
</Configurations>

 

Code Block
languagexml
collapsetrue
<?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>
<Selection>
                <FileSpecSelection>
                  <FileSpec><![CDATA[^test_[0-9]\.txt$]]></FileSpec>
                  <Directory><![CDATA[${USERPROFILE}\jade_demo\a]]></Directory>
                </FileSpecSelection>
              </Selection>
            </SourceFileOptions>
         <SFTPFragment name="sftp_test">
 </CopySource>
         <BasicConnection> <CopyTarget>
            <Hostname><![CDATA[test.sos-berlin.com]]></Hostname>
<CopyTargetFragmentRef>
            <Port><![CDATA[22]]></Port>  <LocalTarget />
        </BasicConnection>
     </CopyTargetFragmentRef>
   <SSHAuthentication>
          <Account><<Directory><![CDATA[${USERPROFILE}\jade_demo\b]]></Account>Directory>
            <AuthenticationMethodPassword><TargetFileOptions>
            <Password><  <CreateIntegrityHashFile><![CDATA[demotrue]]></Password>CreateIntegrityHashFile>
            </AuthenticationMethodPassword>TargetFileOptions>
          </SSHAuthentication>CopyTarget>
        </SFTPFragment>Copy>
      </ProtocolFragments>Operation>
    </Fragments>
  <Profiles>Profile>
    <Profile profile_id="sftp_serverlocal_2_local_check_passmd5">
      <Operation>
        <Copy>
          <CopySource>
            <CopySourceFragmentRef>
              <SFTPFragmentRef ref="sftp_test"<LocalSource />
            </CopySourceFragmentRef>
            <SourceFileOptions>
              <Selection>
                <FileSpecSelection>
                  <FileSpec><![CDATA[.*^test_[0-9]\.txt$]]></FileSpec>
                  <Directory><![CDATA[/[${USERPROFILE}\jade_demo\b]]></Directory>
                </FileSpecSelection>
              </Selection>
            </SourceFileOptions>
          </CopySource>
          <CopyTarget>
            <CopyTargetFragmentRef>
              <LocalTarget />
            </CopyTargetFragmentRef>
            <Directory><![CDATA[${USERPROFILE}\jade_demo\a]]></Directory>b\checked]]></Directory>
            <TargetFileOptions>
              <CheckIntegrityHash />
            </TargetFileOptions>
          </CopyTarget>
        </Copy>
      </Operation>
    </Profile>
    <Profile profile_id="sftp_server_2_local_atomic">
      </CopyTarget><Operation>
        </Copy><Copy>
       </Operation>
   <CopySource>
      </Profile>
  </Profiles>
</Configurations>

Simple File Selection

Code Block
languagexml
collapsetrue
<?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">      <CopySourceFragmentRef>
              <SFTPFragmentRef ref="sftp_test" />
            </CopySourceFragmentRef>
            <SourceFileOptions>
              <Selection>
                <FileSpecSelection>
        <BasicConnection>
          <Hostname><<FileSpec><![CDATA[test.sos-berlin.com^test_large_1\.txt$]]></Hostname>
FileSpec>
                  <Port><<Directory><![CDATA[22/large/]]></Port>
Directory>
                </FileSpecSelection>
              </BasicConnection>Selection>
          <SSHAuthentication>  </SourceFileOptions>
          <Account><![CDATA[demo]]></Account></CopySource>
          <AuthenticationMethodPassword><CopyTarget>
            <Password><![CDATA[demo]]></Password>
<CopyTargetFragmentRef>
              <LocalTarget </AuthenticationMethodPassword>>
        </SSHAuthentication>
      </SFTPFragment>CopyTargetFragmentRef>
    </ProtocolFragments>
  </Fragments>
  <Profiles>
    <Profile profile_id="sftp_server_2_local_select_recursive">
  <Directory><![CDATA[${USERPROFILE}\jade_demo\a]]></Directory>
    <Operation>
        <Copy><TargetFileOptions>
          <CopySource>
    <Atomicity>
        <CopySourceFragmentRef>
        <AtomicPrefix><![CDATA[~]]></AtomicPrefix>
      <SFTPFragmentRef ref="sftp_test" />
            </CopySourceFragmentRef><AtomicSuffix><![CDATA[~]]></AtomicSuffix>
            <SourceFileOptions>
  </Atomicity>
            <Selection></TargetFileOptions>
          </CopyTarget>
      <FileSpecSelection>
   </Copy>
      </Operation>
    </Profile>
     <FileSpec><![CDATA[^test_.\.txt$]]></FileSpec><Profile profile_id="local_2_local_check_steady_state">
      <Operation>
        <Copy>
    <Directory><![CDATA[/rec]]></Directory>
      <CopySource>
            <Recursive><![CDATA[true]]></Recursive><CopySourceFragmentRef>
              <LocalSource  </FileSpecSelection>>
              </Selection>CopySourceFragmentRef>
            </SourceFileOptions><SourceFileOptions>
          </CopySource>
     <Selection>
     <CopyTarget>
            <CopyTargetFragmentRef><FileSpecSelection>
              <LocalTarget />
    <FileSpec><![CDATA[^test_large_1\.txt$]]></FileSpec>
        </CopyTargetFragmentRef>
            <Directory><![CDATA[${USERPROFILE}\jade_demo\a]]></Directory>
                </CopyTarget>FileSpecSelection>
              </Copy>Selection>
           </Operation>
   <CheckSteadyState>
     </Profile>
  </Profiles>
</Configurations>

 

Code Block
languagexml
collapsetrue
<?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>
           <CheckSteadyStateInterval><![CDATA[2]]></CheckSteadyStateInterval>
                <CheckSteadyStateCount><![CDATA[10]]></CheckSteadyStateCount>
             <SFTPFragment name="sftp_test">
 </CheckSteadyState>
            <BasicConnection></SourceFileOptions>
          <Hostname><![CDATA[test.sos-berlin.com]]></Hostname></CopySource>
          <Port><![CDATA[22]]></Port><CopyTarget>
        </BasicConnection>
    <CopyTargetFragmentRef>
    <SSHAuthentication>
           <Account><![CDATA[demo]]></Account><LocalTarget />
          <AuthenticationMethodPassword>  </CopyTargetFragmentRef>
            <Password><<Directory><![CDATA[${USERPROFILE}\jade_demo\b]]></Password>Directory>
            <TargetFileOptions </AuthenticationMethodPassword>>
          </SSHAuthentication>CopyTarget>
        </SFTPFragment>Copy>
      </ProtocolFragments>Operation>
    </Fragments>
  <Profiles>Profile>
    <Profile profile_id="sftp_server_2_local_zero_bytekey">
      <Operation>
        <Copy>
          <CopySource>
            <CopySourceFragmentRef>
              <SFTPFragmentRef ref="sftp_test_key" />
            </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>

...