Open carlosrodlop opened 10 months ago
Some excerpts from the AWS documentation: https://docs.aws.amazon.com/aws-backup/latest/devguide/restoring-efs.html
For full restore: AWS Backup does not support destructive restores with Amazon EFS. A destructive restore is when a restored file system deletes or overwrites the source or existing file system. Instead, AWS Backup restores your file system to a recovery directory off of the root directory.
For item level restore: AWS Backup creates a new Amazon EFS directory (aws-backup-restore_datetime) off of the root directory to contain the items. The full hierarchy of the specified items is preserved in the recovery directory.
Using AWS Backsup for EFS would require the following steps:
1.- Mount the EFS locally to check the access points 2.- Set replicas to zero to the controller to restore 3.- Use mv to replace name of backup access point (recovery...) by current name used by Aplications 4.- set replicas to 1
Restore the AWS Backup intoa new EFS drive
The existing Access Points names will be empty no content
EFS Back script example (internal): https://github.com/cloudbees/tsm-dcs-solutions/tree/main/cloudbees-ci/jira-tickets/TSM-1654_restore-pvc-from-efs
Currently, there is not a EKS Best Practice recommendation for EFS PVs but it does for EBS (Velero).
The EFS backup/restore based on the AWS Backup (tutorial) is not prepare for EKS (Restore is happens in a different drive). See