[英]Refinerycms: file names lost after migrating files from one AWS S3 bucket to another
This is how I encountered the problem: 这是我遇到问题的方式:
Uploaded files to S3 将文件上传到S3
Tried to download the file, it works ok 试图下载文件,可以正常工作
Migrated the files in that bucket to another bucket (under the same AWS account) 将该存储桶中的文件迁移到另一个存储桶(在同一AWS账户下)
Tried to download the file again, it works, the file is downloaded, but the name of the file is just "file", no extension. 试图再次下载文件,它可以工作,文件已下载,但是文件名只是“文件”,没有扩展名。
If I change the file name to add the extension, it still opens. 如果我更改文件名以添加扩展名,它仍然会打开。 So the content of the file is ok, but the file name is lost after migrating to another bucket. 因此该文件的内容还可以,但是文件名在迁移到另一个存储桶后会丢失。
Has anybody met this problem before? 有人遇到过这个问题吗? Or know any potential causes of this? 还是知道任何可能的原因?
Thanks 谢谢
I figured this out. 我想通了。
It is because the metadata was lost during the migration. 这是因为元数据在迁移过程中丢失了。
I was moving files from one bucket to another by downloading them to local machine first. 我是通过先将文件下载到本地计算机来将文件从一个存储桶移动到另一个存储桶的。
What I should have done is : 我应该做的是:
aws s3 cp s3://b1 s3://b2 --recursive aws s3 cp s3:// b1 s3:// b2-递归
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.