- Más nuevo
- Más votos
- Más comentarios
Reading the question a little differently. If that data is on your local disk, you can copy objects directly to any storage class in S3 by using the command line. This avoids any charges by storing the objects other storage classes for a period of time.
For example:
aws s3 cp <source file> s3://<bucket name>/path/ --storage-class DEEP_ARCHIVE
Yes, you can upload data directly from Amazon S3 to Amazon S3 Glacier using a lifecycle policy that transitions objects from S3 to Glacier.
To do this, you can create a S3 bucket and upload the 5TB of data to this bucket. Then, you can create a lifecycle policy to transition these objects to S3 Glacier. When you create the policy, you can specify a rule to transition the objects from S3 to S3 Glacier based on the object age, object size, or both.
Here's an example of a lifecycle policy
{
"Rules": [
{
"ID": "Archive to Glacier",
"Status": "Enabled",
"Filter": {
"Prefix": ""
},
"Transitions": [
{
"Days": 30,
"StorageClass": "GLACIER"
}
]
}
]
}
Once the objects are transitioned to S3 Glacier, you can view them in the S3 Glacier console or retrieve them using the AWS CLI or SDK.
Contenido relevante
- OFICIAL DE AWSActualizada hace 3 años
Thank you very much. I guess that I have to learn to create a lifecycle policy now. Thank you very much!
:) https://docs.aws.amazon.com/AmazonS3/latest/userguide/how-to-set-lifecycle-configuration-intro.html