Skip to content
Visual explainer 3h to learn 4 steps

Storage Gateway, DataSync, Snow Family & AWS Backup

Choose a migration or hybrid storage service for a data volume and timeline.

By Invicly Tech, , in AWS Solutions Architect – Associate. About 13 minutes to read.

Topic 20 of 34

In short

Storage Gateway lets on-premises apps use AWS storage through file, volume or tape interfaces. DataSync moves large datasets online quickly and securely, while Snowball Edge devices ship data physically when the network is too slow. AWS Backup centralizes backup policies across services and accounts.

Explained simply

Moving data into AWS is often the first big job of a migration. The right tool depends on three things: how much data there is, how fast your network link is, and whether the move happens once or keeps going. A 2 TB file share and a 2 PB video archive need very different tools.

DataSync is the online mover. You install a small agent (a virtual machine) next to your storage, point it at a source such as an NFS or SMB share, and it copies files to S3, EFS or FSx over the network. It checks the data, keeps file metadata, and can run again on a schedule to send only what changed.

When the network is too slow, you ship the data instead. AWS Snowball Edge is a rugged storage device that AWS sends to you. You copy data onto it locally, ship it back, and AWS loads it into S3. It is like posting a box of hard drives, but encrypted and tracked.

Storage Gateway is different: it is not for moving data once, but for apps that stay on premises and keep using AWS storage in the background. AWS Backup is the control panel for backups: one policy that schedules, keeps and copies backups of many AWS services across accounts and Regions.

Press Play on a diagram to walk through it one step at a time.

CompareMoving data to AWS
DataSync
  • Online transfer over network
  • NFS, SMB, HDFS, object stores
  • Scheduled, verified copies
  • One-time or recurring
Snowball Edge
  • Offline rugged device
  • Tens of TB per device
  • When network takes weeks
  • Edge compute option
Storage Gateway
  • Ongoing hybrid access
  • Local cache on-premises
  • Data lands in S3 or EBS snapshots
  • Not a one-time move
MapStorage Gateway types
Storage Gateway
  • S3 File Gateway
    • NFS or SMB shares
    • Files stored as S3 objects
  • Volume Gateway
    • iSCSI block volumes
    • Cached or stored mode
    • EBS snapshots
  • Tape Gateway
    • Virtual tape library
    • Archives to Glacier classes
MapWhich data service fits the job?
What do you need?
  • One-time move, network is fast enough
    • DataSync over internet or Direct Connect
  • One-time move, network too slow
    • Snowball Edge devices
  • Apps stay on premises, data in AWS
    • S3 File Gateway for files
    • Volume Gateway for iSCSI
    • Tape Gateway for backups
  • Regular sync between storage systems
    • Scheduled DataSync tasks
  • Protect copies of AWS resources
    • AWS Backup plans and vaults
FlowA typical DataSync migration
  1. 1
    Deploy agent

    VM next to the source storage

  2. 2
    Create locations

    Source share and destination bucket

  3. 3
    First full copy

    Runs for days if the data is large

  4. 4
    Incremental runs

    Nightly, only changed files

  5. 5
    Freeze and final run

    Copies the last few changes

  6. 6
    Cut over

    Point apps at the new storage

In depth

Do the network math first

A 1 Gbps link moves at most about 125 MB per second, which is roughly 10.8 TB per day. Real links rarely run at full speed for days, and the business still needs some bandwidth, so plan on 60 to 80 percent. At 80 percent, 1 Gbps moves about 8.6 TB per day and 100 Mbps moves under 1 TB per day.

Now divide. 100 TB over 1 Gbps takes about 12 days, which is fine for DataSync. 500 TB over 100 Mbps takes well over a year, so offline transfer wins. A common rule of thumb: if the online copy would take more than about a week, look at offline devices, or at a faster link such as Direct Connect if you will move data regularly.

CompareDays to move 100 TB at 80 percent of the link
100 Mbps
  • About 0.86 TB per day
  • About 116 days
  • Ship devices instead
1 Gbps
  • About 8.6 TB per day
  • About 12 days
  • DataSync works well
10 Gbps
  • About 86 TB per day
  • About 1.2 days
  • DataSync, several tasks in parallel

Storage Gateway modes in detail

Storage Gateway runs as a VM on premises (VMware, Hyper-V or KVM) or on EC2, and uses local disks as a cache. S3 File Gateway offers NFS or SMB shares. Each file becomes one S3 object that AWS services can also use, and recently used files are served from the local cache at LAN speed.

