ããæ°åã®ããã°ã§ãEC2 ãã¤ã¯ãã¤ã³ã¹ã¿ã³ã¹ã«Redmineãå©ç¨ããã¿ã¹ã¯(ããã¸ã§ã¯ã)管çã·ã¹ãã ãæ§ç¯ã«ã¤ãã¦èª¬æãã¦ãã¾ããã EC2ã§ç¡æã¿ã¹ã¯ç®¡ç ããã¤ã¯ãã¤ã³ã¹ã¿ã³ã¹ã«Redmine1.1.2ãã»ããã¢ãã ãã®1ã§ã¯ãAWSã¢ã«ã¦ã³ãã®ä½æããã¤ã³ã¹ã¿ã³ã¹ä½æã¾ã§ EC2ã§ç¡æã¿ã¹ã¯ç®¡ç ããã¤ã¯ãã¤ã³ã¹ã¿ã³ã¹ã«Redmine1.1.2ãã»ããã¢ãã ãã®2ã§ã¯ãEC2ã¤ã³ã¹ã¿ã³ã¹ã«Redmineãã¤ã³ã¹ãã¼ã«ãã¦Gmailã«éç¥ã¡ã¼ã«ãéä¿¡ããè¨å®ãããã¨ããã¾ã§ EC2ã§ç¡æã¿ã¹ã¯ç®¡ç ããã¤ã¯ãã¤ã³ã¹ã¿ã³ã¹ã«Redmine1.1.2ãã»ããã¢ãã ãã®3ã§ã¯ãSubversionãã¤ã³ã¹ãã¼ã«ãã¦Redmineã¨é£æºããã¨ããã¾ã§ ãããã®è¨äºã¯ä»¥ä¸ã®æµãã§è§£èª¬ãã¦ãã¾ãã EC2 ãã¤ã¯ãã¤ã³ã¹ã¿ã³ã¹ä½æ Redmine 1.1.2ãã¤ã³ã¹ãã¼ã« Gmail
S3ã«ã³ãã³ãã©ã¤ã³ã§ãã¡ã¤ã«ã¢ããããæ¹æ³ãæ¢ãã s3syncã¨ããã®ãè¦ã¤ããã®ã§è©¦ãã¦ã¿ãã ã¾ãã¯ã½ã¼ã¹ã²ãã # wget http://s3.amazonaws.com/ServEdge_pub/s3sync/s3sync.tar.gz 解åãã¦é©å½ãªã¨ãã«è¨ç½®ããã¹ãéãã¨ã # tar zxvf s3sync.tar.gz # mv s3sync /path/to/ configãã¡ã¤ã«ãç½®ãå ´æãä½æ # mkdir /etc/s3conf/ configãã³ãã¼ # cp /path/to/s3sync/s3config.yml.example /etc/s3conf/s3config.yml s3config.ymlå¤æ° # vi s3config.yml aws_access_key_id: 11111111111111111111111 aws_secret_a
s3cmd ã使ã£ã¦ãJenkinsã®ã¸ã§ããs3ã«é±æ¬¡ã§ããã¯ã¢ãããã¦ãã®ã§ããã ããæããã $ s3cmd -f put /tmp/jenkins_bk.tar.gz s3://hogehoge/ /tmp/jenkins_bk.tar.gz -> s3://hogehoge/jenkins_bk.tar.gz [1 of 1] 7725056 of 5660650889 0% in 1s 7.02 MB/s failed WARNING: Upload failed: /jenkins_bk.tar.gz ([Errno 32] Broken pipe) WARNING: Retrying on lower speed (throttle=0.00) WARNING: Waiting 3 sec... ã¨ãåºã¦ãã¢ãããã¼ãåºæ¥ãªããªãã¾ããããã®éã®å¯¾å¦æ³ã®ã¡ã¢ã§ãã S3ã®
2010å¹´02æ14æ¥16:07 ã«ãã´ãªAmazon Web ServicesAmazon S3 s3sync.rb ãã©ã¬ã«ï¼ä¸¦åï¼å¦ç ååã¯s3sync.rbã®ä½¿ãæ¹ãæ¸ãã¾ããã å®éã«ãã¡ã¤ã«ãã¢ãããã¼ãããã¨çµæ§æéã ãããã¾ãã ããã§ããã©ã¬ã«ã«ãã¡ã¤ã«ãã¢ãããã¼ããããã¨æãã¾ãã â å 容  ã«ã¼ããã£ã¬ã¯ããªãã¢ãããã¼ãããã®ã§ã¯ãªã  ä½é層ãéãããã£ã¬ã¯ããªãã¢ãããã¼ãããã  â»ä¸è¨ã¯root/å¹´/æ/æ¥ä»/è¨äºçªå·/ã¤ã¡ã¼ã¸ãã¡ã¤ã«ããã    æ¥ä»æ¯ã«ã¢ãããã¼ãããã¾ãã   (ä¾)  images -- 2009 -- 12 -- 01 -- 1000 -- xxx.png                 01 -- 1200 -- xxx.png                15 --
ãã½ã³ã³ã®ãã¼ã¿ã®æ¶å¤±ã«ã¯æ°ã使ã£ã¦ããã®ã§ãè¤æ°ã®ããã¯ã¢ããçãè¬ãã¦ããã åMacã«ã¯Time Machine è¤æ°ã®ãã½ã³ã³éã§ã®ããã¯ã¢ããå ±æã«ã¯Dropbox é éå°ã®ãµã¼ãã®ããã¯ã¢ããã¯rsync ããããªãããæ±æ¥æ¬å¤§éç½ã®è¢«å®³ç¶æ³ãè¦ã¦ããã¨ã家ã®ä¸ã«ãããã½ã³ã³ãã¹ãã¬ã¼ã¸æ©å¨ãå ¨æ» ãã¨ããäºæ ãããå¾ãã®ã§ããããè¤æ°ã®æ©å¨ã«ãã¼ã¿ãåæ£ããã¦ãã¦ãå¹æãç¡ãããã ãææ¬çã«ã¯ãç©ççã«é¢ããå ´æã«ãã¼ã¿ãä¿åãã¦ããæ¹ãæã¾ããããã ã ãããªè¨³ã§ãããã¯ã¢ãã対çã¨ãã¦Amazon S3ãæ¬æ ¼çã«ä½¿ãå§ããã転éãã¼ã«ã¨ãã¦ã¯ãrsyncåæ§ãªå½¢ã§ä½¿ããs3syncã使ããcronã§å®æçã«ã¢ãããã¼ãããããã«è¨å®ããã ãS3Syncãã¯ãrsyncã®ãããªä½¿ãæ¹ã§ããã¼ã«ã«ãã£ã¹ã¯ã®ç¹å®é¨åã¨ãAmazon S3ãã®ã¹ãã¬ã¼ã¸éãåæï¼ãã©ã¼ãªã³ã°ï¼ã§
ã¾ãã¯S3Syncãã¤ã³ã¹ãã¼ã«ãã¾ãã $ wget http://s3.amazonaws.com/ServEdge_pub/s3sync/s3sync.tar.gz $ tar zxvf s3sync.tar.gz $ sudo cp -pr s3sync/ /usr/local/ãã¼ã«ã«ãã£ã¬ã¯ããªã¨Amazon S3éã®éä¿¡ã«SSLã使ãããã®ã§ãssl.certs.sharããã¦ã³ãã¼ããã¦å®è¡ãã¾ãã $ mkdir /usr/local/s3sync/certs $ cd /usr/local/s3sync/certs $ wget http://mirbsd.mirsolutions.de/cvs.cgi/~checkout~/src/etc/ssl.certs.shar $ sh ssl.certs.sharèªåå®è¡ããããã®ã¹ã¯ãªãããç¨æãã¾ããä¾ãã°ããããªã®ã
éç½ã®å½±é¿ã§çªçºçãªåé»ã®å¯è½æ§ãããAmazon S3ã¸ã®ããã¯ã¢ããç°å¢ãæ§ç¯ãã¾ãããS3ã«ãã¼ã«ã«ãã¡ã¤ã«ãã¢ãããã¼ãããããã°ã©ã ã¯ããã¤ãããã¾ããããªã¼ãã³ã½ã¼ã¹ã®ãã®ä¸å¿ã«ããã¤ã試ãã¦ã¿ãéãã¯ä»¥ä¸ãããããã§ãã S3Sync.rb s3fs Cyberduck s3sync.rbã¯ãS3ã«å¯¾ãã¦rsyncã®ãããªä½¿ãæ¹ã®ã§ããRubyã¹ã¯ãªããã§ããs3fsã¯S3ããã¡ã¤ã«ã·ã¹ãã ã¨ãã¦ãã¦ã³ãããããã°ã©ã ã§ããã¼ã«ã«ã¨ã®åæãã¨ãããã§ããã°rsyncã¨ãããã¦ä½¿ããã¨ã«ãªãã¨æãã¾ããs3fsã®æ¹ãS3ãæèããããã°ã©ã ããã¯ééçã«ã¢ã¯ã»ã¹ã§ããã®ãã¡ãªããã§ããããä»åã¯Windowsç°å¢ã§ã使ããs3sync.rbã使ãã¾ããã æå¾ã®Cyberduckã¯S3ã«ã対å¿ããFTPã¯ã©ã¤ã¢ã³ãã§ãã©ã«ãã®åææ©è½ãããã¾ããWindowsã§GUIããæä½ã
ã¯ããã« ååã¯ããAmazon EC2ãã®ããã¯ã¢ããã¾ããã®è©±é¡ã¨ãã¦ããAmazon EBSãã®æ¦è¦ã使ãæ¹ãç´¹ä»ãã¾ããã ä»åã¯ãAmazon EC2ããåãå·»ããã¼ã¿ããã¯ã¢ããã®æ¹æ³ã®ä»é²ã¨ãã¦ããAmazon EC2ãã®ãã¼ã¿ããAmazon S3ãã¨åæãããã¼ã«ãS3Syncããç´¹ä»ãã¾ãã åææ¡ä»¶ ä»åããAmazon EC2 Command-Line Toolsããå©ç¨ããæ¹æ³ãç´¹ä»ãã¦ããã¾ããä½æ¥åæã¨ãã¦ãåºæ¬çãªã»ããã¢ãããçµäºãããAmazon EC2ãã¤ã³ã¹ã¿ã³ã¹ï¼ä»®æ³ãã·ã³ï¼ã¯èµ·åãã¦ãããã®ã¨ãã¾ããã»ããã¢ããããAmazon EC2ãã§ã®ã¤ã³ã¹ã¿ã³ã¹èµ·åã«ã¤ãã¦ã¯ãååã¾ã§ã®è¨äºãåèã«ãã¦ãã ããã ã¾ããä»åç´¹ä»ãããã¼ã«ãS3Syncãã®å©ç¨ã«ã¯ãå¥éRubyãå¿ è¦ã¨ãªãã¾ãããAmazon S3ãã¸ã®æ¥ç¶ã«HTTPSãå©ç¨ãã¦ããå ´å
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}