Movatterモバイル変換


[0]ホーム

URL:


Choosing a task mode for your data transfer - AWS DataSync
DocumentationAWS DataSyncUser Guide
Understanding task mode differencesChoosing a task mode

Choosing a task mode for your data transfer

Your AWS DataSync task can run in one of the following modes:

Understanding task mode differences

The following information can help you determine which task mode to use.

CapabilityEnhanced mode behaviorBasic mode behavior
PerformanceDataSync lists, prepares, transfers, and verifies your data in parallel. Provides higher performance than Basic mode for most workloads (such as transferring large objects)DataSync prepares, transfers, and verifies your data sequentially. Performance is slower than Enhanced mode for most workloads
Number of items in a dataset that DataSync can work with per task execution

Virtually unlimited numbers of objects

Quotas apply

Data transfercounters andmetrics

More counters and metrics than Basic mode, such as the number of objects that DataSync finds at your source location and how many objects are prepared during each task execution

Less counters and metrics than Enhanced mode

Logging

Structured logs (JSON format)Unstructured logs

Supported locations

Currently for transfers between Amazon S3 locations, transfers between Azure Blob and Amazon S3 without an agent, and transfers between other clouds and Amazon S3 without an agent.

For transfers between all locations that DataSync supports

Data verification options

DataSync verifies only transferred dataDataSync verifies all data by default
Bandwidth limitsNot applicableSupported
CostFor more information, see theDataSync pricing pageFor more information, see theDataSync pricing page
Failure handling for unsupported object tagsFor cloud storage transfers to or from locations that don't support object tagging, task execution will fail immediately if theObjectTags option is unspeficied or set toPRESERVE.For cloud storage transfers to or from locations that don't support object tagging, task execution will run normally, but will report per-object failures for tagged objects if theObjectTags option is unspecified or set toPRESERVE.

Choosing a task mode

You can choose Enhanced mode only for transfers between Amazon S3 locations, transfers between Azure Blob and Amazon S3 without an agent, and transfers between other clouds and Amazon S3 without an agent. Otherwise, you must use Basic mode. For example, a transfer from an on-premisesNFS location to an S3 location requires Basic mode.

Your task options and performance might vary depending on the task mode you choose. Once you create your task, you can't change the task mode.

Required permissions

To create an Enhanced mode task, the IAM role that you're using DataSync with must have theiam:CreateServiceLinkedRole permission.

For your DataSync user permissions, consider usingAWSDataSyncFullAccess. This is an AWS managed policy that provides a user full access to DataSync and minimal access to its dependencies.

  1. Open the AWS DataSync console athttps://console.aws.amazon.com/datasync/.

  2. In the left navigation pane, expandData transfer, then chooseTasks, and then chooseCreate task.

  3. Configure your task's source and destination locations.

    For more information, seeWhere can I transfer my data with AWS DataSync?

  4. ForTask mode, choose one of the following options:

    • Enhanced

    • Basic

    For more information, seeUnderstanding task mode differences.

  5. While still on theConfigure settings page, choose other task options or use the default settings.

    You might be interested in some of the following options:

    When you're done, chooseNext.

  6. Review your task configuration, then chooseCreate task.

  1. In your AWS CLI settings, make sure that you're using one of the AWS Regions where you plan to transfer data.

  2. Copy the followingcreate-task command:

    aws datasync create-task \ --source-location-arn "arn:aws:datasync:us-east-1:account-id:location/location-id" \ --destination-location-arn "arn:aws:datasync:us-east-1:account-id:location/location-id" \ --task-mode "ENHANCED-or-BASIC"
  3. For--source-location-arn, specify the Amazon Resource Name (ARN) of your source location.

  4. For--destination-location-arn, specify the ARN of your destination location.

    If you're transferring across AWS Regions or accounts, make sure that the ARN includes the other Region or account ID.

  5. For--task-mode, specifyENHANCED orBASIC.

    For more information, seeUnderstanding task mode differences.

  6. Specify other task options as needed. You might be interested in some of the following options:

    For more options, seecreate-task. Here's an examplecreate-task command that specifies Enhanced mode and several other options:

    aws datasync create-task \ --source-location-arn "arn:aws:datasync:us-east-1:account-id:location/location-id" \ --destination-location-arn "arn:aws:datasync:us-east-1:account-id:location/location-id" \ --name "task-name" \ --task-mode "ENHANCED" \ --options TransferMode=CHANGED,VerifyMode=ONLY_FILES_TRANSFERRED,ObjectTags=PRESERVE,LogLevel=TRANSFER
  7. Run thecreate-task command.

    If the command is successful, you get a response that shows you the ARN of the task that you created. For example:

    { "TaskArn": "arn:aws:datasync:us-east-1:111222333444:task/task-08de6e6697796f026" }

You can specify the DataSync task mode by configuring theTaskMode parameter in theCreateTask operation.

Creating a task for transferring data
Choosing what data to transfer

[8]
ページ先頭

©2009-2025 Movatter.jp