使用SFTP将文件从远程服务器直接复制到Azure Blob存储 [英] Copy file from remote server using SFTP straight to Azure blob storage

查看:139
本文介绍了使用SFTP将文件从远程服务器直接复制到Azure Blob存储的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个带有一堆静态文件的远程服务器(在Azure之外).我已经在Azure中创建了一个工作角色,我想使用工作角色通过SFTP将这些文件从我的远程服务器直接传输到我的Blob存储帐户(而不是本地复制到工作角色).是否已建立工作流程/最佳实践,有关如何做到这一点?

I've got a remote server with a bunch of static files (outside of Azure). I've created a worker role in Azure and I want to use the worker role to transfer these files using SFTP from my remote server straight to my blob storage account (without copying locally to the worker role). Is there an established workflow/best practices on how to do this?

我能找到的最接近的东西是这个问题: 将文件从URL复制到Azure BLOB

The closest thing I was able to find was this question: Copy file from URL to Azure BLOB

但是要使用StartCopyFromBlob,我需要有一个可公开访问的URL,而不是这种情况.

However to use StartCopyFromBlob I would need to have a publicly accessible URL which is not the case.

其中一些文件可能大于100mb或大于500mb,这会引起任何问题吗?

Also some of these files may be >100mb or >500mb, should that raise any problems?

谢谢.

推荐答案

您可能想通过另一种方法解决此问题,方法是在Azure上设置一个FTP服务器,将文件直接保存到Azure存储中.

You might want to tackle this the other way around, by setting up an FTP server on Azure which save the files directly to Azure storage.

有关如何使用预览文件执行此操作的详细说明,请参见

A good explanation on how to do this by use of the Preview Files can be found on http://fabriccontroller.net/blog/posts/deploying-a-load-balanced-high-available-ftp-server-with-azure-files/

这篇关于使用SFTP将文件从远程服务器直接复制到Azure Blob存储的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