Snapshot policies
A snapshot policy is a set of rules that controls the creation and expiration of snapshots.
- Backup interval
- This is the interval between snapshot backups. The minimum value is 60 minutes.
- Retention period
- The length of time which snapshots are retained. The maximum length is 365 days.
- It can be assigned to one or more volume groups.
- Only one snapshot policy can be scheduled to one volume group.
- The system supports a maximum number of 40 snapshot policies.
The system supports an internal scheduler to manage and create snapshot policies on the system. The system provides predefined polices that contain specific retention and frequency values for common use-cases. The system also allows creation of the user-defined policies by using the management GUI or by using the mksnapshotpolicy command.
- Predefinedsspolicy0
- Select this policy for the most frequent copies and retention. For this policy, snapshots are created every six hours and retained for a week. Use this policy for volume data that requires the highest recovery point objective (RPO). For example, volume data that is frequently updated and critical to your business can benefit from frequent copies and retention. Customer accounts, orders, or proprietary information are examples of data that can need more frequent backups. For more information, refer to your organization's business continuity plan.
- Predefinedsspolicy1
- Select this policy for less frequent copies and medium retention. For this policy, snapshots are created weekly and retained for a month. Use this policy for application data that is updated frequently and requires a high RPO, but might not contain business-critical data.
- Predefinedsspolicy2
- Select this policy for less frequent copies and longer retention. For this policy, snapshots are created monthly and retained for a year. Use this policy for older data that is not updated frequently but still requires retention, such as past customer accounts or employee records.
- Predefinedsspolicy38
- Select this policy to create cloud snapshots only. For this policy, cloud snapshots are created daily and retained for a month. Use this policy for storing snapshots of the volumes to cloud storage.
- Predefinedsspolicy39
- Select this hybrid policy to create schedules for local snapshots and cloud snapshots. Select this policy for creating both, local snapshots and cloud snapshots. For this policy, local snapshots are created every six hours and retained for a week. It also creates cloud snapshots daily and are retained for a month. Use this policy for volume data that requires the highest recovery point objective (RPO) and for storing snapshots of the volumes to cloud storage.
Managing snapshot policies
An administrator or security administrator can create, define, and assign a snapshot policy to a volume group.
- Assigning snapshot policies
-
Policies can be created and assigned to volume groups from the tab of the management GUI.
If the backup start time is in the past, it will be advanced according to the backup interval until a time in the future is reached. A monthly scheduled snapshot creates snapshot on the same day of each month for days 1-28 based on the start time. If the scheduled day is not available in that month, the last day of the month is considered.
Note: For example, if snapshot policy is specified for every month and the start date is 31 May, the next snapshot date would be 30 June, followed by 31 August. Daylight savings do not affect the backup and retention intervals that are specified by the schedule. For example, if snapshots are triggered daily and occur every day at 2:00 AM before daylight savings start, they are created at 1:00 AM when daylight savings pushes the time ahead by an hour. The backup interval remains constant at 24 hours in this example.Note: If you change the system time or timezone (for example, when moving domain controllers or correcting time settings) after a schedule has been set up, the change will affect these schedules. They are based on an internal tick-driven time delta, not the actual clock time delta.The command-line interface provides the following command to assign snapshot policies:- mksnapshotpolicy creates a snapshot policy.
- mkvolumegroup assigns a snapshot policy to a volume group at the time of creation.
- chvolumegroup changes or assigns the snapshot policies on an existing volume group.
If you assign a policy to a volume group that already has a policy associated with it, the newly assigned policy replaces the existing policy.
- Deleting snapshot policies
-
Use the rmsnapshotpolicy command in the command-line interface to delete the user-defined snapshot policies.
The predefined policies cannot be deleted.
Security administration privileges are required to delete policies that are associated with volume groups.
- Changing snapshot policies
-
Use the chsnapshotpolicy command in the command-line interface to change the name of the user-defined snapshot policy. The name can also be changed from the tab in the management GUI.
- Suspending snapshot policies
-
If the source volumes are compromised during a cyberattack or during a disaster recovery scenario, any snapshot taken during an attack can contain malicious data or software. The system supports suspending snapshot policies until the compromised data can be determined. This can be done at a volume group level by using the panel on the GUI, or the chvolumegroupsnapshotpolicy command.
Alternatively, all snapshot policies on the system can be suspended using the chsystem command. Snapshots can be used for cloning or restoring while any snapshot policies are suspended.