Copy objects between containers

You can copy objects from one container or pseudo-folder to another within the Object Storage service (swift). Copying objects is useful for creating duplicates of data in different locations, reorganizing your storage structure, or migrating data between containers.

About this task

Note
If you do not specify a unique name for the destination object, it keeps the same name as the source object. If you use a name that already exists in the destination, the new object overwrites the contents of the previous object.

Procedure

Copy an object from one container to a destination container:
$ openstack copy --destination </container/object> \
                 <container> <object> \
                 [<object>] [...]
  • Replace </container/object> with the container and name of the destination object.
  • Replace <container> with the name of the container you want to copy the object from.
  • Replace <object> with the name of the object you want to copy. You can specify multiple objects to copy.