-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Backend: Amazon Glacier #541
Comments
Hi, thanks for the suggestion. I've already thought about this and I think that Glacier is unsuitable (as far as I understood the concept) for restic. At the moment, restic holds all the state in at the backend, which means it downloads quite some data before starting a backup. For Glacier, this means waiting 3-5 hours to start the backup, according to the FAQ:
I think it will require many changes in restic's repository architecture before it is feasible to try and implement a backend for Glacier. What do you think? |
I was thinking of a proxy type solution, where a local backup is kept as well as pushed to the glacier backend. You would not need to download a backup everytime but only when you loose the local data. It's kind of a worst case scenario. For example, being hit by a "ransomware" which encrypts all local backups (somehow), maybe if a user mounts a backup folder on an affected system. |
You can easily achieve this already by create a local repository, using this for the backup, and then use a Glacier client to copy the files to Amazon. |
Yes that was obvious, i was on a path of over engineering. I'll do that instead. Thanks |
Would obviously be a lot of complexity, but I could see a hybrid solution being a possible: use regular S3 to hold state, but send contents to Glacier. Just a thought. |
Glacier now offers expedited retrieval (1-5 minutes), which makes it a more appealing option for restic. |
you can also put a policy on any s3 bucket, telling it to put certain objects into glacier after a period of days. |
You could just have the first bucket with a policy for replication of a copy of all objects to another bucket that is glacier enabled. |
I would like to use restic to do nightly backups for long term storage and glacier seems to be a cheap solution. I'm about to dive into the current s3 backend and see how i can transmorph that into a glacier backend. I was wondering if anyone had any plans for this or any suggestions on how i could go about it.
Thanks
The text was updated successfully, but these errors were encountered: