Configuring AWS DataSync transfers with Amazon FSx for Windows File Server
To transfer data to or from your Amazon FSx for Windows File Server file system, you must create an AWS DataSync transfer location. DataSync can use this location as a source or destination for transferring data.
Accessing FSx for Windows File Server file systems
DataSync accesses your FSx for Windows File Server using the Server Message Block (SMB) protocol. DataSync authenticates with your file system's user name and password. See User to learn more about choosing a user that ensures sufficient permissions to files, folders, and metadata.
When you copy data between SMB shares and Amazon FSx or between Amazon FSx locations, the source and destination must belong to the same Microsoft Active Directory domain or have an Active Directory trust relationship between their domains.
DataSync mounts your file system from your virtual private cloud (VPC) using network interfaces. DataSync fully manages the creation, the use, and the deletion of these network interfaces on your behalf.
Note
VPCs that you use with DataSync must have default tenancy. VPCs with dedicated tenancy are not supported. For more information, see Work with VPCs.
Creating your FSx for Windows File Server transfer location
If you don't have an FSx for Windows File Server in your AWS Region, create one. For more information, see Getting started with Amazon FSx in the Amazon FSx for Windows File Server User Guide.
To create an FSx for Windows File Server location
Open the AWS DataSync console at https://console.aws.amazon.com/datasync/
. -
In the left navigation pane, expand Data transfer, then choose Locations and Create location.
-
For Location type, choose Amazon FSx.
You configure this location as a source or destination later.
-
For FSx file system, choose the FSx for Windows File Server file system that you want to use as a location.
-
For Share name, enter a mount path for your file system using forward slashes.
This specifies where DataSync reads or writes data (depending on if this is a source or destination location).
You can also include subdirectories (for example,
/path/to/directory
). -
For Security groups, choose up to five security groups that provide access to your file system's preferred subnet.
Note
If you choose a security group that doesn't allow connections from within itself, do one of the following:
-
Configure the security group to allow it to communicate within itself.
-
Choose a different security group that can communicate with the mount target's security group.
-
-
In the User settings section, enter the following information so that DataSync can access your file system:
User
The user that can mount the location and has the permissions to access the Amazon FSx server.
To ensure sufficient permissions to files, folders, and file metadata, we recommend that you make this user a member of the file system administrators group. If you're using AWS Directory Service for Microsoft Active Directory with FSx for Windows File Server, the user must be a member of the AWS Delegated FSx Administrators group. If you're using a self-managed Active Directory with your FSx for Windows File Server, the user must be a member of one of two groups. These are either Domain Admins group or the custom group that you specified for file system administration when you created your file system.
To set object ownership, DataSync requires the
SE_RESTORE_NAME
privilege, which is usually granted to members of the built-in Active Directory groups Backup Operators and Domain Admins. Providing a user to DataSync with this privilege also helps ensure sufficient permissions to files, folders, and file metadata except for NTFS system access control lists (SACLs).Additional privileges are required to copy SACLs. Specifically, this requires the Windows
SE_SECURITY_NAME
privilege, which is granted to members of the Domain Admins group. If your task will be configured to copy SACLs, make sure that the user has the required privileges. To learn more about configuring a task to copy SACLs, see Managing how AWS DataSync transfers files, objects, and metadata.When you copy data between SMB shares and Amazon FSx, or between two Amazon FSx locations, both the source and the destination must belong to the same Active Directory domain, or have an Active Directory trust relationship between their domains.
Password
The password of the user that can mount the location and has the permissions to access files and folders in the FSx for Windows File Server.
Domain
(Optional) The name of the domain the FSx for Windows File Server belongs to.
-
(Optional) Enter values for the Key and Value fields to tag the FSx for Windows File Server file system.
Tags help you manage, filter, and search for your AWS resources. We recommend creating at least a name tag for your location.
-
Choose Create location.