Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you rename a folder in a bucket on S3?

As simple as it sounds, it seems like an extraordinarily complicated task.

like image 328
Trip Avatar asked Aug 04 '10 19:08

Trip


2 Answers

Seems like the AWS Command Line Interface is the new way to do stuff like this. Using it, you can rename a folder like this:

aws s3 mv --recursive s3://bucketname/oldfoldername s3://bucketname/newfoldername

Be sure and start with the --dryrun option to make sure it will do what you think it's going to do.

like image 189
Dan Tenenbaum Avatar answered Dec 04 '22 22:12

Dan Tenenbaum


If you use the S3 Management Console, you can cut and paste. Go into the folder you want, click Ctrl + A, then click Actions > Cut. Make your new folder and click Actions > Paste.

like image 24
Brendan Avatar answered Dec 04 '22 21:12

Brendan