Cross-Region AWS EFS Data Transfer Using AWS DataSync

How to Provision source and destination locations for AWS EFS and transfer data with AWS DataSync.?


AWS DataSync makes it simple and fast to move large amounts of data between on-premises storage and AWS. DataSync makes it easy for you to move data by automating both the management of data transfer processes and the infrastructure required for high-performance, secure data transfer.

we can use data sync to operate copying files securely between two amazon efs within different regions. DataSync is also used to achieve one-off migrations

Also, DataSync is assumed to be 15 times faster than other tools available.

In this journal, we’ll give stepwise orient the way to transfer knowledge between associate degree AWS EFS in one AWS Region to associate degree AWS EFS in another AWS Region.

To being, you’ll have associate degree Amazon AWS account, and supply and destination AWS EFSs organized in 2 completely different AWS Regions.

How to Transfer Data EFS-to-EFS Within Cross Region

Deploy the DataSync Agent

  1. Deploy the agent in the source region that has access to both the source and destination EFS. Go to the AWS Agent AMI List and select your AMI by AWS Region. For us-west-1, click on the Launch instance in front of the us-west-1.

2. Choose the type of instance you require as per details.

  • m5.2xlarge — Transfer up to 20 million files.
  • m5.4xlarge — Transfer more than 20 million files.

3. Select “VPC” where your source EFS file system is located. choose “Auto-assign Public IP” to “Enable.”

4. Select “Next: Add Storage

5. You must assure that the security group allows inbound access to HTTP port 80 from the web browser that is being used to operate the agent.

Port 2049 is being used as a standard by NFS, Select on Launch button

Activate the AWS DataSync Agent

  1. The first step we would do here is we will visit the activation screen and enter the agent’s IP/domain name in the Agent address box and choose to achieve “Get key.”
  2. Once it's activated, the key will be visible on the screen. In case of the activation fails, we would just go and check the agent's security group is configured properly or not.
  3. If things look great just “Create agent.”

Configure the Locations for Source and Destination

How to provision a source location:

  1. Search on the Location page, click on “Create location.”
  2. Then you must choose “NFS server” from the Location type available to you on the screen.
  3. You must then choose your Agents from the given list.
  4. You must then enter the IP address of the source EFS address For the NFS server you have chosen.
  5. For “Mount path, enter “/”; if you want all the files, otherwise select your desired path as mentioned.
  6. Finally, select “Create location.”

How to Provision a destination location:

  1. Same as above on the Location page, select “Create location.”
  2. Choose “EFS” from the Location type available as same you did for source .
  3. Choose your EFS File System from the list available to you.
  4. Enter the IP address of the source EFS address, For the NFS server.
  5. For the “Mount path,” I, enter “/” f you want the files to be copied to the root directory otherwise determine a path.
  6. Select “Create location.”

How to Create a Data Transfer Task?

  1. Choose “Task,” From the navigation pane and select “Create task.”
  2. Choose an existing location and select the source location we created above on the “Configure source location” page.
  3. Select “Next” and you will be asked to select a destination. Select an existing location and select the destination location we created above for the same task.
  4. Select “Next” and Provide a name for the “Task Name.”
  5. Select “Next” and “Create task.”

Start the Transfer

From the navigation pane, choose “Tasks,” select your task, and click on “Start” to start data transfer.

👋 Join us today !!

️Follow us on LinkedIn, Twitter, Facebook, and Instagram

If this post was helpful, please click the clap 👏 button below a few times to show your support! ⬇



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Kubernetes Advocate

Kubernetes Advocate

Vineet Sharma-Founder and CEO of Kubernetes Advocate Tech author, cloud-native architect, and startup advisor.