...
Code Block | ||||
---|---|---|---|---|
| ||||
<?xml version="1.0" encoding="utf-8"?> <Configurations><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 /> </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> |
...
Code Block | ||||
---|---|---|---|---|
| ||||
<?xml version="1.0" encoding="utf-8"?> <Configurations><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_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> |
...