亚马逊将文件从S3到冰川throgh API [英] Amazon Move files from S3 to Glacier throgh API

查看:620
本文介绍了亚马逊将文件从S3到冰川throgh API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发一个冰河用于文件存储的应用程序使用Amazon S3和。该要求是,我想从S3将文件移动到冰川和冰川从回S3在需要的时候。我的问题是,他们的PHP API难道真的有可能不?

I am developing an application using Amazon S3 and glacier for file storing. The requirement is that I want to move the files from S3 to glacier and when needed from glacier back to S3. My question is that Is it really possible with their PHP API or not?

推荐答案

您可以使用API​​来定义存档从Amazon S3文件到Amazon Glacier冰川生命周期规则,你可以使用API​​来检索归档到文件的临时副本冰川。但是,您无法使用API​​来告诉Amazon S3的移动特定文件到冰川。

You can use the API to define lifecycle rules that archive files from Amazon S3 to Amazon Glacier and you can use the API to retrieve a temporary copy of files archived to Glacier. However, you cannot use the API to tell Amazon S3 to move specific files into Glacier.

有使用亚马逊冰川两种方式:

There are two ways to use Amazon Glacier:

  1. 通过冰川API,它可以让你从冰川拱顶上载/下载档案,/直接
  2. 通过Amazon S3的生命周期规则,从归档Amazon S3的数据到亚马逊冰川

直接通过冰川API连接可让您储存档案长期保存,经常被用来作为替代磁带。经由冰川API存储的数据,还必须经由冰川API检索。这通常是与正常的企业备份软件或甚重量轻的产品,如云莓备份(Windows)或 ARQ (苹果机)。

Connecting directly via the Glacier API allows you to store archives for long-term storage, often used as a replacement for Tape. Data stored via the Glacier API must also be retrieved via the Glacier API. This is typically done with normal enterprise backup software or even light-weight products such as Cloudberry Backup (Windows) or Arq (Mac).

使用Amazon S3生命周期规则可让您将数据存储在Amazon S3中,然后定义确定何时数据应归档到冰川的长期存储的规则。例如,数据可以在创建之后90天内存档。数据传输由 生命周期中的规则 ,它每天批的基础上运作。这些规则可以通过在 putBucketLifecycle API调用 (可在PHP SDK),但这只是定义了规则 - 这是不可能使一个API调用,告诉S3存档的特定文件,以冰川

Using Amazon S3 lifecycle rules allows you to store data in Amazon S3, then define rules that determine when data should be archived to Glacier for long-term storage. For example, data could be archived 90 days after creation. The data transfer is governed by the lifecycle rules, which operate on a daily batch basis. The rules can be set via the putBucketLifecycle API call (available in the PHP SDK), but this only defines the rules -- it is not possible to make an API call that tells S3 to archive specific files to Glacier.

亚马逊S3拥有 RestoreObject API调用 (在PHP SDK中提供)来恢复从冰川存档回S3数据的临时副本。请注意,从冰川恢复数据需要 3-5小时

这篇关于亚马逊将文件从S3到冰川throgh API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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