How do I move files from one S3 bucket to another?

Moving Files Between S3 Buckets: A Survival Guide

Ever tried to shuffle files between S3 buckets?

If you’re anything like me, you’ve stared down AWS S3 from behind a cold coffee, half-convinced there’s a secret handshake needed to get files moved around. So, picture this: you’ve got a data swamp in Bucket A but a pristine new Bucket B ready for action. Time to clean house and get stuff moved.

The Quick & Dirty: Using AWS CLI

Honestly, the AWS Console isn’t my weapon of choice for this—too many clicks, way too easy to mis-click and lose track. What you want is the AWS CLI. Installing it’s simple (docs are here if you need ‘em: https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html). Once you’ve got that, it’s as easy as:

aws s3 cp s3://bucket-a/myfolder/ s3://bucket-b/myfolder/ --recursive

That sucker does a deep copy, folder and all.

But, and this is important, you might not always want to copy. Sometimes you want to flat-out move—no leftovers. In that scenario, you need to copy first and then remove from the source bucket:

aws s3 mv s3://bucket-a/myfolder/ s3://bucket-b/myfolder/ --recursive

Boom. Gone from A, now happily in B.

Drag, Drop, Done… Without the Headaches

I mean, sometimes I just want to treat cloud files the way I treat my local stuff—drag here, drop there, done. This is where less command-line-y folks usually start poking around for an easier tool. There are apps that turn cloud storage into something your desktop understands—like a regular old drive.

I stumbled across CloudMounter the last time I wanted S3 to act like a folder on my Mac. Plug it in, link your S3, and suddenly your buckets sit right next to Downloads in Finder. Drop files between buckets/tabs, and honestly: it’s like S3 never left 2012. Basically, it makes those big, scary AWS buckets behave, even for the less “terminal-friendly” among us.

If you absolutely, positively must run a script…

Yeah sure, Python’s boto3 works too. You loop through objects and transfer them, but script failures mid-job are a pain—especially if the folders are huge (ask me about my 3 a.m. S3 error hunt sometime).

TL;DR

  • CLI commands: direct and powerful, but you gotta watch your options.
  • Scripts: customizable, but a bit fiddly and easy to break.
  • Third-party desktop apps: let you drag-and-drop S3 files like it’s a desktop folder (CloudMounter), so you get to skip the headaches.

For those who’d rather not risk “fat finger deletes” or hunt through endless AWS menus, having your S3 buckets just show up in Finder is honestly a lifesaver.

And that’s about it—move your files however you fancy, just back up your stuff first. Because if Murphy’s Law loves anything, it’s a careless admin.

7 Likes