错误“没有匹配的 URL"将 Google 云存储桶数据复制到我的本地计算机时? [英] Error "No URLs matched" When copying Google cloud bucket data to my local computer?

查看:18
本文介绍了错误“没有匹配的 URL"将 Google 云存储桶数据复制到我的本地计算机时?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试下载我的 Google Cloud Bucket 中的 文件夹,我从 google docs gsutil/commands/cp 并在该行下方执行.

I am trying to download a folder which is inside my Google Cloud Bucket, I read from google docs gsutil/commands/cp and executed below the line.

gsutil cp -r appengine.googleapis.com gs://my-bucket

gsutil cp -r appengine.googleapis.com gs://my-bucket

但我得到 error

CommandException:没有匹配的 URL:appengine.googleapis.com

CommandException: No URLs matched: appengine.googleapis.com

编辑

通过下面的命令运行

gsutil cp -r gs://logsnotimelimit .

gsutil cp -r gs://logsnotimelimit .

我收到错误

IOError: [Errno 22] 无效模式 ('ab') 或文件名:u'.logsnotimelimitappengine.googleapis.com ginx.request201831414:00:00_14:59:59_S0.json_.gstmp'

IOError: [Errno 22] invalid mode ('ab') or filename: u'.logsnotimelimitappengine.googleapis.com ginx.request201831414:00:00_14:59:59_S0.json_.gstmp'

推荐答案

您的命令中的 appengine.googleapis.com 参数是什么?这是您尝试复制到云存储桶的文件系统上的本地目录吗?

What is the appengine.googleapis.com parameter in your command? Is that a local directory on your filesystem you are trying to copy to the cloud bucket?

您提供的 gsutil cp -r appengine.googleapis.com gs://my-bucket 命令会将名为 appengine.googleapis.com 的本地目录递归复制到您的云存储桶名为 my-bucket.如果这不是你正在做的 - 你需要以不同的方式构建你的命令.

The gsutil cp -r appengine.googleapis.com gs://my-bucket command you provided will copy a local directory named appengine.googleapis.com recursively to your cloud bucket named my-bucket. If that's not what you are doing - you need to construct your command differently.

即将名为 folder 的目录从名为 my-bucket 的云存储桶下载到当前位置尝试运行gsutil cp -r gs://my-bucket/folder .

I.e. to download a directory named folder from your cloud bucket named my-bucket into the current location try running gsutil cp -r gs://my-bucket/folder .

-- 更新:因为您使用的是 Windows 机器("目录分隔符而不是/" 在错误消息中) 并且由于文件名包含 ":" 字符 - 当创建带有您看到的错误消息的文件时,cp 命令最终会失败.

-- Update: Since it appears that you're using a Windows machine (the "" directory separators instead of "/" in the error message) and since the filenames contain the ":" character - the cp command will end up failing when creating those files with the error message you're seeing.

这篇关于错误“没有匹配的 URL"将 Google 云存储桶数据复制到我的本地计算机时?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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