Volume Gateway offers iSCSI block volumes. In cached mode the full data lives in AWS and only hot data stays local, which saves disk space on premises. In stored mode the full data stays local for low latency and is backed up to AWS as point-in-time EBS snapshots, which you can restore as EBS volumes in AWS. Tape Gateway pretends to be a tape library, so existing backup software writes virtual tapes that are archived to S3 Glacier Flexible Retrieval or Deep Archive.

SequenceS3 File Gateway read and write path
On-premises app
File Gateway cache
Amazon S3
  1. 1Write report.pdf over SMB
    On-premises app to File Gateway cache: Write report.pdf over SMB
  2. 2Acknowledged once in local cache
    File Gateway cache to On-premises app: Acknowledged once in local cache
  3. 3Upload as an S3 object in the background
    File Gateway cache to Amazon S3: Upload as an S3 object in the background
  4. 4Read report.pdf later
    On-premises app to File Gateway cache: Read report.pdf later
  5. 5Served from cache if still there
    File Gateway cache to On-premises app: Served from cache if still there
  6. 6On a cache miss, fetch the object
    File Gateway cache to Amazon S3: On a cache miss, fetch the object

DataSync under the hood

A DataSync task links a source location to a destination location. On premises, an agent VM reads the source (NFS, SMB, HDFS or self-managed object storage) and sends the data over TLS to the DataSync service, which writes it to S3, EFS or FSx. Between AWS storage services, for example EFS to S3 or across Regions, no agent is needed.

Each run compares both sides, copies only new or changed files, keeps timestamps and permissions where the destination supports them, and verifies data integrity. You can filter paths, cap bandwidth, and schedule runs. A typical migration is one large first copy, then small incremental runs, then a short write freeze while a final run copies the last changes before cutover. Traffic can go over the internet, Direct Connect, or a VPC endpoint for private transfer.

Offline transfer with Snowball Edge

You create a job in the console, AWS ships a Snowball Edge device, and you copy data onto it over your local network using its S3-compatible interface or an NFS mount. Data is encrypted with keys managed in KMS that are never stored on the device, and an E Ink shipping label updates itself for the return trip. When AWS receives the device, it imports the data into your S3 bucket and securely erases the device. For larger jobs you order several devices in parallel.

Snowball Edge also offers compute for places with poor connectivity, such as ships or field sites. AWS has retired the small Snowcone and the truck-sized Snowmobile, and the Snow options on offer keep changing, so check the current list before you plan. For the exam, the idea is what counts: when the network math says weeks or months, ship devices.

AWS Backup: plans, vaults and locks

A backup plan holds rules: how often to back up (for example daily at 03:00 UTC), how long to keep each recovery point, when to move it to cheaper cold storage for services that support it, and whether to copy it to another Region or account. You assign resources by tag, such as backup=daily, so a new database is protected as soon as it is tagged.

Recovery points live in backup vaults, each encrypted with a KMS key and guarded by a vault access policy. Vault Lock makes them WORM (write once, read many). In governance mode, users with special permissions can still change the lock. In compliance mode, after a cooling-off period of at least 3 days, nobody, not even the root user, can delete backups early. With AWS Organizations you can push backup policies to every account.

  • Backup plan: schedule, retention, cold storage, copies
  • Resource assignment by tag or by ARN
  • Vault Lock compliance mode: immutable after the cooling-off period
  • Restore testing and Backup Audit Manager prove backups really work

Learn it in 4 short steps

About 45m each. Track them with a timer in your plan.

  1. 1
    Compare Storage Gateway types~45m
  2. 2
    Move data online with DataSync~45m
  3. 3
    Pick a Snow Family device for offline transfer~45m
  4. 4
    Centralise backups with AWS Backup~45m

Key points

  • If transfer over the network would take more than about a week, consider Snowball Edge.
  • DataSync suits recurring or one-time online migrations with encryption and integrity checks.
  • Tape Gateway replaces physical tapes without changing backup software.
  • AWS Backup uses backup plans and vaults, including cross-Region and cross-account copies.

Key terms

Tap a card to flip it. 0/5 known

Examples

Migrating a 60 TB NAS to S3 in a month

An office has a 1 Gbps link and can give the migration about half of it. Step 1, the math: 125 MB/s times 50 percent is about 62.5 MB/s, or about 5.4 TB per day, so 60 TB takes about 11 days. That fits a month, so DataSync is the choice. Step 2: deploy the agent, create the NFS source and S3 destination locations. Step 3: create a task with a bandwidth cap of 62.5 MB/s (62,500,000 bytes per second), verification of transferred files, and a nightly schedule for incremental runs until cutover.

