Red Hat Training

A Red Hat training course is available for Red Hat OpenStack Platform

9.6. swift copy

Usage: swift copy
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"