SFTP Get Destination
AnsweredI have a chain connecting to an SFTP doing a "list directory" and then looping through each file to download and put it in a different SFTP server. This works, but it takes too long to loop through the 100+ files on the source SFTP.
I'm looking to use the SFTP "Get" to get all the files in one go instead but I'm unclear on how to configure the "Destination" for this. It only allows for one connector so that obviously needs to be the source SFTP. I'm fine with doing multiple steps if I need to "get" the files somewhere and a separate step to then "put" them to the second SFTP location but where do they land in the interim? This is using a CloudRunner. Do I need to use the "Make Directory" File Utility to create a landing spot for them on the cloudrunner? How do I then reference that path as the Destination in the SFTP Get?
Everything I have tried so far as returned: ERROR: 4: Copying multiple files, but destination is missing or a file. from the Get.
-
Hello Hanna,
You could use the SFTP Get Command to download one or more files. If you would like to load them to a different directory or SFTP server, you could do so using the SFTP Put Command. This command allows you to Put multiple files or folders. Using these Commands may help to speed up the overall process you described above.
During a Chain run, files exist temporarily during the life of the execution of the Chain at the level of the Runner. At the completion of the Chain run, the files the Chain used/created are cleaned from the Runner server.
0Please sign in to leave a comment.
Comments
1 comment