FTP 到 Google 存储 [英] FTP to Google Storage

本文介绍了FTP 到 Google 存储的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有些文件每天都会上传到 FTP 服务器,我需要 Google Cloud Storage 下的这些文件.我不想让上传文件的用户安装任何其他软件而让他们继续使用他们的 FTP 客户端.有没有办法将 GCS 用作 FTP 服务器?如果没有,我如何创建一个定期从 FTP 位置获取文件并将它们放入 GCS 的作业?换句话说:最好和最简单的方法是什么?

Some files get uploaded on a daily basis to an FTP server and I need those files under Google Cloud Storage. I don't want to bug the users that upload the files to install any additional software and just let them keep using their FTP client. Is there a way to use GCS as an FTP server? If not, how can I create a job that periodically picks up the files from an FTP location and puts them in GCS? In other words: what's the best and simplest way to do it?

推荐答案

我已经在 Google Compute 的 VM 中使用 gcsfs 成功设置了一个到 GCS 的 FTP 代理(由 jkff 在对我的问题的评论中),并附有以下说明:http://ilyapimenov.com/blog/2015/01/19/ftp-proxy-to-gcs.html

I have successfully set up an FTP proxy to GCS using gcsfs in a VM in Google Compute (mentioned by jkff in the comment to my question), with these instructions: http://ilyapimenov.com/blog/2015/01/19/ftp-proxy-to-gcs.html

虽然需要一些更改:

一些可能的问题:

  • 如果本地ip可以访问FTP服务器,远程ip不行,可能是你没有设置防火墙规则
  • 如果可以访问ftp服务器,但是不能写入,可能是因为需要write_enable=YES
  • 如果您想读取在/mnt 上创建的文件夹,但出现 I/O 错误,可能是因为 gcsfs_config 中的存储桶不正确.

此外,您的 ftp 客户端需要使用设置为被动"的传输模式.

Also, your ftp client needs to use the transfer mode set to "passive".

这篇关于FTP 到 Google 存储的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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