tkhrsskの日記

技術ネタなど

Amazon S3 Glacier でパス情報の管理 (Cloud Berry)

CloudBerry Explorerというツールを使うと、本来ファイル名やパスの情報を管理していないAmazon S3 Glacierでパス情報を管理できているように見える。

どうやっているのだろうと思っていたら、StackOverFlowでCloudBerryの中の人が答えていた。

stackoverflow.com

Our Glacier archive description metadata is a simple JSON with the following fields:

  • "Path": the full path of the source file. E.g., "c:\myfolder\myfile.txt" for file copied from local disk or "mybucket/myfolder/myfile.txt" for files copied from cloud storage like Amazon S3. The path is UTF7-encoded.
  • "UTCDateModified": ISO8601 utc date without milliseconds (format: "yyyyMMddTHHmmssZ"). This is modification date of the original file (not the archive creation date).
  • "Flags": integer flags value. 1 - compressed, 2 - encrypted.

Thanks, Andy

アーカイブのdescriptionのメタ情報をjson形式で埋め込んで管理しているとのこと。