更新时间:2023-10-07 08:55:22
您可以使用-L选项生成所有已复制文件的清单文件.来自文档:
You can use the -L option to generate a manifest file of all files that were copied. From the documentation:
-L< file>输出清单日志文件,其中包含有关复制的每个项目的详细信息.此清单包含以下内容 每个项目的信息:
-L <file> Outputs a manifest log file with detailed information about each item that was copied. This manifest contains the following information for each item:
一个具体示例:
$ echo "hey" | gsutil cp -L manifest.txt - gs://mybucket/hey.txt
Copying from <STDIN> [Content-Type=application/octet-stream]...
$ cat manifest.txt
Source,Destination,Start,End,Md5,UploadId,Source Size,Bytes Transferred,Result,Description
file://-,gs://mybucket/hey.txt,2013-05-29T21:29:31.847715Z,2013-05-29T21:29:32.115624Z,081ecc5e6dd6ba0d150fc4bc0e62ec50,,,0,OK,