使用AWS CLI在用户本地下载s3存储桶文件 [英] Download s3 bucket files on user's local using aws cli
本文介绍了使用AWS CLI在用户本地下载s3存储桶文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何直接在用户的本地计算机上下载简单存储服务存储桶文件?
How to download simple storage service(s3) bucket files directly on user's local machine?
推荐答案
,您可以检查启用s3 cli ,以便从s3复制文件.
you can check the aws s3 cli so to copy a file from s3.
以下cp命令将单个对象复制到本地指定的文件中:
The following cp command copies a single object to a specified file locally:
aws s3 cp s3://mybucket/test.txt test2.txt
请确保在键中有空格的情况下使用引号"
Make sure to use quotes "
in case you have spaces in your key
aws s3 cp "s3://mybucket/test with space.txt" "./test with space.txt"
这篇关于使用AWS CLI在用户本地下载s3存储桶文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文