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

Interesting. Is there any CLI tool for Amazon S3 to play with files / folders, actions like move , delete , etc.

Basically, I have a task when I have to move a bunch of (many) files from a bucket to a folder in the same bucket, so I don’t need to see whole files when I open the bucket in the S3 console.

I am expecting a tool or script view that helps me move files from one place to a folder in the same bucket.

+4
source share
3 answers

A few days ago, Amazon added new teams.

The AWS CLI web page is at http://aws.amazon.com/cli/#file These are python scripts (requires Python 2.6 or higher). On Mac and Linux, you can install using 'pip install awscli'. There is an installer for windows.

+4
source

I was wondering if you heard about Google ... No, don't be serious, just joke. There are several options, for example:

NTN

+2
source

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

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

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

0
source

All Articles