对象存储服务 OBS-恢复归档存储对象:运行示例

时间:2024-12-11 17:17:48

运行示例

  • 以Windows操作系统为例,运行obsutil restore obs://bucket-test/key,恢复单个存储类型为cold的对象。
    obsutil restore obs://bucket-test/key
    Start at 2024-09-30 08:56:17.9537365 +0000 UTC
    
    Start to restore object [key] in the bucket [bucket-test] successfully, cost [252] ms, request id [0000019242250F754015F23EE0B7876E]
  • 以Windows操作系统为例,运行obsutil restore obs://bucket-test -r -f,批量恢复桶中所有的存储类型为cold的对象。
    obsutil restore obs://bucket-test -r -f
    Start at 2024-09-30 08:57:11.3565648 +0000 UTC
    
    [================================================] 100.00% 3s
    Succeed count:   12        Failed count:    0
    Metrics [max cost:264 ms, min cost:54 ms, average cost:119.33 ms, average tps:19.70]
    Task id: 96f104ee-d0bf-40ff-95dd-31dec0d8f4f4
support.huaweicloud.com/utiltg-obs/obs_11_0016.html