【问题标题】:How do i copy/move all files and subfolders from the current directory to a Google Cloud Storage bucket with gsutil如何使用 gsutil 将所有文件和子文件夹从当前目录复制/移动到 Google Cloud Storage 存储桶
【发布时间】:2017-05-31 17:14:09
【问题描述】:
我正在使用 gsutil,我需要将大量文件/子目录从 Windows 服务器上的目录复制到 Google Cloud Storage Bucket。
我已经检查了文档,但不知何故我似乎无法正确使用语法 - 我正在尝试以下方面的内容:
c:\test>gsutil -m cp -r . gs://mytestbucket
但我不断收到消息:
CommandException:没有匹配的 URL:.
我在这里做错了什么?
问候
莫顿·霍斯·尼尔森
【问题讨论】:
标签:
google-cloud-storage
gsutil
【解决方案1】:
试试gsutil -m cp -r * gs://mytestbucket
或gsutil -m cp -r *.* gs://mytestbucket
或者,如果您的本地目录名为 test,则上一级目录并输入:gsutil -m cp -r test gs://mytestbucket
不确定您在 Windows 上需要哪种语法,但可能是第一种。