Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
    • Yandex Cloud Partner program
  • Blog
  • Pricing
  • Documentation
© 2025 Direct Cursus Technology L.L.C.
All solutions
    • All solutions for Object Storage
    • Resolving the Bucket not empty error when deleting a bucket from Object Storage
    • Resolving errors of access to a bucket with an assigned security policy
    • Resolving error 429
    • Resolving the "409 BucketAlreadyExists" error
    • Resolving the error of access to S3 buckets from a DataProc 1.4 cluster
    • Resolving error 403 (header is not provided when using the OPTION method)
    • Resolving certificate error
    • Resolving GATEWAY_REQUEST_ERROR
    • Resolving issues with incorrect MIME-types of objects when uploading them to Object Storage
    • Moving data from an Object Storage bucket to an ice storage
    • Restricting access to an Object Storage bucket using an IP range from Cloud CDN
    • Moving bucket contents to another bucket in the same the folder
    • Accessing Object Storage API directly, bypassing the SDK
    • Viewing and deleting incomplete uploads
    • 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

In this article:

  • Issue description
  • Solution
  1. Object Storage
  2. Moving data from an Object Storage bucket to an ice storage

Moving data from an Object Storage bucket to a glacier storage

Written by
Yandex Cloud
Improved by
kvendingoldo
Updated at January 30, 2024
  • Issue description
  • Solution

Issue descriptionIssue description

You need to move data from a standard or cold storage in an Object Storage bucket, to a glacier storage.

SolutionSolution

For now, you cannot use lifecycle rules to change the object storage class in your object storage bucket to glacier storage.

The best option is to copy objects using the AWS CLI utility to the target bucket. In this case, you'll have to specify the storage parameters in the CLI or change the storage type first in the bucket settings.
Follow these steps:

  1. Change your bucket to the glacier storage type.
  2. Install and set up the AWS CLI utility.
  3. Run this command: aws --endpoint-url=https://storage.yandexcloud.net s3 cp --recursive s3://*\<BUCKET_NAME>\ s3://*\<BUCKET_NAME\>.

Note

Before running the command, make sure to replace <BUCKET_NAME> with your bucket name in Object Storage.

In such a case, data transfer between storage types will occur directly within Object Storage, without first downloading objects to the local host running the AWS CLI.
You can also specify the storage type for your object using the --storage-class option in the AWS CLI:
aws --endpoint-url=https://storage.yandexcloud.net s3 cp --recursive s3://*\<BUCKET_NAME\> s3://*\<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.

Was the article helpful?

Previous
Resolving issues with incorrect MIME-types of objects when uploading them to Object Storage
Next
Restricting access to an Object Storage bucket using an IP range from Cloud CDN
© 2025 Direct Cursus Technology L.L.C.