Working with backups
With FSx for ONTAP, you can take automatic daily backups and user-initiated backups of the volumes on your file system. Amazon FSx backups are per volume; that is, each backup contains only the data in a particular volume. Amazon FSx backups are highly durable and incremental.
Amazon FSx backups are incremental, whether they are generated using the automatic daily backup or the user-initiated backup feature. This means that only the data on the volume that has changed after your most recent backup is saved. This minimizes the time required to create the backup and saves on storage costs by not duplicating data. When you delete a backup, only the data unique to that backup is removed. Each Amazon FSx backup contains all of the information that is needed to create a new volume from the backup, effectively restoring a point-in-time snapshot of the file system volume.
Creating regular backups for your volumes is a best practice that helps support your backup retention and compliance needs. Working with Amazon FSx backups is easy, whether it's creating backups, restoring from a backup, or deleting a backup.
Amazon FSx supports backing up ONTAP FlexVol volumes with an OntapVolumeType of RW
(read/write). In order to back up your data, your volume and your file system's primary SSD storage tier must
both also have enough available storage capacity to take a backup snapshot. For the backup
snapshot to be taken, the additional capacity consumed by the volume snapshot cannot cause the
volume to exceed 98% utilization. It is best practice to not exceed 80% utilization of your
volume's primary SSD storage tier.
Note
Amazon FSx does not currently support backing up DP
(data-protection) volumes,
LS
(load-sharing) volumes, or FlexGroup volumes.
Topics
How backups work
Amazon FSx backups use snapshots – point-in-time, read-only images of your volumes – to maintain incrementality between backups. Each time a backup is taken, Amazon FSx first takes a snapshot of your volume (the snapshot is stored in your volume, and consumes space on your SSD storage tier). Amazon FSx then compares this snapshot to the previous backup snapshot (if one exists) and copies only the changed data into your backup. If no prior backup snapshot exists, then the entire contents of the most recent backup snapshot is copied into your backup. After the latest backup snapshot is successfully taken, Amazon FSx deletes the previous backup snapshot. The snapshot used for the latest backup remains in your volume until the next backup is taken, when the process repeats.
Working with automatic daily backups
By default, Amazon FSx takes an automatic daily backup of your file system's volumes. These automatic daily backups occur during the daily backup window that was established when you created the file system. At some point during the daily backup window, storage I/O might be suspended briefly while the backup process initializes (typically for less than a few seconds). When you choose your daily backup window, we recommend that you choose a convenient time of the day. This time ideally is outside of the normal operating hours for the applications that use your volumes.
Automatic daily backups are kept for a certain period of time, known as a retention period. When you create a file system in the Amazon FSx console, the default automatic daily backup retention period is 30 days. The default retention period is different in the Amazon FSx API and CLI. You can set the retention period for automatic backups to be between 1–90 days.
Note
While automatic daily backups have a maximum retention period of 90 days, user-initiated backups (including backups taken with AWS Backup) are kept forever, unless you or the AWS Backup service deletes them. For more information about user-initiated backups, see Working with user-initiated backups.
Automatic daily backups are deleted when the volume is deleted.
Both the daily backup window and retention period are system-level settings that apply to
all the volumes on your file system. You can use the Amazon FSx console, AWS CLI, or one of the AWS
SDKs to change the backup window and backup retention period for your file systems. Use the
UpdateFileSystem
API operation or the update-file-system
CLI command. If you set the AutomaticBackupRetentionDays
property to 0 with the Amazon FSx API or
AWS CLI, automatic daily backups will be disabled. The following procedure details
how to disable automatic daily backups in the Amazon FSx console.
To disable automatic daily backups in the Amazon FSx console
Open the Amazon FSx console at https://console.aws.amazon.com/fsx/
. To display the file system details page, in the left navigation pane, choose File systems, and then choose the FSx for ONTAP file system that you want to update.
Choose the Backups tab in the second panel on the page.
Choose Update.
Choose No.
Select the check box to acknowledge that automatic daily backups will be disabled.
Choose Save to save your changes.
Working with user-initiated backups
With Amazon FSx, you can manually take backups of your file system's volumes at any time. You can do so using the Amazon FSx console, API, or the AWS Command Line Interface (AWS CLI). Your user-initiated backups never expire, and they are available for as long as you want to keep them. User-initiated backups are retained even after you delete the volume or the file system the backups were taken on. You can delete user-initiated backups only by using the Amazon FSx console, API, or CLI. They are never automatically deleted by Amazon FSx. For more information, see Deleting backups.
Creating user-initiated backups
The following procedure guides you through how to create a user-initiated backup in the Amazon FSx console for a volume of an existing file system.
To create a user-initiated backup of a volume
Open the Amazon FSx console at https://console.aws.amazon.com/fsx/
. -
Navigate to File systems and choose the ONTAP file system that you want to back up a volume for.
-
Choose the Volumes tab.
-
Choose the volume you want to back up.
-
From Actions, choose Create backup.
-
In the Create backup dialog box that opens, provide a name for your backup. Backup names can be a maximum of 256 Unicode characters, including letters, white space, numbers, and the special characters . + - = _ : /
-
Choose Create backup.
You have now created a backup of one of your file system's volumes. You can find a table of all your backups in the Amazon FSx console by choosing Backups in the left side navigation. You can search for the name you gave your backup, and the table filters to only show matching results.
When you create a user-initiated backup as this procedure described, it has the type
USER_INITIATED
, and it has the CREATING
status until it is fully
available.
Copying tags to backups
When you create or update a volume in the Amazon FSx API or AWS CLI, you can enable
CopyTagsToBackups
to automatically copy any tags from your volumes to backups.
Note
If you specify tags while creating a user-initiated backup (including the name tag when you
create a backup using the Amazon FSx console), tags are not copied from the
volume even if you've enabled CopyTagsToBackups
.
For more information about tagging, see Tag your Amazon FSx resources. For more information about enabling
CopyTagsToBackups
, see To create a volume (CLI) and To update a volume configuration
(CLI) in the Amazon FSx for NetApp ONTAP User Guide or CreateVolume
and UpdateVolume in the Amazon FSx for NetApp ONTAP API Reference.
Using AWS Backup with Amazon FSx
AWS Backup is a simple and cost-effective way to protect your data by backing up your Amazon FSx for NetApp ONTAP volumes. AWS Backup is a unified backup service designed to simplify the creation, restoration, and deletion of backups, while providing improved reporting and auditing. AWS Backup makes it easier to develop a centralized backup strategy for legal, regulatory, and professional compliance. AWS Backup also makes protecting your AWS storage volumes, databases, and file systems simpler by providing a central place where you can do the following:
-
Configure and audit the AWS resources that you want to back up.
-
Automate backup scheduling.
-
Set retention policies.
-
Monitor all recent backup, copy, and restore activity.
AWS Backup uses the built-in backup functionality of Amazon FSx. Backups taken from the AWS Backup console have the same level of file system consistency and performance, are incremental relative to any other Amazon FSx backups you take of your volume (user-initiated or automatic), and offer the same restore options as backups taken through the Amazon FSx console. If you use AWS Backup to manage these backups, you gain additional functionality, such as the ability to create scheduled backups as frequently as every hour. In addition, AWS Backup retains your immutable backups even after the source file system is deleted. This protects against accidental or malicious deletion.
Backups taken by AWS Backup are considered user-initiated backups, and they count toward the user-initiated backup quota for Amazon FSx. You can view and restore backups taken by AWS Backup in the Amazon FSx console, CLI, and API. However, you can't delete backups taken by AWS Backup in the Amazon FSx console, CLI, or API. For more information about how to use AWS Backup to back up your Amazon FSx file systems and how to delete backups, see Working with Amazon FSx File Systems in the AWS Backup Developer Guide.
Restoring backups
You can use an available backup to create a new volume, effectively restoring a point-in-time snapshot of a volume. You can restore a backup using the console, AWS CLI, or one of the AWS SDKs. When you restore a backup, Amazon FSx must download the data in your backup onto the file system before the volume can be brought online. This process utilizes the unused portion of your file system's throughput capacity, and can take from a few minutes to a few hours depending on the size of your backup and level of unused throughput capacity on your file system.
FSx for ONTAP initially downloads all the data from the backup onto the volume's SSD tier while the volume is in the RESTORING phase. This happens regardless of the volume's tiering policy. Therefore you need to ensure that the volume has enough SSD storage capacity for all the data in the volume that you're restoring.
The following procedure guides you through how to restore a backup using the console to create a new volume.
To restore Amazon FSx for NetApp ONTAP volumes:
Open the AWS Backup console at https://console.aws.amazon.com/backup
. -
In the navigation pane, choose Protected resources, and then choose the Amazon FSx resource ID that you want to restore.
-
On the Resource details page, a list of recovery points for the selected resource ID is shown. Choose the recovery point ID of the resource.
-
In the upper-right corner of the pane, choose Restore to open the Restore page.
The first section, File system details, displays the recovery point ID, the file system ID, and the file system type.
-
Under Restore options, there are several selections. First, choose the File system from the dropdown menu.
-
Next, choose the preferred Storage virtual machine from the dropdown menu.
-
Enter a name for your volume.
-
Specify the Junction Path, which is location within your file system where your volume will be mounted.
-
Specify the Volume size in megabytes (MB) that you are creating.
-
(Optional) You can choose to Enable storage efficiency by checking the box. This will allow deduplication, compression, and compaction.
-
In the Capacity pool tiering policy dropdown menu, select the tiering preference.
-
In the Restore permissions, choose the IAM role that AWS Backup will use to restore backups.
-
Verify all your entries, and choose Restore Backup.
Deleting backups
Deleting a backup is a permanent, unrecoverable action. Any data in a deleted backup is also deleted. Do not delete a backup unless you're sure you won't need that backup again in the future. You can't delete backups taken by AWS Backup, which have type AWS Backup, in the Amazon FSx console, CLI, or API. For information on deleting backups taken with AWS Backup, see Deleting Backups in the AWS Backup Developer Guide.
Important
Do not delete the snapshot that is used to maintain incrementality between your backups. Deleting the backup snapshot will cause the next backup to be of the entire volume rather than only of changed data.
To delete a backup
-
Open the Amazon FSx console at https://console.aws.amazon.com/fsx/
. -
From the console dashboard, choose Backups from the left side navigation.
-
Choose the backup that you want to delete from the Backups table, and then choose Delete backup.
-
In the Delete backups dialog box that opens, confirm that the ID of the backup identifies the backup that you want to delete.
-
Confirm that the check box is checked for the backup that you want to delete.
-
Choose Delete backups.
Your backup and all included data are now permanently and irrecoverably deleted.