bash
aws datasync create-task --name nas-to-s3 \
  --source-location-arn arn:aws:datasync:us-east-1:111122223333:location/loc-0a1b2c3d4e5f67890 \
  --destination-location-arn arn:aws:datasync:us-east-1:111122223333:location/loc-0f9e8d7c6b5a43210 \
  --options VerifyMode=ONLY_FILES_TRANSFERRED,BytesPerSecond=62500000 \
  --schedule 'ScheduleExpression=cron(0 20 * * ? *)'

# Start the first full copy now instead of waiting for the schedule
aws datasync start-task-execution --task-arn TASK_ARN

Daily backups for tagged resources, copied to a second Region

Every production database and volume tagged backup=daily must be backed up each night, kept 35 days, and copied to eu-west-1 for disaster recovery. Step 1: create a vault in each Region. Step 2: create the plan below with aws backup create-backup-plan --backup-plan file://plan.json. Step 3: create a backup selection that matches the tag backup=daily, using the AWSBackupDefaultServiceRole. New resources with the tag are picked up automatically, with no change to the plan.

json
{
  "BackupPlanName": "daily-35d",
  "Rules": [{
    "RuleName": "daily",
    "TargetBackupVaultName": "prod-vault",
    "ScheduleExpression": "cron(0 3 * * ? *)",
    "Lifecycle": {"DeleteAfterDays": 35},
    "CopyActions": [{
      "DestinationBackupVaultArn": "arn:aws:backup:eu-west-1:111122223333:backup-vault:dr-vault",
      "Lifecycle": {"DeleteAfterDays": 35}
    }]
  }]
}

Quick reference

  • 1 Gbps is about 10.8 TB per day at full speed; plan for 60 to 80 percent of that
  • Online copy longer than about a week? Consider Snowball Edge devices
  • DataSync needs an agent on premises; none is needed between AWS storage services
  • S3 File Gateway: NFS or SMB on premises, each file becomes one S3 object
  • Volume Gateway cached: data in AWS, hot data local. Stored: data local, snapshots to AWS
  • Tape Gateway: virtual tapes for existing backup software, archived to Glacier classes
  • Vault Lock compliance mode: nobody can delete backups early after the cooling-off period
  • Assign resources to backup plans by tag so new resources are protected automatically

Common mistakes

  • Choosing Storage Gateway for a one-time bulk migration; DataSync or Snowball fit better.
  • Ignoring the slow network math when picking an online transfer.

Quick quiz

Pick an answer to see if you're right and why.

Question 1

1An office wants to keep using an SMB share on premises while the files are stored durably in S3. Which service?

Question 2

2You must copy 40 TB from an NFS server to EFS within a week over a 10 Gbps Direct Connect link. What fits best?

Question 3

3Which Volume Gateway mode keeps the full dataset on premises and sends snapshots to AWS?

Question 4

4Regulators require that backups cannot be deleted by anyone, even administrators, for 7 years. What do you configure?

Question 5

5Roughly how much data can a 1 Gbps link move in one day at full speed?

0/5 answered

Practice exercises

Try each one yourself first. Use the hint if you get stuck, then compare with the solution.

  1. Exercise 1easy

    Work out how many days it takes to move 250 TB over a 500 Mbps link at 70 percent use, and decide between online and offline transfer.

  2. Exercise 2medium

    Create a DataSync task that copies an S3 prefix to an EFS file system in the same Region, with no agent, and check that it succeeds.

  3. Exercise 3hard

    Set up AWS Backup so every resource tagged backup=daily is backed up nightly, kept 35 days and copied to a second Region. Prove it works with an on-demand backup job.

Check yourself

Answer in your head, reveal, then be honest with yourself.

Feel confident about this topic?

Frequently asked questions

What is the difference between DataSync and Storage Gateway?
DataSync moves data from one place to another, once or on a schedule. Storage Gateway gives on-premises apps ongoing access to AWS storage through file, volume or tape interfaces with a local cache.
Is the Snow Family still available?
AWS has retired Snowmobile and Snowcone, and the Snowball options on offer have changed over time, so check the current AWS Snow page for your Region. The exam still expects an offline device when the network is far too slow.
Does AWS Backup replace EBS snapshots and RDS backups?
It uses the same native snapshots underneath, but manages them from one place with plans, tags, vaults, cross-Region copies and audit reports. That central view is much easier to prove to auditors.
Can DataSync copy between two S3 buckets?
Yes. DataSync can copy between AWS storage services, including S3 to S3 across Regions, without an agent. For a one-time copy inside S3, Batch Replication or S3 Batch Operations are also options.

Go deeper

ShareXLinkedInWhatsApp