Help Center > > FAQs> How Do I Change the Storage Path of a Migrated Object?

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

Updated at: Dec 15, 2019 GMT+08:00

Choose a proper method based on the object quantity to change the path:

  • Few objects
    You can use the OBS Browser tool provided by the 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.
  • A number of objects

    You are advised to use the obsutil tool to change the object path.

    1. Download obsutil and initialize the tool. For details, see Downloading obsutil and Performing Initial Configuration.
    2. Use commands to move the object.

      The following uses a Windows OS 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 moving, prefix indicates the name prefix of the migrated object. The tool moves all the migrated objects matching that name prefix.

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

Did you find this page helpful?

Submit successfully!

Thank you for your feedback. Your feedback helps make our documentation better.

Failed to submit the feedback. Please try again later.

Which of the following issues have you encountered?







Please complete at least one feedback item.

Content most length 200 character

Content is empty.

OK Cancel