EFS-to-EFS Backup
EFS backup solution leverages CloudWatch and Lambda to automatically create incremental backups of source EFS to destination EFS on a customer-defined schedule. It utilizes fpsync utils (fpart + rysnc) for efficient incremental backups on the file system.
#
Stacks:A CloudWatch event invokes the solution's orchestrator Lambda function on a customised schedule.
The Lambda function launches an EC2 instance, creates an ID for the backup, and stores details on the backup EFS in a DynamoDB table.
The EC2 instance mounts the source and backup EFS file systems and initiates the backup.
When the backup process completes, the instance updates the backup activity details in the DynamoDB table and sends logs to an S3 bucket. Then, the instance is terminated. If the backup is unsuccessful, SNS sends a notification to subscribed email addresses.
#
Architecture#
Codehttps://github.com/awslabs/efs-backup
#
Services:EFS | Lambda | CloudWatch | DynamoDB | SNS