Cyberduck> how to automate SFTP upload

I have a mac and need to upload files SFTP to remote server. I generate these files on my Mac>store them on my Mac>move the file to Cyberduck SFTP incoming folder where they are transferred then DELETED from incoming folder. The issues are> 1 files stored on mac 2 have to be manually transferred to Cyberduck incoming SFTP folder 3 deleted from Mac.


Is there a way to mount that incoming SFTP folder on my Mac and send generated files direct to incoming folder where it will be deleted after transfer? ? Mountain Duck?? Another option would be to have folder on Mac called Cybduck transfer> send file to that folder which would AUTOMATICALLY transfer to Cyberduck incoming and then DELETE or MOVE to Mac folder Cyberduck Transfer DONE folder.. thanks for the help

iMac, Mac OS X (10.6.8)

Posted on Aug 11, 2018 8:31 AM

Reply
2 replies

Aug 11, 2018 8:40 AM in response to Arnold J. Levine, M.D.

sftp is a flavor of ssh, as is the scp command.


You could write a shell script that uses scp to copy your files, and when they are successfully transferred, you could then remove them in the shell script.


scp file.1 username@remote.host:/path/to/where/to/store/file.1

scp file.1 username@remote.host:/path/to/where/to/store/file.2

scp file.1 username@remote.host:/path/to/where/to/store/file.3

scp file.1 username@remote.host:/path/to/where/to/store/file.4

...

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Cyberduck> how to automate SFTP upload

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.