Arkinu
AWS service comparison

AWS DataSync vs AWS Storage Gateway: differences and when to use each

AWS DataSync
AWS Storage Gateway

Often confused on the examQuestions tend to offer one as a distractor for the other: look for the phrase in the scenario that tips the balance.

Migration and Transfer

AWS DataSync

Online data transfer service that copies files or objects between on-premises storage (NFS, SMB, HDFS, or object storage), other clouds, and AWS services such as Amazon S3, Amazon EFS, and Amazon FSx. It automates the transfer with encryption and data integrity validation.

Exam phrases that point here

  • «migrate terabytes of files from an on-premises NAS over NFS or SMB to Amazon S3, Amazon EFS, or Amazon FSx over the network»

    DataSync is the AWS online transfer service: an agent reads the on-premises storage over NFS or SMB and copies the data to S3, EFS, or FSx, with encryption, integrity verification, and bandwidth control.

    When not: If the network cannot move the volume within the required time, a physical transfer fits: AWS Snowball Edge is no longer offered to new customers and AWS suggests AWS Data Transfer Terminal or partner solutions. If on-premises applications must keep accessing the files already moved, AWS Storage Gateway fits.

  • «periodically sync on-premises data with AWS until the cutover day»

    DataSync tasks can be scheduled and, on each run, copy only what changed since the previous one; this keeps the destination up to date until the cutover.

    When not: If what must be kept in sync is a database with ongoing changes, the tool is AWS DMS with CDC; if it is entire servers, AWS Transform MGN (formerly AWS Application Migration Service).

  • «copy data between Amazon EFS, Amazon FSx, and Amazon S3, even across Regions, without writing scripts»

    Between AWS storage services in the same account, DataSync copies without an agent, within a Region or across Regions, with scheduling and verification.

    When not: To continuously copy objects from one bucket to another, S3 Replication fits better; to apply an action to millions of objects, S3 Batch Operations.

  • «copy data from another cloud provider to Amazon S3»

    DataSync supports storage from other clouds (for example, Google Cloud Storage or Azure) as a source and copies it to S3 on a schedule, with verification.

    When not: If the requirement is for external users or partners to upload files over SFTP, FTPS, or AS2, the answer is AWS Transfer Family: DataSync does not offer a file server for third parties.

  • «verify that the copied data is identical to the source»

    DataSync checks integrity during the copy and, optionally, compares the source and destination checksums at the end, in addition to producing reports for each run.

    When not: If you use tools such as rsync or the S3 CLI, you have to build that verification by hand; if the shipment is physical, the verification depends on that process (for example, Snowball Edge produces a report with the checksums of each file), not on DataSync.

Often paired with

  • Amazon S3
  • Amazon EFS
  • Amazon FSx
Study AWS DataSync →

Storage

AWS Storage Gateway

On the radar· The Storage Gateway hardware appliance is no longer offered

Service that connects a software appliance installed on premises to AWS cloud storage to integrate your on-premises environment with it. It offers several gateway types: Amazon S3 File Gateway, Amazon FSx File Gateway, Tape Gateway, and Volume Gateway. FSx File Gateway has not accepted new customers since October 28, 2024; existing customers can continue to use it.

Exam phrases that point here

  • «on-premises servers must store files over NFS or SMB and have them end up in Amazon S3»

    S3 File Gateway presents an S3 bucket as an NFS or SMB file share: each file is stored as an object and recently used data stays in a low-latency local cache.

    When not: If the goal is to move data to AWS once or on a schedule, with no continuous access from on-premises applications, AWS DataSync is usually a better fit. If there is not enough network connectivity for the data volume, use a physical transfer: the AWS Snow Family is no longer offered to new customers and AWS suggests AWS Data Transfer Terminal.

  • «replace physical backup tapes without changing the backup software»

    Tape Gateway appears to the backup software as an iSCSI tape library; virtual tapes are stored in S3 and archived in S3 Glacier or S3 Glacier Deep Archive.

    When not: If you do not need to keep the tape-based workflow, it may be simpler for backups to go directly to the cloud, without a virtual library. Retrieving an archived tape takes hours, so it is not suitable for immediate restores.

  • «iSCSI block volumes for on-premises servers, backed up to AWS with snapshots»

    Volume Gateway exposes iSCSI volumes to on-premises servers and takes snapshots that are stored as Amazon EBS snapshots, from which you can recover on premises or in Amazon EC2.

    When not: If the application works with files and not block disks, the option is a File Gateway. The mode (cached or stored) depends on whether all the data must be on premises.

  • «low latency for the entire data set on premises, with asynchronous backups in AWS»

    In Volume Gateway with stored volumes, the complete data stays in local storage and AWS receives asynchronous snapshots as an off-site copy.

    When not: If you want to reduce local storage and having the most frequently used data nearby is enough, choose cached volumes, where the primary data lives in AWS.

  • «low-latency local access to FSx for Windows File Server shares from remote offices»

    Amazon FSx File Gateway caches the data of an FSx for Windows File Server locally and syncs changes in the background, over SMB. Note: it has not accepted new customers since October 28, 2024; only those who already had it still use it.

    When not: For a new customer, AWS suggests connecting machines directly to FSx for Windows File Server over Direct Connect or VPN, relying on the SMB client's own cache. If the files must end up as objects in a bucket, the option is S3 File Gateway.

Often paired with

  • Amazon S3
Study AWS Storage Gateway →