{"id":4744,"date":"2015-04-06T13:37:53","date_gmt":"2015-04-06T10:37:53","guid":{"rendered":"http:\/\/skeletor.org.ua\/?p=4744"},"modified":"2015-04-06T13:37:53","modified_gmt":"2015-04-06T10:37:53","slug":"%d1%81%d0%b8%d0%bd%d1%85%d1%80%d0%be%d0%bd%d0%b8%d0%b7%d0%b0%d1%86%d0%b8%d1%8f-%d1%84%d0%b0%d0%b9%d0%bb%d0%be%d0%b2-%d0%b8%d0%b7-amazon-s3","status":"publish","type":"post","link":"https:\/\/skeletor.org.ua\/?p=4744","title":{"rendered":"\u0421\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u044f \u0444\u0430\u0439\u043b\u043e\u0432 \u0438\u0437 amazon S3"},"content":{"rendered":"<p>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0441\u0442\u043e:<\/p>\n<p><code>$ curl \"https:\/\/s3.amazonaws.com\/aws-cli\/awscli-bundle.zip\" -o \"awscli-bundle.zip\"<br \/>\n$ unzip awscli-bundle.zip<br \/>\n$ sudo .\/awscli-bundle\/install -i \/usr\/local\/aws -b \/usr\/local\/bin\/aws<\/code><\/p>\n<p>\u0418\u0442\u043e\u0433\u043e, \u0431\u0438\u043d\u0430\u0440\u043d\u0438\u043a \u0443 \u043d\u0430\u0441 \u043b\u0435\u0436\u0438\u0442 \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443\u00a0<strong>\/usr\/local\/bin\/aws<\/strong>. \u0414\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 bucket&#8217;\u043e\u043c <strong>S3<\/strong> \u043d\u0443\u0436\u043d\u043e \u0435\u0433\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c. \u041d\u0430\u0441\u0442\u0440\u043e\u0438\u043c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u043f\u0440\u043e\u0444\u0438\u043b\u044c <strong>test-bucket<\/strong> (\u0435\u0441\u043b\u0438 \u0435\u0435 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c, \u0431\u0443\u0434\u0435\u0442 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d \u0434\u0435\u0444\u043e\u043b\u0442\u043d\u044b\u0439 \u043f\u0440\u043e\u0444\u0438\u043b\u044c)<\/p>\n<p><!--more--><\/p>\n<p><code>$ \/usr\/local\/bin\/aws configure --profile test-bucket<br \/>\nAWS Access Key ID [None]: AKIAIOSFODNN7EXAMPLE<br \/>\nAWS Secret Access Key [None]: wJalrXUtnFEMI\/K7MDENG\/bPxRfiCYEXAMPLEKEY<br \/>\nDefault region name [None]: us-west-2<br \/>\nDefault output format [None]: json<\/code><\/p>\n<p>\u041f\u043e \u0441\u0443\u0442\u0438, \u0431\u0438\u043d\u0430\u0440\u043d\u0438\u043a \u0441\u043e\u0437\u0434\u0430\u0451\u0442 (\u0438\u043b\u0438 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u0442) \u0444\u0430\u0439\u043b\u044b \u0432 <strong>~\/.aws<\/strong>. \u0414\u0430\u043b\u044c\u0448\u0435 \u0443\u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 <strong>S3<\/strong>. \u041a\u043e\u043c\u0430\u043d\u0434\u0430 aws \u0438\u043c\u0435\u0435\u0442 \u0441\u0432\u043e\u0438 <a href=\"http:\/\/docs.aws.amazon.com\/cli\/latest\/index.html\" target=\"_blank\">\u043f\u043e\u0434\u043a\u043e\u043c\u0430\u043d\u0434\u044b<\/a>\u00a0. \u041d\u0430\u043c \u043d\u0443\u0436\u043d\u0430 \u043f\u043e\u0434\u043a\u043e\u043c\u0430\u043d\u0434\u0430 <a href=\"http:\/\/docs.aws.amazon.com\/cli\/latest\/reference\/s3\/sync.html\" target=\"_blank\">sync<\/a>\u00a0. \u0421\u0438\u0445\u0440\u043e\u043d\u0438\u0437\u0438\u0440\u0443\u0435\u043c:<\/p>\n<p><code>$ \/usr\/local\/bin\/aws s3 sync s3:\/\/test-bucket \/opt\/test-bucket\/ --follow-symlinks --profile\u00a0test-bucket<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0441\u0442\u043e: $ curl &#8220;https:\/\/s3.amazonaws.com\/aws-cli\/awscli-bundle.zip&#8221; -o &#8220;awscli-bundle.zip&#8221; $ unzip awscli-bundle.zip $ sudo .\/awscli-bundle\/install -i \/usr\/local\/aws -b \/usr\/local\/bin\/aws \u0418\u0442\u043e\u0433\u043e, \u0431\u0438\u043d\u0430\u0440\u043d\u0438\u043a \u0443 \u043d\u0430\u0441 \u043b\u0435\u0436\u0438\u0442 \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443\u00a0\/usr\/local\/bin\/aws. \u0414\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 bucket&#8217;\u043e\u043c S3 \u043d\u0443\u0436\u043d\u043e \u0435\u0433\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c. \u041d\u0430\u0441\u0442\u0440\u043e\u0438\u043c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u043f\u0440\u043e\u0444\u0438\u043b\u044c test-bucket (\u0435\u0441\u043b\u0438 \u0435\u0435 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c, \u0431\u0443\u0434\u0435\u0442 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d \u0434\u0435\u0444\u043e\u043b\u0442\u043d\u044b\u0439 \u043f\u0440\u043e\u0444\u0438\u043b\u044c)<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[],"class_list":["post-4744","post","type-post","status-publish","format-standard","hentry","category-others"],"_links":{"self":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/4744","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4744"}],"version-history":[{"count":1,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/4744\/revisions"}],"predecessor-version":[{"id":4745,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/4744\/revisions\/4745"}],"wp:attachment":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4744"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4744"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4744"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}