安排将文件从FTP服务器加载到Google Cloud Storage中 [英] Schedule loads of Files from FTP server into google Cloud storage

查看:72
本文介绍了安排将文件从FTP服务器加载到Google Cloud Storage中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

安排每天上传到ftp服务器上的文件到Google云存储中的文件的最佳方式是什么?

What is the best way to schedule a daily load of files which are uploaded on a ftp server into a google cloud storage?

需要哪些步骤才能做到这一点?

What steps are need to make this possible?

  1. 将ftp服务器中的文件移动到Google云存储中
  2. 安排每天的特定时间进行这项工作.

推荐答案

您可以使用Cloud Storage FUSE 工具,可让您将GCS存储桶作为文件系统挂载在Linux或MacOS系统上.要安装 FUSE,请遵循文档.

You can use Cloud Storage FUSE tools that allows you to mount the GCS bucket as a file system on Linux or MacOS systems. To install FUSE please follow the documents.

现在,您需要开发一个脚本,该脚本会将文件从VM传输到存储(挂载),并且可以使用

Now you need to developed an script which will transfer files from the VM to the Storage (mount) and for scheduling this job you can use cron job.

这篇关于安排将文件从FTP服务器加载到Google Cloud Storage中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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