<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>S3 on Sandro Cirulli</title>
    <link>https://sandrocirulli.net/tags/s3/</link>
    <description>Recent content in S3 on Sandro Cirulli</description>
    <generator>Hugo</generator>
    <language>en-gb</language>
    <lastBuildDate>Tue, 29 Oct 2019 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://sandrocirulli.net/tags/s3/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>How to Download an Entire S3 Bucket Recursively</title>
      <link>https://sandrocirulli.net/how-to-download-an-entire-s3-bucket-recursively/</link>
      <pubDate>Tue, 29 Oct 2019 00:00:00 +0000</pubDate>
      <guid>https://sandrocirulli.net/how-to-download-an-entire-s3-bucket-recursively/</guid>
      <description>&lt;figure&gt;&lt;img src=&#34;../../img/Amazon-Simple-Storage-Service-S3_light-bg@4x.png&#34;&#xA;    alt=&#34;Amazon S3 bucket&#34;&gt;&lt;figcaption&gt;&#xA;      &lt;p&gt;Image: Amazon Web Services, Inc. ©&lt;/p&gt;&#xA;    &lt;/figcaption&gt;&#xA;&lt;/figure&gt;&#xA;&#xA;&lt;p&gt;Sometimes I have the need to keep a local copy of an S3 bucket. Using the AWS console is ok if you just have few objects in the S3 bucket. But what do you do if you have hundreds of objects in your S3 bucket? The aws cli comes to rescue with this simple command:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;aws s3 cp --recursive s3://my_s3_bucket .&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The recursive flag downloads the entire S3 bucket recursively into the local directory (that’s what the dot at the end is for). The operation may take some time depending on the number of objects stored in the S3 bucket so be patient!&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
