Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Blueprints, 02-at-scale] Best Practice for EFS PV backup/restore #39

Open
carlosrodlop opened this issue Jan 8, 2024 · 2 comments
Open
Labels
enhancement New feature or request

Comments

@carlosrodlop
Copy link
Collaborator

carlosrodlop commented Jan 8, 2024

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

Related to BEE-9190 DR k8s - Support EFS(CloudBees Internal JIRA)

@carlosrodlop carlosrodlop added the enhancement New feature or request label Jan 8, 2024
@carlosrodlop carlosrodlop changed the title [Blueprints, 02-at-scale] EFS backup best practice [Blueprints, 02-at-scale] Dinamic EFS PV restore Jan 27, 2024
@carlosrodlop carlosrodlop changed the title [Blueprints, 02-at-scale] Dinamic EFS PV restore [Blueprints, 02-at-scale] Best Practice for EFS PV backup/restore Jan 27, 2024
@DraganBocevski
Copy link
Contributor

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.

@carlosrodlop
Copy link
Collaborator Author

carlosrodlop commented May 27, 2024

Using AWS Backsup for EFS would require the following steps:

Restore the AWS Backup into existing EFS drive

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

Same as before but running the terraform files to use an existing EFS id (AWS backup restore) to be used for EFS CSI Drive for EKS cluster.

The existing Access Points names will be empty no content

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants