﻿<?xml version="1.0" encoding="utf-8"?>
<Configurations>
  <Fragments>
    <ProtocolFragments>
      <JumpFragment name="jump">
        <BasicConnection>
          <Hostname><![CDATA[jump_host]]></Hostname>
        </BasicConnection>
        <SSHAuthentication>
          <Account><![CDATA[sftp_user]]></Account>
          <AuthenticationMethodPassword>
            <Password><![CDATA[sftp_user_password]]></Password>
          </AuthenticationMethodPassword>
        </SSHAuthentication>
        <JumpCommand><![CDATA[/home/sos-berlin.com/jade_client.1.13.x/bin/jade.sh]]></JumpCommand>
      </JumpFragment>
      <SFTPFragment name="target">
        <BasicConnection>
          <Hostname><![CDATA[target_host]]></Hostname>
        </BasicConnection>
        <SSHAuthentication>
          <Account><![CDATA[sftp_user]]></Account>
          <AuthenticationMethodPassword>
            <Password><![CDATA[sftp_user_password]]></Password>
          </AuthenticationMethodPassword>
        </SSHAuthentication>
        <JumpFragmentRef ref="jump" />
      </SFTPFragment>
    </ProtocolFragments>
  </Fragments>
  <Profiles>
    <Profile profile_id="copyToInternet-local2target">
      <Operation>
        <Copy>
          <CopySource>
            <CopySourceFragmentRef>
              <LocalSource />
            </CopySourceFragmentRef>
            <SourceFileOptions>
              <Selection>
                <FileSpecSelection>
                  <FileSpec><![CDATA[.*\.txt]]></FileSpec>
                  <Directory><![CDATA[C:/tmp/source]]></Directory>
                </FileSpecSelection>
              </Selection>
            </SourceFileOptions>
          </CopySource>
          <CopyTarget>
            <CopyTargetFragmentRef>
              <SFTPFragmentRef ref="target" />
            </CopyTargetFragmentRef>
            <Directory><![CDATA[/home/target/folder]]></Directory>
          </CopyTarget>
        </Copy>
      </Operation>
    </Profile>
    <Profile profile_id="copyFromInternet-target2local">
      <Operation>
        <Copy>
          <CopySource>
            <CopySourceFragmentRef>
              <SFTPFragmentRef ref="target" />
            </CopySourceFragmentRef>
            <SourceFileOptions>
              <Selection>
                <FileSpecSelection>
                  <FileSpec><![CDATA[.*\.txt]]></FileSpec>
                  <Directory><![CDATA[/home/target/folder]]></Directory>
                </FileSpecSelection>
              </Selection>
            </SourceFileOptions>
          </CopySource>
          <CopyTarget>
            <CopyTargetFragmentRef>
              <LocalTarget />
            </CopyTargetFragmentRef>
            <Directory><![CDATA[C:/tmp/target]]></Directory>
          </CopyTarget>
        </Copy>
      </Operation>
    </Profile>
    <Profile profile_id="moveFromInternet-target2local">
      <Operation>
        <Move>
          <MoveSource>
            <MoveSourceFragmentRef>
              <SFTPFragmentRef ref="target" />
            </MoveSourceFragmentRef>
            <SourceFileOptions>
              <Selection>
                <FileSpecSelection>
                  <FileSpec><![CDATA[.*\.txt]]></FileSpec>
                  <Directory><![CDATA[/home/target/folder]]></Directory>
                </FileSpecSelection>
              </Selection>
            </SourceFileOptions>
          </MoveSource>
          <MoveTarget>
            <MoveTargetFragmentRef>
              <LocalTarget />
            </MoveTargetFragmentRef>
            <Directory><![CDATA[C:/tmp/target]]></Directory>
          </MoveTarget>
        </Move>
      </Operation>
    </Profile>
    <Profile profile_id="getListFromInternet-target">
      <Operation>
        <GetList>
          <GetListSource>
            <GetListSourceFragmentRef>
              <SFTPFragmentRef ref="target" />
            </GetListSourceFragmentRef>
            <SourceFileOptions>
              <Selection>
                <FileSpecSelection>
                  <FileSpec><![CDATA[.*\.txt]]></FileSpec>
                  <Directory><![CDATA[/home/target/folder]]></Directory>
                </FileSpecSelection>
              </Selection>
            </SourceFileOptions>
          </GetListSource>
        </GetList>
      </Operation>
    </Profile>
    <Profile profile_id="removeFromInternet-target">
      <Operation>
        <Remove>
          <RemoveSource>
            <RemoveSourceFragmentRef>
              <SFTPFragmentRef ref="target" />
            </RemoveSourceFragmentRef>
            <SourceFileOptions>
              <Selection>
                <FileSpecSelection>
                  <FileSpec><![CDATA[test1\.txt]]></FileSpec>
                  <Directory><![CDATA[/home/target/folder]]></Directory>
                </FileSpecSelection>
              </Selection>
            </SourceFileOptions>
          </RemoveSource>
        </Remove>
      </Operation>
    </Profile>
  </Profiles>
</Configurations>