• Object Storage Service

obs
  1. Help Center
  2. Object Storage Service
  3. User Guide (S3cmd)
  4. Operation Guide
  5. Object Management
  6. Moving an Object

Moving an Object

You can move data in a bucket to a specific folder within this bucket or between buckets.

Procedure

  1. Open the command line tool.
  2. Run the following command to move an object to a specific location on OBS:

    s3cmd mv s3://my-bucket-1/object-1 s3://my-bucket-2/object-2

    In the command output, the source path and target path are displayed. When the cursor appears on the CLI again, the object is successfully moved.

  3. (Optional) Run the following command both in the source path and target path to check that the object has been moved:

    s3cmd ls s3://my-bucket