9.6. swift copy


Usage: swift copy
Copy to Clipboard Toggle word wrap
Copies object to new destination, optionally updates objects metadata. If destination is not set, will update metadata of object

Positional arguments

container


        Name of container to copy from.

object


        Name of object to copy. Specify multiple times
      for multiple objects

Optional arguments

-d, --destination </container[/object]>


      The container and name of the destination object. Name
      of destination object can be ommited, then will be
      same as name of source object. Supplying multiple
      objects and destination with object name is invalid.

-M, --fresh-metadata


        Copy the object without any existing metadata,
      If not set, metadata will be preserved or appended

-m, --meta <name:value>


      Sets a meta data item. This option may be repeated.
      Example: -m Color:Blue -m Size:Large

-H, --header <header:value>


      Adds a customized request header.
      This option may be repeated. Example
      -H "content-type:text/plain" -H "Content-Length: 4000"

Back to top
Red Hat logoGithubredditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust. Explore our recent updates.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

Theme

© 2026 Red Hat