Restrict AWS Backup Selection by S3 Storage class

0

Is it possible to filter an aws backup selection by storage class for s3 resources? I know it's possible to condition selections based on tags but I can't tell if there's a default resource tag on objects which specify the storage class.

  • For a bit more context: I want to backup all current versions within s3 without triggering a backup for versions in glacier. I'm aware that AWS backup is not supported for the flexible glacier storage tier however I believe AWS backup is still attempting to backup glacier objects and subsequently failing. All backup jobs on buckets with versions in glacier complete with status "Completed with issues". I restored a bucket that "Completed with issues" and the only difference was that the versions stored in glacier were missing

Alex
已提問 2 個月前檢視次數 188 次
1 個回答
0

It is possible to filter AWS Backup vault selections by storage class for S3 resources. When creating a backup selection for an S3 bucket, you can specify filters to narrow the scope of what gets backed up.

Some options for filtering by storage class include:

  • Use the Prefix filter to specify a prefix for objects with a particular storage class. For example only back up objects prefixed with standard/
  • Apply tags to objects with different storage classes, and use the Tag filter to select objects with a specific tag.
  • Leverage the S3 inventory feature to identify objects by storage class, then exclude those objects from the backup selection using ExcludeObjectVersions filter.
  • The S3 inventory generates daily CSV files with metadata about objects, including the storage class. You can process these files to get a list of object keys to exclude.
profile picture
專家
已回答 2 個月前
  • Thanks for this answer!

    Can you give an example of filtering based on prefix? All versions of my s3 objects have the same ARN. They do have different object urls but I'm not sure how to add a filter on that to the backup selection.

    I'd rather not have to setup a system for managing tags across storage classes or processing the inventory list on a daily basis

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南