Configuring Amazon DataSync transfers with Amazon FSx for Windows File Server - Amazon DataSync
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Configuring Amazon 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 Amazon 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 connects to your FSx for Windows File Server file system with the Server Message Block (SMB) protocol and mounts it from your virtual private cloud (VPC) using network interfaces.

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.

Required permissions

You must provide DataSync a user with the necessary rights to mount and access your FSx for Windows File Server files, folders, and file metadata.

We recommend that this user belong to a Microsoft Active Directory group for administering your file system. The specifics of this group depends on your Active Directory setup:

  • If you're using Amazon Directory Service for Microsoft Active Directory with FSx for Windows File Server, the user must be a member of the Amazon Delegated FSx Administrators group.

  • If you're using self-managed Active Directory with FSx for Windows File Server, the user must be a member of one of two groups:

    • The Domain Admins group, which is the default delegated administrators group.

    • A custom delegated administrators group with user rights that allow DataSync to copy object ownership permissions and Windows access control lists (ACLs).

      Important

      You can't change the delegated administrators group after the file system has been deployed. You must either redeploy the file system or restore it from a backup to use the custom delegated administrator group with the following user rights that DataSync needs to copy metadata.

      User right Description

      Restore files and directories (SE_RESTORE_NAME)

      Allows DataSync to copy object ownership, permissions, file metadata, and NTFS discretionary access lists (DACLs).

      This user right is usually granted to members of the Domain Admins and Backup Operators groups (both of which are default Active Directory groups).

      Manage auditing and security log (SE_SECURITY_NAME)

      Allows DataSync to copy NTFS system access control lists (SACLs).

      This user right is usually granted to members of the Domain Admins group.

  • If you want to copy Windows ACLs and are transferring between an SMB file server and FSx for Windows File Server file system or between FSx for Windows File Server file systems, the users that you provide DataSync must belong to the same Active Directory domain or have an Active Directory trust relationship between their domains.

Warning

Your FSx for Windows File Server file system's SYSTEM user must have Full control permissions on all folders in your file system. Do not change the NTFS ACL permissions for this user on your folders. If you do, DataSync can change your file system's permissions in a way that makes your file share inaccessible and prevents file system backups from being usable. For more information on file- and folder-level access, see the Amazon FSx for Windows File Server User Guide.

Required authentication protocols

Your FSx for Windows File Server must use NTLM authentication for DataSync to access it. DataSync can't access a file server that uses Kerberos authentication.

DFS Namespaces

DataSync doesn't support Microsoft Distributed File System (DFS) Namespaces. We recommend specifying an underlying file server or share instead when creating your DataSync location.

For more information, see Grouping multiple file systems with DFS Namespaces in the Amazon FSx for Windows File Server User Guide.

Creating your FSx for Windows File Server transfer location

Before you begin, make sure that you have an existing FSx for Windows File Server in your Amazon Web Services Region. 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 by using the DataSync console
  1. Open the Amazon DataSync console at https://console.amazonaws.cn/datasync/.

  2. In the left navigation pane, expand Data transfer, then choose Locations and Create location.

  3. For Location type, choose Amazon FSx.

  4. For FSx file system, choose the FSx for Windows File Server file system that you want to use as a location.

  5. For Share name, enter a mount path for your FSx for Windows File Server using forward slashes.

    This specifies the path 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).

  6. 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.

  7. For User, enter the name of a user that can access your FSx for Windows File Server.

    For more information, see Required permissions.

  8. For Password, enter password of the user name.

  9. (Optional) For Domain, enter the name of the Windows domain that your FSx for Windows File Server file system belongs to.

    If you have multiple Active Directory domains in your environment, configuring this setting makes sure that DataSync connects to the right file system.

  10. (Optional) Enter values for the Key and Value fields to tag the FSx for Windows File Server.

    Tags help you manage, filter, and search for your Amazon resources. We recommend creating at least a name tag for your location.

  11. Choose Create location.