EFS-to-EFS Backup

Many Amazon Web Services (AWS) customers who use Amazon Elastic File System (Amazon EFS), a highly available and durable file storage service, choose to implement a backup solution to be able to recover from unintended changes or deletions to their file systems.

AWS offers this EFS-to-EFS Backup guidance to automatically create incremental backups of an Amazon EFS file system on a customer-defined schedule.

AWS Solutions Implementation overview

Important: AWS Backup, a fully managed backup service, enables you to centrally manage backups for Amazon EFS file systems. AWS recommends that you evaluate AWS Backup for your specific use case before you use this solution. AWS recommends using AWS Backup to implement a backup solution for Amazon EFS to recover from unintended user changes or deletions. For the most current Amazon EFS availability by Region, refer to the Regional Product Services table. If AWS Backup is not available in your Region, use this EFS-to-EFS Backup Guidance.

EFS-to-EFS Backup allows you to automatically back up Amazon EFS file systems. The diagram below presents the components and functionality you can build using the example code on GitHub.

EFS-to-EFS Backup architecture

An Amazon CloudWatch event runs on an interval you define during initial configuration. This event invokes the solution’s orchestrator AWS Lambda function.

The Lambda function launches an Amazon Elastic Compute Cloud (Amazon EC2) instance, creates an ID for the backup, and stores details on the backup Amazon Elastic File System (Amazon EFS) file system in an Amazon DynamoDB table.

The Amazon EC2 instance mounts the source and backup Amazon 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 Amazon Simple Storage Service (Amazon S3) bucket. Then, the instance is terminated.

If the backup is unsuccessful, Amazon Simple Notification Service (Amazon SNS) sends a notification to subscribed email addresses. You can also choose to be notified if the backup is successful.

EFS-to-EFS Backup

Version 1.5
Last updated: 12/2019
Author: AWS

Additional resources

Did this Guidance help you?
Provide feedback 


EFS-to-EFS Backup reference implementation

Leverage Video on Demand on AWS as a reference implementation to automatically launch and configure the components necessary to automatically back up Amazon EFS file systems.

Consistent backups

EFS-to-EFS Backup uses fpsync, a tool that synchronizes directories in parallel using fpart and rsync, to copy the source file system to the backup file system.

Incremental Backups

This Guidance captures the state of an Amazon EFS file system at a point in time. If you specify a backup window long enough to copy your entire file system, it will copy the entire file system or the entire subdirectory the first time it creates a backup.

Granular Backups

This guidance allows customers to specify any valid directory from their source file system.
Build icon
Deploy an AWS Solution yourself

Browse our library of AWS Solutions to get answers to common architectural problems.

Learn more 
Find an APN partner
Find an AWS Partner Solution

Find AWS Partners to help you get started.

Explore icon
Explore Guidance

Find prescriptive architectural diagrams, sample code, and technical content for common use cases.

Learn more