How to download the folders on s3 with aws cli



  • Using the team. aws s3 cp home/user/testdir $s3_path --recursive

    It's got to pump everything in the testdir folder. but it's only downloading files from the directory itself. Does the files ignore how to roll up with the folders?



  • I don't know how to write. https://serverfault.com/q/682708/292034 if the destination indicates the root bucket-aonly files from the catalogue will be copied:

    $ aws s3 cp --recursive /home/user/testdir s3://bucket/
    

    and if the catalogue is indicated, all the wood files/catalogs will be collated:

    $ aws s3 cp --recursive /home/user/testdir s3://bucket/testdir
    



Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2