Prepare NAS
Protect on-premises file shares by registering a NAS file share. AWS Backup supports generic NAS, any NFS or SMB share, using agentless backups.
Supported protocols
AWS Backup supports NFS v3, NFS v4.1, SMB 2, and SMB 3. Register a share separately for each protocol you want to protect. You choose the NFS version at registration. The appliance negotiates the SMB dialect for each session.
If you use SMB DFS namespaces, register the namespace root and let the appliance follow referrals. Do not register individual shares separately, which causes duplicate backups.
Registration inputs and authentication
Provide the mount path for the share:
-
NFS:
Hostname_or_IP:/Volume, and select NFS v3 or NFS v4.1. -
SMB:
\\Hostname_or_IP\SharePath, and the ARN of an AWS Secrets Manager secret that holds the username and password. For domain accounts, use the formfully_qualified_domain_name\username.
We recommend that you register shares by FQDN rather than IP address. If the NAS server's IP address changes, update DNS, and the share keeps its ARN and backup chain.
Authentication differs by protocol:
-
NFS uses IP allowlisting. Allowlist all of the appliance cluster node IP addresses (or the subnet) on the NAS server. No credentials are used.
-
SMB uses a Secrets Manager secret. The appliance needs read-only access for backup and read/write access for restore. Tag the secret with the key
aws-backup-external-applianceand the valuetrue, or the appliance can't read it. If the secret is in another account, its resource policy and the policy of the AWS KMS key that encrypts it must also allow the appliance IAM role. For details, see Create the appliance IAM role.
For the ports to open between the appliance, your NAS servers, and AWS, see Network requirements and ports.
In-flight encryption prerequisites
Require in-flight encryption (AllowUnencryptedDataTransfer in the API, where false requires encryption) is a resource target setting, set in TargetConfiguration.NasFilesystem at registration. When you set AllowUnencryptedDataTransfer to false, a backup job fails if the appliance-to-NAS transfer cannot be encrypted. The setting enforces encryption. It does not establish it.
Only SMB 3 provides native in-flight encryption (AES) and can satisfy enforcement. SMB 2 cannot. NFS v3 and v4.1 run unencrypted, because encrypted NFS requires Kerberos krb5p, which AWS Backup does not currently support. If you set AllowUnencryptedDataTransfer to false for an NFS or SMB 2 share, the job fails.
If you require encrypted in-flight transfer, use SMB 3. For NFS, set AllowUnencryptedDataTransfer to true and isolate traffic on a trusted network segment.
Repointing a share
The mount path and protocol are fixed at registration. To repoint a share, unregister it and register it again, which resets its ARN and baseline.