Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/amazon-s3/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Amazon web services 尝试将冰川深度档案恢复到不同的s3存储桶_Amazon Web Services_Amazon S3_Amazon Glacier - Fatal编程技术网

Amazon web services 尝试将冰川深度档案恢复到不同的s3存储桶

Amazon web services 尝试将冰川深度档案恢复到不同的s3存储桶,amazon-web-services,amazon-s3,amazon-glacier,Amazon Web Services,Amazon S3,Amazon Glacier,我正在尝试将glacier deep存档恢复到另一个s3存储桶,但是当我运行下面的命令getting error:致命错误:调用HeadObject操作时发生错误(404):键“cf ant prod”不存在 aws s3 cp s3://xxxxxxx/cf ant prod s3://xxxxxxx/atest--强制冰川转移--存储类标准--配置文件xxx您确定对象的名称正确吗?请注意,它仅适用于单个对象,而不适用于文件夹。(要还原文件夹,您需要包含--recursive。是的,我正在尝试

我正在尝试将glacier deep存档恢复到另一个s3存储桶,但是当我运行下面的命令getting error:致命错误:调用HeadObject操作时发生错误(404):键“cf ant prod”不存在


aws s3 cp s3://xxxxxxx/cf ant prod s3://xxxxxxx/atest--强制冰川转移--存储类标准--配置文件xxx

您确定对象的名称正确吗?请注意,它仅适用于单个对象,而不适用于文件夹。(要还原文件夹,您需要包含
--recursive
。是的,我正在尝试还原一个文件夹,aws s3 cp s3://xxxxxxx/cf ant prod s3://xxxxxxx/atest--force glacier transfer--recursive--storage class STANDARD--profile xxx。希望这是我需要使用的命令?我做了一些实验,发现
--recursive
)>而且,
--force glacier transfer
必须在文件名之前。但是,我得到了一个错误:
操作对源对象的存储类无效。
。我知道冰川检索通常需要时间,所以我很惊讶会出现“force glacier transfer”选项。我怀疑您需要使用aws s3api还原对象来移动它(临时)这个StackOverflow答案表明它只对已经恢复的对象起作用:正如我试图使用aws s3api一样,我确实启用了aws MFA,所以当我尝试运行下面的命令aws s3api list-objects-v2--bucket MYBUCKET--query“Contents”时[?StorageClass=='GLACIER']“--输出文本| awk'{print substr($0,index($0,$2))}'| awk'{NF-=3};3'>GLACIER-restore.txt--profile xxx获取错误:awk:fatal:无法打开文件`--profile'进行读取(没有这样的文件或目录)调用ListObjectsV2操作时发生错误(AccessDenied):拒绝访问