NAS file share backups
AWS Backup can protect on-premises network-attached storage (NAS) file shares through a backup appliance deployed in your environment. You manage NAS file share protection with the same AWS Backup console, AWS CLI, SDK, backup plans, and vaults that you use for other resources.
Supported NAS file shares and protocols
AWS Backup protects Generic NAS file shares. A Generic NAS file share is any file share that you reach over a standard file-access protocol, with no vendor-specific integration required.
AWS Backup supports the following protocols:
NFS v3
NFS v4.1
SMB 2
SMB 3
You choose the NFS version when you register the share. SMB negotiates the dialect (2 or 3) for each session, so you do not choose the SMB version at registration.
If a device exposes the same data over both NFS and SMB, you must register it separately for each protocol. A registered mount path maps to a single share. The appliance does not discover sub-shares beneath a registered path.
For SMB DFS namespaces, register the namespace root and let the appliance follow referrals. Do not register the individual shares separately, because this creates duplicate backups.
Prerequisites
Before you back up a NAS file share, you must meet the following prerequisites:
-
A backup appliance deployed on-premises or in the cloud. AWS never connects into your environment, and you don't open inbound ports from the internet. For the connections inside your network, see Network requirements and ports.
-
Network connectivity from the appliance to the NAS server and to AWS. For the ports to open, see Network requirements and ports.
-
For NFS shares, an IP allowlist on the NAS server that includes all appliance cluster node IP addresses or subnet. NFS shares authenticate by IP allowlist and do not use credentials.
-
For SMB shares, an AWS Secrets Manager secret ARN that holds the user name and password. For a domain account, specify the user name as
fully_qualified_domain_name\username. Tag the secret with the keyaws-backup-external-applianceand the valuetrue. -
Read access for the appliance on the share. Backups are read-only.
Register a NAS file share
You register a NAS file share from the console, AWS CLI, or SDK. Select Generic NAS and provide the mount path for the protocol:
-
For NFS, enter
Hostname_or_IP:/Volumeand select NFS v3 or NFS v4.1. -
For SMB, enter
\\Hostname_or_IP\SharePathand provide the Secrets Manager secret ARN.
The mount path and protocol are fixed at registration. To point a resource provider at a different path or protocol, unregister the resource provider and register it again. Registering again resets the resource identifier and the backup baseline.
After registration, you can update the following resource provider settings: the SMB credentials (by replacing the secret), the name, the in-flight encryption requirement, and resource tags. AWS Backup re-syncs resource provider metadata on a schedule, and you can start a sync on demand.
How NAS backups work
NAS backups are agentless. The appliance mounts the share over NFS or SMB and reads the files directly.
AWS Backup uses Change File Tracking to back up NAS file shares. Change File Tracking scans the file system over the mount to detect changed files, and it runs incremental-forever:
The first backup is a full backup.
Every later backup is incremental and transfers only changed data.
Each recovery point is independently restorable and does not depend on a chain of earlier recovery points.
Captured data is chunked and deduplicated within the appliance. Only changed chunks transfer to the cloud, and the appliance compresses them in transit.
There is no point-in-time recovery for file shares, because there are no transaction logs. Your recovery point objective is set by the frequency in your backup plan.
If a backup fails partway through, AWS Backup does not commit a recovery point for that run. The next scheduled backup runs a fresh incremental from the last successful recovery point. Backups never modify the NAS, because the appliance reads the share read-only.
Consistency of NAS backups
Generic NAS backups are neither application-consistent nor crash-consistent. There is no vendor snapshot to freeze the share at a single point in time, so files are captured in the state they are in when they are read. Different files in the same recovery point can reflect different points in time. We recommend that you schedule NAS backups during low-activity windows.
Skipping files on error
AWS Backup always skips individual files that it cannot capture, and this behavior is not configurable. A backup job does not fail because individual files cannot be read. Instead, AWS Backup skips the affected files and the job completes with issues.
A complete loss of connectivity to the device is different: if the appliance loses its connection to the NAS device, the whole job fails.
To get a list of the skipped files and their errors, configure file-level error reports. See File-level error reports in Amazon S3.
Require in-flight encryption
Require in-flight encryption is a resource target setting (in the API, it is the AllowUnencryptedDataTransfer setting, where false requires encryption). You can edit it after registration, and AWS Backup evaluates it for each job. When the flag is enabled and the transfer between the appliance and the NAS cannot be encrypted, the job fails. The flag enforces encryption; it does not establish encryption on its own.
Protocol support for in-flight encryption:
SMB 3 provides native AES in-flight encryption and can satisfy the enforcement flag.
SMB 2 cannot provide in-flight encryption.
NFS v3 and NFS v4.1 run unencrypted. Encrypted NFS transfer requires Kerberos krb5p, which is not currently supported.
Enabling the enforcement flag on any NFS share or on SMB 2 causes the job to fail. When the flag is disabled, the appliance still negotiates the most secure protocol available (SMB 3 if available, otherwise SMB 2 without failing).
If you require encrypted in-flight transfer, use SMB 3. For NFS, allow unencrypted transfer and isolate NFS traffic on trusted network segments.
Backup destinations and copy
You can store NAS recovery points in a local vault on the appliance for fast recovery, and in the cloud in a backup vault or a logically air-gapped vault.
AWS Backup supports the following copy options for NAS recovery points:
Copy from local to cloud.
Cross-Region copy.
Cross-account copy.
Copy from cloud to local, which you use to restore a cloud recovery point to an on-premises target.
NAS backups support logically air-gapped vaults, vault lock, legal holds, AWS Backup Audit Manager, cross-Region and cross-account copy, and cross-account monitoring.
Performance considerations
Keep the following performance factors in mind:
Change File Tracking scans the whole file system, which adds overhead for shares with millions of files.
The initial full backup is I/O-bound for shares with many small files.
Throughput is bounded by the network bandwidth between the appliance and the NAS.
Encrypted transfer with SMB 3 AES adds CPU overhead.