Lesson 2 of 4 Hybrid Storage and Data Transfer

Migrating and Synchronising Data Online with AWS DataSync

This lesson explains how AWS DataSync moves large amounts of data online between on-premises storage, other clouds and AWS storage, as a one-off migration or on a schedule.

Learning outcomes

After completing this lesson, you will be able to:

  • Describe what DataSync transfers.
  • Estimate transfer time from size and bandwidth.
  • Identify typical uses of DataSync.

What DataSync does

AWS DataSync transfers data online between storage systems. It copies from and to NFS and SMB file servers, HDFS, self-managed object storage and other clouds, into or out of Amazon S3, Amazon EFS and Amazon FSx, and also between AWS storage services. For on-premises or other-cloud sources, a DataSync agent runs near the source; no agent is needed for transfers between AWS services.

Transfers are incremental after the first run, encrypted in transit and verified for integrity, and they can be scheduled and limited in bandwidth. DataSync preserves file metadata such as permissions and timestamps, and it works over the internet, AWS Direct Connect or VPC endpoints.

The following diagram shows a transfer from an on-premises file server.

How AWS DataSync transfers data online. An agent near the on-premises or other-cloud source reads NFS, SMB, HDFS or object storage and sends data, encrypted and verified, over the internet, Direct Connect or a VPC endpoint to Amazon S3, EFS or FSx. Runs after the first are incremental, and metadata such as permissions and timestamps is preserved.
No agent is needed when both the source and the destination are AWS storage services.
True or false

DataSync facts

Exam skills 3.5.3 · 4.1.7

Check how AWS DataSync transfers data.

Log in to try this activity Interactive activities are free with an account.

Estimating transfer time

Divide the data size by the usable bandwidth and compare with the deadline.

DataLinkTime
50 TB1 Gbps at about 80% (about 8.6 TB per day)About six days: DataSync works if the link can be dedicated
100 TB100 MbpsMore than three months: go offline with Snowball
Scenario questions

Online or offline?

Exam skills 3.5.3 · 4.1.3

Estimate transfer times and choose the transfer method.

Log in to try this activity Interactive activities are free with an account.

Typical uses

DataSync suits several common transfer tasks. It migrates network-attached storage (NAS) file shares to Amazon EFS or Amazon FSx, preserving permissions so users see the same files and access rights after the move. It moves archives into Amazon S3 Glacier storage classes for long-term retention at low cost.

It also replicates data to AWS regularly, on a schedule, for processing in the cloud or as a disaster recovery copy of on-premises data; because transfers are incremental, each run copies only what changed.

Worked example

Migrating a NAS to Amazon EFS

A company moves 40 TB from an on-premises NFS server to EFS over a 1 Gbps Direct Connect link, with the application switching over at a weekend.

StepAction
1Deploy a DataSync agent on premises
2Run an initial full transfer during the week, with a bandwidth limit in office hours
3Run incremental transfers nightly
4At the weekend, stop writes, run a final incremental transfer and switch the application to EFS

DataSync verifies data integrity and preserves permissions, and the incremental runs keep the final cutover short.

Check yourself

How does DataSync make repeated transfers efficient and reliable?

Show answer

It copies only files that changed since the last run and verifies data integrity in transit and at the destination.

Exam Tips

Remember for the exam

  • For scheduled online migration of NAS data to S3, EFS or FSx, use DataSync.
  • Divide the data size by the bandwidth to estimate the transfer time, and compare it with the deadline.
  • To move data between AWS storage services, such as EFS to S3, use DataSync without an agent.
  • To limit the impact of a migration on the network, set a DataSync bandwidth limit.