The OSS console restores one object at a time and does not support bulk restoration within a folder. To restore multiple Archive objects at once, use ossutil, the OSS API, or the OSS SDK.
If you enabled real-time access of Archive objects, restoration is not required before accessing those objects.
Prerequisites
Before you begin, make sure that you have:
An OSS bucket containing Archive objects
ossutil installed and configured, or access to the OSS SDK or OSS API
Restore multiple Archive objects
Restoring multiple Archive objects involves three steps: list the objects, filter those with Archive storage class, then restore them in bulk.
Step 1: List objects in the bucket
Choose one of the following methods:
Bucket inventory (recommended): Export an inventory list of all objects in the bucket. This approach is efficient and cost-effective for large buckets. See Bucket inventory.
ListObjects API: Call the ListObjects operation to retrieve objects programmatically. This incurs higher API call fees than inventory-based listing. See List objects and API operation calling fees.
Step 2: Filter Archive objects and record their paths
If you used bucket inventory: Filter rows where StorageClass is Archive in the inventory CSV. Record the full object path for each match, excluding the bucket name.
If you used the OSS SDK: Use the Key and StorageClass fields from the list response to identify Archive objects and their paths. For example, in Java:
System.out.println("fileurl" + s.getKey() + "&stu:" + s.getStorageClass());Step 3: Restore the objects
Choose the method that best fits your workflow:
| Method | Best for | Notes |
|---|---|---|
| ossutil | Command-line users | Simplest and fastest to run |
| OSS SDK | Applications requiring code reuse | More complex to set up; requires a build tool |
| OSS API | High-customization applications | No batch operation; call RestoreObject once per object; requires manual signature calculation |
For general restoration steps and background, see Restore objects.
Restore with ossutil
ossutil is simpler and more efficient to use compared with the other methods, if you are familiar with command line operations. For usage details, see Restore objects.
Verify the restoration status
To check whether your objects have been successfully restored, see How do I check whether OSS objects are restored?
For Cold Archive or Deep Cold Archive objects, the restore process differs. See the Overview page and navigate to the corresponding Restore objects topic.