linux - 如何从 CLI Cyber​​Duck 访问 Google Drive?

标签 linux google-app-engine ftp google-drive-api google-cloud-storage

经过长时间的搜索,我发现对于需要在 Linux 和 Google Drive 之间传输文件的用户来说,似乎是最佳实践解决方案:

https://cyberduck.io/?l=en

CLI 版本是最新的,其文档不清楚。

Google Storage 的 URL 格式如下:

gs://[容器]/[键]

我的 Google 云端硬盘帐户是免费的基本帐户。我环顾四周,但不知道如何确定我的 [container] 和 [key]。

TIA。

添加:

我发现“[容器]”与“桶”相同。然而,“[key]”仍然是个谜。

最佳答案

根据找到的信息here ,

Google Storage and Google Drive — which storage API should my application use? Google provides two different storage services: Google Cloud Storage, and Google Drive. Both services allow programmatic access to their functionality, but the goals of the APIs are quite different. The Google Drive SDK works together with the Google Drive UI and the Chrome Web Store to create an ecosystem of apps that can be installed into Google Drive. These apps enhance the user experience by allowing users to interact with their data in novel ways. For instance, a user could install a Drive app to edit images or fax PDF files, and could create and open files with those apps directly in Google Drive.

Google Cloud Storage is intended to be accessed primarily through its API and provides all the functionality necessary for developers to use it as a backing store for their own applications. For example, a developer could store and host media and other static assets for a web game in Google Cloud Storage. Google Cloud Storage can also be used for online archives, backup replacement, and so on.

This illustrates the primary difference between the two APIs: Cloud Storage enables developers to store their application data in the Google cloud (and they’re responsible for the storage their app consumes), whereas in Drive, users allow apps to interact with the user’s private storage and content.

For an overview of Google storage options, including a video explaining the differences between the options, see Storing Your Data.

您不太可能获得存储在 Google 云端硬盘中的数据的存储桶和 key ID。如果 Google 为 Drive 与 Cloud Storage 使用其他基础设施(我认为 Drive 是基于 Cloud Storage 构建的),我会感到惊讶,但由于 Drive 本质上是基于 Cloud Storage 构建的应用程序,因此所使用的存储桶和 key 不会暴露给 Drive 使用。

此外,other folks似乎和我说的一样... Gsutil,因此 gs://获取文件的方式不适用于 Google 云端硬盘。

关于linux - 如何从 CLI Cyber​​Duck 访问 Google Drive?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29438616/

相关文章:

java - objectify/google 应用引擎中的外键

php - 如何访问不同谷歌应用程序引擎项目的数据存储?

c# - 如何: Save a StreamReader content in a string

linux - 在 perl grep 中模拟 linux grep -w

linux - Git 不会忽略文件权限更改

linux - 重定向 > 和 < 的优先级

Java Apache FTPClient : How to know my current directory

php - PHP5、MySQL 和 Macbook Pro 的组合是否构成 LAMP 堆栈?如果不是,那是什么?

google-app-engine - 无法在开发控制台内存缓存查看器中获取内存缓存值

php - 解压一个文件夹,然后在 PHP 中搜索特定文件