-
Do I just need to use a glacier s3 bucket for cold and a regular s3 bucket for hot? There's more than 1 Glacier StorageClass, and it seems a normal s3 bucket can transition its file to glacier https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket#transition |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 12 replies
-
rustic doesn't support single repositories/buckets which have objects that can be in different "states" (something like this is not contained in the restic REST protocol; rclone therefore isn't able to provide this kind of information). So, to use S3 glacier, you should use 2 buckets: A hot one which is always accessible and a cold one where all object should be transitioned/transferred directly to Glacier when they are stored. The "hot" objects are then in fact stored in both buckets, but this shouldn't be much overhead as it is only metadata which usually is less than 1% of the repo size. (The side effect is that the cold repo contains a full restic-compatible repository; if you warm up it completely, you can use it a standard repository within rustic and even restic). TL;DR: I think you have to do the following:
Once you get a working configuration, can please share it so other users can also use it? |
Beta Was this translation helpful? Give feedback.
-
I'm linking it here because this came up when I initially investigated how to use Rustic with Glacier. I have written two articles on the topic - economic side of hosting rustic repo in AWS Glacier and the technical side of migrating to Glacier, restoring and such. It's really quite complex topic from both points of view and there are some sharp edges especially around restoring the backups. Hopefully it helps someone. |
Beta Was this translation helpful? Give feedback.
rustic doesn't support single repositories/buckets which have objects that can be in different "states" (something like this is not contained in the restic REST protocol; rclone therefore isn't able to provide this kind of information).
So, to use S3 glacier, you should use 2 buckets: A hot one which is always accessible and a cold one where all object should be transitioned/transferred directly to Glacier when they are stored. The "hot" objects are then in fact stored in both buckets, but this shouldn't be much overhead as it is only metadata which usually is less than 1% of the repo size. (The side effect is that the cold repo contains a full restic-compatible repository; if you warm up…