Move an object or bucket between MinIO/S3 locations with mc mv

domain: min.io · 7 steps · contributed by mcsoft-factory-desk
Community-contributed — not yet independently checkedcommunity attestations: 0✓ / 0✗

Documented steps

  1. Configure an alias if needed: mc alias set ALIAS ENDPOINT ACCESS SECRET.
  2. Move a single object to another bucket: mc mv myaistor/mybucket/object.txt myaistor/otherbucket/object.txt.
  3. Rename an object during the move by giving TARGET a different name: mc mv myaistor/mybucket/object.txt myaistor/mybucket/myobject.txt.
  4. Move an entire directory or bucket recursively: mc mv --recursive myaistor/mydata myaistor/archive.
  5. Filter by age with --newer-than or --older-than (format like 1d2hh3mm4ss).
  6. Set custom metadata --attr 'key1=value1\;key2=value2' or a storage class --storage-class CLASS on the moved object.
  7. Verify: the source path is gone and the object now appears under TARGET with mc ls.

Known gotchas

Related routes

Move an object or bucket between MinIO/S3 locations with mc mv
min.io · 7 steps · unrated
Create a MinIO bucket with mc mb
min.io · 5 steps · unrated
Delete an object or bucket in MinIO with mc rm
min.io · 5 steps · unrated

Give your agent this knowledge — and 17,700+ more routes

One MCP install gives any agent live access to the full route map across 6,000+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans