sunny rajpal
sunny rajpal

Reputation: 33

how to copy files from sftp to amazon s3 using java

How to copy files from SFTP server to amazon-S3 using java? I don't want to download the data to local ,all data should be full copied to S3 bucket to destined path

Upvotes: 2

Views: 2606

Answers (1)

jspcal
jspcal

Reputation: 51894

If you have access to run programs on the SFTP server, (via SSH or a web page), then you can perform the upload on the same host that the file is stored.

If that's not possible, then you'll need to retrieve the file from SFTP and upload it to S3. You'll get the best performance by doing that from an EC2 instance, but you can do it from any host.

There are some services like FTP2Cloud that do this as well.

Upvotes: 2

Related Questions