View a markdown version of this page

NAS file share restore - AWS Backup

NAS file share restore

You restore NAS file shares from recovery points that AWS Backup created with the backup appliance. You can restore a full share, or individual files and folders, and you can restore to the original file share or to another registered NAS file share.

Restore paths

AWS Backup supports two restore paths for NAS file shares:

  • Full volume or share restore. The appliance streams the share from the local vault over NFS or SMB to the original location or to a different registered NAS file share.

  • File and folder restore. You restore specific files or folders to the original location, to an alternate path on the same file share, or to a different registered file share. You provide exact paths for up to 5 items. There is no browse or search.

Restores are non-destructive

All NAS restores are non-destructive. AWS Backup never overwrites a file that already exists at the target. If a file with the same name already exists, AWS Backup skips it and leaves your current data intact.

As with backups, AWS Backup always skips files it cannot restore because of an error, such as a permission or space issue, and this behavior is not configurable. Affected files are skipped, and the job completes with issues. To get a list of the files that couldn't be restored and their errors, configure file-level error reports. See File-level error reports in Amazon S3.

File and folder attributes are preserved

AWS Backup preserves file and folder attributes on every restore, and this behavior is not configurable. For NFS, AWS Backup restores POSIX attributes (user ID, group ID, mode, and modification time). For SMB, AWS Backup restores NTFS ACLs. Permissions, hard-link siblings, and the original last-modified timestamp are restored.

Hard links and symbolic links are preserved on a full volume or share restore. They are not preserved on a file and folder restore; in that case, each hard-linked file is restored as an independent copy.

Restore to an alternate NAS file share

An alternate target must be a registered, reachable NAS file share. The restore writes to the target using that target's registered protocol and credentials, and the target does not need to match the source vendor or model. For each restore, you also specify whether unencrypted in-flight data transfer is allowed; if you don't allow it and the transfer can't be encrypted (NFS, or SMB 2), the restore fails.

When you restore files and folders, the default alternate path is /tmp/recover-files-<timestamp>/, and AWS Backup creates missing folders automatically.

To restore a cloud-stored recovery point to an on-premises NAS target, first copy the recovery point to a registered appliance's local vault, and then restore from the local vault. A restore directly to a NAS device without the appliance is not supported.

Restoring to Amazon EFS or Amazon FSx

As a workaround for restoring NAS data to file storage, you can restore to an alternate registered NAS source and copy the data.