Command line tool to move/modify files/folders in Amazon S3

久未见 提交于 2019-12-01 06:13:56

A few days ago, Amazon added new file commands.

The AWS CLI webpage is at http://aws.amazon.com/cli/#file These are python scripts (Python 2.6 or higher required). On Mac and Linux you can install using 'pip install awscli'. For windows there is an installer.

I was wondering if you had heard of Google... No don't take seriously, just kidding. There are several options, e.g.:

HTH

To create a folder and move files into it just use the mv command and include the folder in the path - it will be created automatically.

Example: create folder "newFolder" and move file "pic.jpg" from bucket root:

aws s3 mv s3://bucket-name/pic.jpg s3://bucket-name/newFolder/pic.jpg

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!