title: Use AWS CLI to Copy from S3 to EC2
body: <p>I have zipped files in an S3 bucket that I need to bring back to my EC2 instance.  In the past, I moved the documents to S3 with the following command:</p>
  <pre><code>aws s3 cp /my/ec2/path/ s3://my/s3/path/ --exclude '*' --include '2014-01*’ —-recursive
  </code></pre>
  <p>To move files from January 2014 back to EC2, I have tried the following command:</p>
  <pre><code>aws s3 cp s3://my/s3/path/ //my/ec2/path/ --exclude '*' --include '2014-01*' --recursive
  </code></pre>
  <p>My understanding is that this command excludes all files but then includes all files with the prefix '2014-01'.  I have confirmed that this is how the files I want start. I have also tried only one forward slash before mainstorage and including fewer files.</p>
  <p>I have followed these two links from Amazon:</p>
  <ul>
  <li><a href="http://docs.aws.amazon.com/cli/latest/reference/s3/index.html" rel="nofollow noreferrer">http://docs.aws.amazon.com/cli/latest/reference/s3/index.html</a></li>
  <li><a href="http://docs.aws.amazon.com/cli/latest/userguide/using-s3-commands.html" rel="nofollow noreferrer">http://docs.aws.amazon.com/cli/latest/userguide/using-s3-commands.html</a></li>
  </ul>