{"id":181111,"date":"2013-05-27T17:36:03","date_gmt":"2013-05-27T13:36:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=181111"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=181111","title":{"rendered":"<span class=\"post_title\">\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 S3cmd \u0432 Windows<\/span>"},"content":{"rendered":"<div class=\"content html_format\">   \t<img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/e01\/e3f\/dd0\/e01e3fdd04d7b17a9d9d9393211d41d4.jpg\" align=\"left\"\/><br \/>  \u042f \u0434\u0430\u0432\u043d\u043e \u0437\u043d\u0430\u043a\u043e\u043c \u0441 \u0443\u0442\u0438\u043b\u0438\u0442\u043e\u0439 s3cmd, \u043d\u043e \u0432\u0441\u0435\u0433\u0434\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b \u0435\u0451 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0434 Linux \u0441\u0438\u0441\u0442\u0435\u043c\u0430\u043c\u0438. \u041e \u0442\u043e\u043c, \u0447\u0442\u043e \u0435\u0451 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u0434 Windows, \u044f \u0434\u0430\u0436\u0435 \u043d\u0435 \u0434\u0443\u043c\u0430\u043b.<br \/>  \u0410 \u043f\u043e\u0447\u0435\u043c\u0443 \u0431\u044b \u0438 \u043d\u0435\u0442? \u041e\u043d\u0430 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430 \u043d\u0430 python, \u0430 \u0437\u043d\u0430\u0447\u0438\u0442 \u0432\u043f\u043e\u043b\u043d\u0435 \u043a\u0440\u043e\u0441\u0441\u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435\u043d\u043d\u0430. \u041d\u0443\u0436\u043d\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c Python \u043d\u0430 Windows \u043c\u0430\u0448\u0438\u043d\u0443.<br \/>  <a name=\"habracut\"><\/a><br \/>  \u0418\u0442\u0430\u043a:  <\/p>\n<ul>\n<li><b> \u0428\u0430\u0433 \u043f\u0435\u0440\u0432\u044b\u0439 \u2014 \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 Python<\/b>.<br \/> \n<ol>\n<li>\u0421\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u043c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043e\u0447\u043d\u044b\u0439 \u043f\u0430\u043a\u0435\u0442 \u0432\u0435\u0440\u0441\u0438\u0438 2.x (3.x \u043d\u0435 \u043f\u043e\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f)<a href=\"http:\/\/www.python.org\/ftp\/python\/\">\u043e\u0442\u0441\u044e\u0434\u0430<\/a><\/li>\n<li>\u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443. \u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0431\u0443\u0434\u0435\u0442 \u0432 \u043f\u0430\u043f\u043a\u0443 c:\\Python2.x<\/li>\n<li>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0437\u0430\u043f\u0438\u0441\u044c \u043e Python \u0432 System Variables -&gt; Path:<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/94d\/98e\/bbe\/94d98ebbeab82087d2633dfa3b69ad92.jpg\"\/>  <\/li>\n<li> \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c, \u0447\u0442\u043e Python \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u0438\u0437 cmd<br \/> \n<pre><code>C:\\Users\\Oleksandr_Molchanov&gt;python Python 2.6 (r26:66721, Oct  2 2008, 11:06:43) [MSC v.1500 64 bit (AMD64)] on win32 Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information. <\/code><\/pre>\n<p>  <\/li>\n<\/ol>\n<p>   <\/li>\n<li><b> \u0428\u0430\u0433 \u0432\u0442\u043e\u0440\u043e\u0439 \u2014 \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 S3cmd<\/b>.<br \/> \n<ol>\n<li>\u0421\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u043c \u0443\u0442\u0438\u043b\u0438\u0442\u0443 <a href=\"http:\/\/sourceforge.net\/projects\/s3tools\/\">\u043e\u0442\u0441\u044e\u0434\u0430<\/a> \u0438 \u0440\u0430\u0441\u043f\u0430\u043a\u043e\u0432\u044b\u0432\u0430\u0435\u043c, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0432 C:\\s3cmd<\/li>\n<li>\u041d\u0430\u0441\u0442\u0440\u043e\u0438\u043c \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044e.<br \/> \n<pre><code>c:\\s3cmd&gt;python s3cmd --configure Enter new values or accept defaults in brackets with Enter. Refer to user manual for detailed description of all options. Access key and Secret key are your identifiers for Amazon S3 Access Key : ###################### Secret Key : ###################### Encryption password is used to protect your files from reading by unauthorized persons while in transfer to S3 Encryption password: Path to GPG program [None]: When using secure HTTPS protocol all communication with Amazon S3 servers is protected from 3rd party eavesdropping. This method is slower than plain HTTP and can't be used if you're behind a proxy Use HTTPS protocol [No]: On some networks all internet access must go through a HTTP proxy. Try setting it here if you can't conect to S3 directly HTTP Proxy server name: New settings:   Access Key: #######################   Secret Key: ######################   Encryption password:   Path to GPG program: None   Use HTTPS protocol: False   HTTP Proxy server name:   HTTP Proxy server port: 0 Test access with supplied credentials? [Y\/n] Y Please wait, attempting to list all buckets... Success. Your access key and secret key worked fine :-) Now verifying that encryption works... Not configured. Never mind. Save settings? [y\/N] y Configuration saved to 'C:\\Users\\Oleksandr_Molchanov\\Application Data\\s3cmd.ini' <\/code><\/pre>\n<p>  <\/li>\n<li>\u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0440\u0430\u0431\u043e\u0442\u0443<br \/> \n<pre><code>c:\\s3cmd&gt;python s3cmd mb s3:\/\/molchanov Bucket 's3:\/\/molchanov\/' created  c:\\s3cmd&gt;python s3cmd ls 2013-05-27 12:39  s3:\/\/molchanov <\/code><\/pre>\n<p>  <\/li>\n<\/ol>\n<\/li>\n<\/ul>\n<p>  \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u043e\u043a\u0430\u0437\u0430\u043b\u0430\u0441\u044c \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0438 \u0431\u044b\u0441\u0442\u0440\u043e\u0439.<br \/>  \u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u044d\u0442\u043e\u0442 \u043e\u0431\u0440\u0435\u0442\u0451\u043d\u043d\u044b\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b \u043e\u0431\u0435\u0440\u043d\u0443\u0442\u044c \u0432 bat-\u0441\u043a\u0440\u0438\u043f\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043d\u0443\u0436\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0438 \u0430\u043a\u043a\u0443\u0440\u0430\u0442\u043d\u0435\u043d\u044c\u043a\u043e \u0441\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0442\u044c \u043d\u0430 S3.  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041f\u0440\u0438\u043c\u0435\u0440 \u043f\u0440\u043e\u0441\u0442\u043e\u0433\u043e \u0441\u043a\u0440\u0438\u043f\u0442\u0430:<\/b><\/p>\n<div class=\"spoiler_text\">\u00abc:\\Program Files\\7-Zip\\7z.exe\u00bb a -t7z d:\\%date%.7zip d:\\data1<br \/>  python C:\\s3cmd\\s3cmd put D:\\%date%.7zip s3:\/\/molchanov\/  <\/div>\n<\/div>\n<p>  \u0412\u044b\u0437\u043e\u0432 \u044d\u0442\u043e\u0433\u043e \u0438\u043b\u0438 \u043f\u043e\u0434\u043e\u0431\u043d\u043e\u0433\u043e \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u043c\u043e\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432 \u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0449\u0438\u043a \u0437\u0430\u0434\u0430\u043d\u0438\u0439 \u0438 \u0442\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0435 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0445.    \t \t\t   \t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/company\/epam_systems\/blog\/181111\/\"> http:\/\/habrahabr.ru\/company\/epam_systems\/blog\/181111\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">   \t<img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/e01\/e3f\/dd0\/e01e3fdd04d7b17a9d9d9393211d41d4.jpg\" align=\"left\"\/><br \/>  \u042f \u0434\u0430\u0432\u043d\u043e \u0437\u043d\u0430\u043a\u043e\u043c \u0441 \u0443\u0442\u0438\u043b\u0438\u0442\u043e\u0439 s3cmd, \u043d\u043e \u0432\u0441\u0435\u0433\u0434\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b \u0435\u0451 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0434 Linux \u0441\u0438\u0441\u0442\u0435\u043c\u0430\u043c\u0438. \u041e \u0442\u043e\u043c, \u0447\u0442\u043e \u0435\u0451 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u0434 Windows, \u044f \u0434\u0430\u0436\u0435 \u043d\u0435 \u0434\u0443\u043c\u0430\u043b.<br \/>  \u0410 \u043f\u043e\u0447\u0435\u043c\u0443 \u0431\u044b \u0438 \u043d\u0435\u0442? \u041e\u043d\u0430 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430 \u043d\u0430 python, \u0430 \u0437\u043d\u0430\u0447\u0438\u0442 \u0432\u043f\u043e\u043b\u043d\u0435 \u043a\u0440\u043e\u0441\u0441\u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435\u043d\u043d\u0430. \u041d\u0443\u0436\u043d\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c Python \u043d\u0430 Windows \u043c\u0430\u0448\u0438\u043d\u0443.  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-181111","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/181111","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=181111"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/181111\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=181111"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=181111"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=181111"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}