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

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