Help Center> Object Storage Migration Service> FAQs> Product Consulting> How Do I Change the Storage Path of a Migrated Object?
Updated on 2023-06-06 GMT+08:00

How Do I Change the Storage Path of a Migrated Object?

Choose a method based on how many objects there are to migrate:

  • Few objects
    Use the OBS Browser+ tool provided by Huawei Cloud OBS to move the data.
    1. Download OBS Browser+. For details, see Downloading OBS Browser+.
    2. Log in to OBS Browser+, click the bucket from which you want to move the target objects (directories or files), and right-click the file or folder and choose Copy from the shortcut menu.
    3. Select a path to save the target objects. Right-click the path and choose Paste from the shortcut menu.
  • Many objects

    Use the obsutil tool to change the object path.

    1. Download obsutil and initialize it. For details, see Download and Installation and Performing Initial Configuration.
    2. Use commands to move the objects.

      The following uses Windows as an example:

    • Run obsutil mv obs://src_bucket/key obs://dsc_bucket/dsc_path to move a single object.
    • Run obsutil mv obs://src_bucket/prefix obs://dsc_bucket/dsc_path -f -r to move objects in batches.

      For batch operations, prefix indicates the name prefix of the objects. The tool moves all the migrated objects matching that name prefix.

      For more information about the obsutil commands, see Moving an Object.

Product Consulting FAQs

more