Skip to content
This repository has been archived by the owner on Jul 5, 2021. It is now read-only.

Automatically delete archives in a vault after 90 days. #33

Open
lucavix opened this issue Apr 3, 2013 · 3 comments
Open

Automatically delete archives in a vault after 90 days. #33

lucavix opened this issue Apr 3, 2013 · 3 comments

Comments

@lucavix
Copy link

lucavix commented Apr 3, 2013

I'll use glacier to do day by day backups.
In this scenario it will be nice to have the ability to schedule a deletion of file older than X days ( where X > 90 to avoid deletion fee :-).

Do you think that this feature could be useful also to others ?

@MoriTanosuke
Copy link
Owner

Is this a feature of Amazon Glacier? I know that you can use the S3 lifecycle to automatically move old files from your S3 buckets into a glacier vault, but I'm not aware of any lifecycle features of the vault.

Can you maybe give an URL to the Glacier documentation for this?

@nitriques
Copy link
Contributor

I do not think that the Glacier SDK has that. Remember that deleting content from Glacier may cost more money that leaving it there.

@ranrotx
Copy link

ranrotx commented Dec 30, 2016

Most people store metadata for their Glacier archives externally. With this, it's possible to query the metadata on a schedule and then determine which archives to delete. A simple workflow would be something like:

  1. Upload to Glacier
  2. Store metadata (could use a small DynamoDB table)
  3. Scheduled Lambda function queries the DynamoDB table. Receives a list of archives, determines which are older than X days. Lambda function could then call another Lambda function to delete the archives on your behalf.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants