Send efs backup to S3

0

I am trying to use aws backup to backup efs. In case that the client restore a backup I need to re-send the restoration files. I tried backing up in a new efs and then send to S3 using datasync with no success because the restored efs backup have no mount targets. If I restore in the same efs, how can I access only the backup files to send to S3 and then delete them from the efs?. Is there a better way to achieve this?

已提問 2 年前檢視次數 790 次
2 個答案
1
已接受的答案

Keep in mind that when restoring Amazon EFS file systems using AWS Backup, the backup files can be restored to one of two locations: either a directory in the source file system; or a new file system. If you restore to a directory in the source file system, you can leverage the existing mount targets of your source file system for AWS DataSync to access your restored files. If you restore to a new file system, you will have to create at least one mount target for the new file system in order for AWS DataSync to access the restored data.

profile pictureAWS
已回答 2 年前
  • Thanks for the answer. If I choose to backup in the same EFS, how can I access the backup files?, do I need to create and EC2 to access them or can I do it directly in EFS using some API?

0

I'm not clear on your use case, but it appears you wish to send only restored EFS files to S3. You can restore individual files. See https://docs.aws.amazon.com/aws-backup/latest/devguide/restoring-efs.html, specifically "Item-level Restore."

It would still require verification that the file is located on S3 of the proper version before deleting it on the local EFS file system, so I would recommend using a workflow, like AWS Step Functions to execute your process.

profile pictureAWS
已回答 2 年前

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

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

回答問題指南