DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Related

  • Why SAP S/4HANA Landscape Design Impacts Cloud TCO More Than Compute Costs
  • AWS Transfer Family SFTP Setup (Password + SSH Key Users) Using Lambda Identity Provider + S3
  • Cost Is a Distributed Systems Bug
  • From Data Lakes to Intelligence Lakes: Augmenting Apache Iceberg With Generative AI Metadata on AWS

Trending

  • Deployment Lessons You Only Learn the Hard Way
  • Engineering Closed-Loop Graph-RAG Systems, Part 2: From Prompts to Rules
  • I Reverse-Engineered 50 API Breaches. The Same Five Mistakes Keep Appearing.
  • Engineering Closed-Loop Graph-RAG Systems, Part 3: Closing the Loop in Graph-RAG Systems
  1. DZone
  2. Software Design and Architecture
  3. Cloud Architecture
  4. Cross-Region AWS EFS Data Transfer Using AWS DataSync

Cross-Region AWS EFS Data Transfer Using AWS DataSync

Set up source and destination locations for AWS EFS and transfer data with AWS DataSync.

By 
Taqi Azam user avatar
Taqi Azam
·
Updated Nov. 29, 19 · Tutorial
Likes (0)
Comment
Save
Tweet
Share
9.3K Views

Join the DZone community and get the full member experience.

Join For Free

Image title

Use AWS DataSync to transfer data between AWS EFS destinations.

Background

AWS DataSync is an AWS data transfer service that makes copying data much simpler, automated, and faster between NFS, S3, and EFS. AWS DataSync now supports automatic, efficient, and secure copying of files between two Amazon EFSs residing in two different AWS Regions. DataSync can be used to perform one-off migrations and also schedule base migrations for recovery and backups. Additionally, DataSync is ten times faster than all other open-source tools available.

In this blog, we will provide a step by step guide on how to transfer data between an AWS EFS in one AWS Region to an AWS EFS in another AWS Region.

To being, you'll need an Amazon AWS account, and source and destination AWS EFSs configured in two 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.

Launch instance

2. Select your instance type. AWS recommends using one of the following instance types.

  • m5.2xlarge—for tasks that will transfer up to 20 million files.

  • m5.4xlarge—for tasks that will transfer more than 20 million files.

3. On the Configure Instance Details for Network page, choose "VPC" where your source EFS file system is located. Set "Auto-assign Public IP" to "Enable."

4. Choose "Next: Add Storage." The agent does not require additional storage, so you can skip this step and choose "Next: Add tags."

5. Make sure that the selected security group allows inbound access to HTTP port 80 from the web browser being used to activate the agent.

The security group of the source EFS allows inbound traffic from the agent and the agent allows outbound traffic to the source EFS. The traffic uses the standard NFS port, 2049. Finish by choosing "Review and Launch."

Activate the AWS DataSync Agent

  1. Go to the activation screen and enter the agent’s IP/domain name in the Agent address box and choose "Get key."
  2. When activated, the activation key will be displayed on the screen. If activation fails, make sure to check the security group of the agent is configured properly.
  3. Then choose "Create agent."

Create Agent

Configure the Locations for Source and Destination

To create a source location:

  1. On the Location page, choose "Create location."
  2. Select "NFS server" from the Location type.
  3. Select your Agents from the list. You can add more than one agent.
  4. For the NFS server, enter the IP address of the source EFS address.
  5. For "Mount path," if you want all the files, enter "/"; otherwise select your desired path.
  6. Choose "Create location."

Create source location

To create a destination location:

  1. On the Location page, choose "Create location."
  2. Select "EFS" from the Location type.
  3. Select your EFS File System from the list.
  4. For the NFS server, enter the IP address of the source EFS address.
  5. For the "Mount path," if you want the files to be copied to the root directory, enter "/" otherwise determine a path.
  6. Choose "Create location."

Create destination location

Create a Data Transfer Task

  1. From the navigation pane, choose "Task," and click on "Create task."
  2. On the "Configure source location" page, choose an existing location and select the source location we created above.
  3. Click "Next" and you will be prompted to select a destination. Choose an existing location and select the destination location we created above.
  4. Choose "Next" and enter a name for the "Task Name."
  5. Choose "Next" and choose "Create task."

Source location

Destination location

Start the Transfer

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

Start Transfer



AWS Transfer (computing) Data (computing)

Opinions expressed by DZone contributors are their own.

Related

  • Why SAP S/4HANA Landscape Design Impacts Cloud TCO More Than Compute Costs
  • AWS Transfer Family SFTP Setup (Password + SSH Key Users) Using Lambda Identity Provider + S3
  • Cost Is a Distributed Systems Bug
  • From Data Lakes to Intelligence Lakes: Augmenting Apache Iceberg With Generative AI Metadata on AWS

Partner Resources

×

Comments

The likes didn't load as expected. Please refresh the page and try again.

  • RSS
  • X
  • Facebook

ABOUT US

  • About DZone
  • Support and feedback
  • Community research

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 215
  • Nashville, TN 37211
  • [email protected]

Let's be friends:

  • RSS
  • X
  • Facebook