Yandex Cloud
Search
Contact UsTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
  • Marketplace
    • Featured
    • Infrastructure & Network
    • Data Platform
    • AI for business
    • Security
    • DevOps tools
    • Serverless
    • Monitoring & Resources
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
    • Price calculator
    • Pricing plans
  • Customer Stories
  • Documentation
  • Blog
© 2026 Direct Cursus Technology L.L.C.
All solutions
    • All solutions for Object Storage
    • Resolving the `Bucket is not empty` error when deleting a bucket
    • Troubleshooting access to a bucket with an assigned security policy
    • Fixing error 429
    • Fixing error 409: `BucketAlreadyExists`
    • Resolving the error of access to S3 buckets from a Yandex Data Processing 1.4 cluster
    • Fixing error 403 (header is not retrieved when using the `OPTION` method)
    • Resolving certificate error
    • Resolving the `GATEWAY_REQUEST_ERROR` error
    • Fixing issues with incorrect MIME types of objects when uploading them to Object Storage
    • Troubleshooting issues with uploading new objects to a bucket
    • How to migrate data from an Object Storage bucket to ice storage
    • How to restrict Object Storage bucket access to a specific Cloud CDN IP address range
    • How to move bucket contents to another bucket in the same folder
    • How to directly access the Object Storage API without using SDK
    • How to view and delete incomplete downloads
    • How to determine the speed of data upload and download
    • How to configure `Cache-Control` headers for objects in a bucket during HTTP requests
    • How to restrict access to a bucket for a user
    • How to connect your own domain to a bucket
    • How to change the storage class
    • How to recover data deleted from a bucket

In this article:

  • Case description
  • Solution
  1. Object Storage
  2. How to migrate data from an Object Storage bucket to ice storage

How to migrate data from an Object Storage bucket to ice storage

Written by
Yandex Cloud
Improved by
kvendingoldo
Updated at December 17, 2025
  • Case description
  • Solution

Case descriptionCase description

You need to migrate data from a standard or cold storage in an Object Storage bucket to ice storage.

SolutionSolution

You cannot use lifecycle rules to change the storage class of objects in an Object Storage bucket to ICE. There are two workarounds to do that:

  • Copy the objects.
  • Set a lifecycle using the AWS CLI.
Copying objects with the AWS CLI
Setting a lifecycle using the AWS CLI

To copy objects to a different bucket using the AWS CLI, follow these steps:

  1. Change the storage class for your bucket to ICE.
  2. Install and configure the AWS CLI.
  3. Run the aws --endpoint-url=https://storage.yandexcloud.net s3 cp --recursive s3://*\$OLD_BUCKET_NAME\ s3://*\$NEW_BUCKET_NAME\ command.

Tip

In the provided example, replace $OLD_BUCKET_NAME with the source bucket name and $NEW_BUCKET_NAME, with the target bucket name.

In this case, moving data between storage classes occurs directly within Object Storage, without downloading objects to a local host running the AWS CLI. You can also specify the storage class for an object using the --storage-class option in the AWS CLI:

aws --endpoint-url=https://storage.yandexcloud.net s3 cp --recursive s3://*\$OLD_BUCKET_NAME\ s3://*\$NEW_BUCKET_NAME\ --storage-class GLACIER

Any of the above options will only change storage type for objects in the bucket. No duplicate objects will be created in the bucket as a result of this operation.

To set up a lifecycle using the AWS CLI, follow these steps:

  1. Create a transition-type lifecycle via the management console web UI.

  2. Save the current lifecycle rule configuration to the lifecycles.json file with the AWS CLI:

    aws s3api get-bucket-lifecycle-configuration \
    --endpoint-url=https://storage.yandexcloud.net \
    --bucket <$BUCKET_NAME> > lifecycles.json  
    

    In the provided example, replace $BUCKET_NAME with the name of your Object Storage bucket.

  3. Edit lifecycles.json, changing the storage class from COLD to ICE.

  4. Apply the new configuration using the AWS CLI:

    aws s3api put-bucket-lifecycle-configuration \
    --bucket <$BUCKET_NAME> \
    --endpoint-url=https://storage.yandexcloud.net \
    --lifecycle-configuration file://lifecycles.json
    

    In the provided example, replace $BUCKET_NAME with the name of your Object Storage bucket.

Was the article helpful?

Previous
Troubleshooting issues with uploading new objects to a bucket
Next
How to restrict Object Storage bucket access to a specific Cloud CDN IP address range
© 2026 Direct Cursus Technology L.L.C.