【问题标题】:Hierarchical Glacier object retrieval分层冰川对象检索
【发布时间】:2014-05-22 16:00:28
【问题描述】:

我想恢复 Amazon S3 存储桶中的所有对象,该存储桶现已冻结在 Glacier 中。这些是我在存储桶中的文件夹:

$ aws s3 ls s3://cogrehab PRE baseline/ PRE codes/ PRE logs/ PRE tp1/ PRE tp2/ 2014-05-17 20:14:00 27 about.txt

所以根据How to restore folders (or entire buckets) to Amazon S3 from Glacier?这里的另一个问题我进行如下:

aws s3 ls s3://cogrehab | awk '{print substr($0, index($0, $4))}' | xargs -I %%% -L 1 aws     s3api restore-object --restore-request Days=90 --bucket cogrehab --key "%%%"`

但我收到此错误:

Unknown options: baseline/, PRE
xargs: aws: exited with status 255; aborting

【问题讨论】:

    标签: amazon-web-services amazon-s3 amazon-glacier


    【解决方案1】:

    我发现一篇关于自动化该过程的 ruby​​ 脚本的博客文章。这里:

    http://www.faun.me/2012/12/16/restoring-archived-files-from-amazon-glacier-using-ruby.html

    无论如何,您应该注意从冰川中检索 s3 的罚款可能非常高!

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-06-15
      • 2018-03-16
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多