å æ¥1GB/1円 衝撃のAmazon Glacierを早速使ってみた - ku-sukeのはてなダイアリーã¨ããè¨äºãæ¸ãã¾ããããã³ã¡ã¨ãã§çµæ§æ°è»½ã«ã¯ä½¿ããªãããâã¨ããæè¦ããã£ãã®ã§ãããå æ¥S3çµç±ã§ã®å©ç¨ãªãã·ã§ã³ãã§ããã®ã§ãå²ãã¨å人ã§ãç°¡åã«ä½¿ããããã«ãªã£ãã¨ãããã¨ã§ãã®ããæ¹ãç´¹ä»ãã¦ã¿ããã¨æãã¾ãã
S3çµç±ã§Glacierã使ãæ°æ©è½ã¨ã¯ï¼
æ®éã®é度ã§ä½¿ããæ¹ã®ã¯ã©ã¦ãã¹ãã¬ã¼ã¸ã§ããAmazon S3ã«ãã¡ã¤ã«ãä¿åããã¨ãåæã«Glacierã«ãã¡ã¤ã«ãéã£ã¦S3ä¸ã«ã¯ã·ã§ã¼ãã«ããã®ãããªãã®ã ããç½®ãæãã«ãã¦ããããµã¼ãã¹ã§ãï¼
ä¸åº¦S3ã«ä¿ç®¡ãã¾ãããS3ã®å©ç¨æã¯ã»ã¨ãã©ããããæ¿å®ä¾¡æ ¼ã§Glacierã«ä¿ç®¡ãããã¨ãã§ãã¾ãããã¡ããåãåºãã«ã¯æ°æéãããã¨ããç¹ã¯å¤ãããªãã®ã§ãããS3ä¸ã§ãã¡ã¤ã«ã®ä¸è¦§ã管çããã¦ããã®ã§ãå®å¿ãã¦å©ç¨ãããã¨ãã§ãã¾ãã
ãã½ã³ã³ã¾ããã¨ããã¯ã¢ããã¨ããDVDã«ç¼ããåä¾ã®ã ã¼ãã¼ãªã©ãä¸ãä¸ã®ã¨ãã«åæ¥ããã¦åãåºããã°ãããã©é·æéä¿åããããã®ãä¿ç®¡ããã®ã«æé©ã§ãããã
ãã®ä»ã®ã¯ã©ã¦ãã¹ãã¬ã¼ã¸ã¨ã®ä½¿ãåãã§ãããGlacierã¯ãé »ç¹ã«åºãå ¥ãããªããã©ãã£ã¨æ®ããããã¼ã¿ã®ç½®ãå ´æããªã®ã§ãæ®æ®µä½¿ãã¯dropboxãS3ããã®ã¾ã¾ä½¿ãããµã¤ãºã大ããã£ã¦ï¼å¹´ã«ï¼åã使ããã©ããããããªããã©å¾ã ã®ããã«ã¨ã£ã¦ãããããã¼ã¿ãããã¯ã¢ãããæ ¼ç´ããå ´æã§ãã
1.AWSã¸ã®å©ç¨ç»é²
ï¼ãã§ã«S3使ã£ã¦ããæ¹ã¯ããã¯ãã¹ãã¾ãããï¼
Glacierããã³S3ã使ãã«ã¯Amazon Web Serviceã«ãµã¤ã³ã¢ããããå¿
è¦ãããã¾ããAmazonã®æ®éã®ã¢ã«ã¦ã³ããããã°ããã«ç»é²å¯è½ã§ããæ¥æ¬èªã®è§£èª¬ãå
¬å¼ã§ç¨æããã¦ãã¾ãã
アカウント作成の流れ | アマゾン ウェブ サービス(AWS 日本語)
ãµã¤ã³ã¢ãããçµäºããããS3ã®ãã¼ã¸ã§å©ç¨éå§ãè¡ãã¾ãã
2. S3ã§ãã±ãããã¤ãã
å©ç¨éå§ã§ãããããã±ãããä½ãã¾ãããããã±ããã¨ã¯ä¸çªå¤§å ã®ãã©ã«ãã®ãããªãã®ã§ããã±ããåä½ã§ãã£ããã¨ã©ãã®ãã¼ã¿ã»ã³ã¿ã¼ã«ä¿ç®¡ãããããå¤ããã¢ã¯ã»ã¹ããã¨ãã®ãµããã¡ã¤ã³åãªã©ã決ã¾ãã¾ããä¿ç®¡ã®ããã®å©ç¨ãªã®ã§ãååã¯é©å½ã§æ§ãã¾ãããå ¨ä¸çã§ã¦ãã¼ã¯ã«ããã®ã§ãtestããªã©ã¯ä½¿ãã¾ããã
ä»åã¯ããyusuke.kawabata.backupãã¨ãããã±ããåã«ãã¦ã¿ã¾ãããã¡ã¤ã³ãæã£ã¦ãã人ã¯èªåã®ãã¡ã¤ã³ãéé ã«ããã¨è¯ãã§ãããï¼com.example.backupï¼
AWSのS3用コンソールãéãã¦ã¿ã¾ããããå·¦ä¸ã®Create Bucketãã¯ãªãã¯ãã¦ããã±ããåãå ¥åãUS-Standardã¨ãªã£ã¦ããé¨åãTokyoã«å¤æ´ãã¾ããUSã®ã¾ã¾ã ã¨è»¢éãé ãã®ã§ã
å³ä¸ã®Createãæ¼ãã°ä½æå®äºã§ãã
3. Glacierã¸ã®è»¢éãªãã·ã§ã³ãè¨å®
ãã±ãããã§ãããå·¦å´ã®ä¸è¦§ã«ä½æãããã®ã§ãè«ç¼é¡ãã¼ã¯ãæ¼ãã¦ããããã£è¨å®ç»é¢ãã²ããã¾ããå³å´ã®ãLifeCycleããã²ãããAdd Ruleããæ¼ãã¾ãã
- é©å½ãªååãã¤ãã¦
- ãã±ããå ¨ä½ãGlacier転éã¢ã¼ãã«ããã¨ãã¯Entireã«ãã§ãã¯
- ãã±ããå
ã®ãµããã©ã«ãã®ã¿ã«é©å¿ãããå ´åã¯ãã§ãã¯ãå
¥ããã«ãã©ã«ãåã®å¾ãã«/ã¤ãã§ã
- ãvideo/ãã¿ãããªããããå½åã/videoãã«ãã¦ãããã¾ãã§ããªãã£ãã®ã§æ³¨æã
- Add Transferãæ¼ã
- 0 days from creationã«ããã
ããã§æºåå®äºã§ãã
4. å¾ã¯ã好ã¿ã®ã¯ã©ã¤ã¢ã³ãã§ï¼
ãã¡ããConsoleãããã¢ãããã¼ãã§ãããã§ãããã§ãããã¡ã¤ã«ãªã®ã§å°ç¨ã®ã¯ã©ã¤ã¢ã³ãã¤ããã»ããè¯ãã§ããããå人çã«ããªã¼ã§ãããããªã®ã¯ãCyberduckã§ããMacã«ãWindowsã«ã対å¿ã§ããæ®æ®µã¯Transmit使ã£ã¦ã¾ãã
ã¯ã©ã¤ã¢ã³ãããã¦ã³ãã¼ãããããセキュリティ証明書ãã®ãã¼ã¸ãããã¢ã¯ã»ã¹ãã¼IDã¨ã·ã¼ã¯ã¬ããã¢ã¯ã»ã¹ãã¼ãæ§ãã¾ãã
Cyberduckã®å ´åã§è§£èª¬ããã¨ãæ°è¦æ¥ç¶ãæ¼ãã¦ãã«ãã¦ã³ã¡ãã¥ã¼ãFTPãSFTPã«ãªã£ã¦ããé¨åãS3ã«å¤æ´ããUsernameã®ã»ãã«ã¢ã¯ã»ã¹ãã¼IDãPasswordã®ã»ãã«ã·ã¼ã¯ã¬ããã¢ã¯ã»ã¹ãã¼ãå ¥ããã°æ¥ç¶åºæ¥ã¾ãã
æ¥ç¶ã§ãããã好ããªãã¡ã¤ã«ãã¢ãããã¼ãããã°ãæ°æéã§Glacierã«åæã«è»¢éããã¦Cyberduckä¸ã§ã¯è¦ãã¦ããã®ã«ãã¦ã³ãã¼ãåºæ¥ãªãç¶æ ã«ãªãã¾ãã
ãã¾ã. åãåºãæ¹
åãåºãã¨ãã¯ã該å½ã®ãã¡ã¤ã«ãConsoleä¸ã§é¸æããActionã¡ãã¥ã¼ããInitiate Restoreãé¸æããã¨ãä½æ¥éS3ã«æ»ããèãã¦ããã®ã§ãä½è£ãæã£ã¦7ã¨ã14ã¨ãè¨å ¥ããS3ã«æ»ã£ã¦ããã®ãå¾ ã¡ã¾ããç¹ã«é£çµ¡ã¯ãªã*1ã®ã§ãï¼ãï¼æéå¾ ã£ã¦S3ã«æ»ã£ã¦ããããã¦ã³ãã¼ãåºæ¥ã¾ãã®ã§ç¡äºã«åãåºãå®äºã§ãã
ããã§ã¯ãå¿«é©ãªã¹ãã¬ã¼ã¸ã©ã¤ããï¼