我正在使用出站通道适配器将文件 sftp 到其他位置...在 sftp 之后,我想将备份带到另一个位置...只是想知道如何做同样的事情?是否可以将其重定向到其他频道?
我的 sftp 配置如下。
<integ-sftp:outbound-channel-adapter id="sftpOutboundAdapter"
session-factory="sftpSessionFactory" `enter code here`
channel="sftp-push" auto-create-directory="true"
charset="UTF-8"
remote-directory-expression="headers['remotedir']" />