title: make all files private using aws-shell for S3
body: <p>I want to change the files of a bucket (all files) to private, so i'm wondering how to do it with aws-shell. I think that maybe the <a href="http://docs.aws.amazon.com/cli/latest/reference/s3/mv.html" rel="nofollow noreferrer"><code>mv</code> command</a> can be useful to achieve this, but i cant figure out how to use it, because this is the first time that i use aws-shell.</p>
  
  <h3>Edit 1</h3>
  
  <p>I tried using <code>s3 mv s3://bucket s3://temporary --recursive --acl private</code>, but i needed to create another temporary bucket to make the swap. Because of this error:</p>
  
  <blockquote>
    <p>Cannot mv a file onto itself [...]</p>
  </blockquote>
  
  <p>Is there a way to do this without creating a temporary bucket? I mean that this could cause charges for having transactions and space being used by duplicate files</p>