Snapshot policies
Snapshot policies define rules and schedules for creating and managing point-in-time data copies, ensuring reliable recovery from deletion, corruption, or integrity issues.
Last updated
Snapshot policies define rules and schedules for creating and managing point-in-time data copies, ensuring reliable recovery from deletion, corruption, or integrity issues.
Last updated
Snapshot policies establish the rules and schedules for creating, managing, and retaining point-in-time copies of data, known as snapshots. These snapshots provide a reliable mechanism for data recovery or rollback in scenarios such as accidental deletion, corruption, or other data integrity issues.
By automating the creation of snapshots based on specified criteria, such as time intervals or frequency, snapshot policies enhance data protection, streamline disaster recovery, and ensure business continuity. They enable organizations to restore their data to a consistent state quickly without requiring full backups, optimizing storage usage while minimizing the risk of data loss.
WEKA provides a default system policy that can serve as a foundation for customizing snapshot policies. Each policy defines the following key parameters:
Schedule: Specifies when snapshots are created, including hourly, daily, weekly, monthly, or at periodic intervals.
Retention: Determines the number of snapshots to retain, defining a rotation policy.
Destination: Determines whether snapshots are also uploaded to a local and remote object store.
Background tasks handle operations related to snapshots, including creation and uploads to local or remote object stores. This system operates in the background to improve efficiency and ensure uninterrupted performance during snapshot management processes.
Administrators of the root organization only can configure policies to create hourly, daily, weekly, monthly, and periodic snapshots. These policies can be assigned to filesystems already connected to a local or remote object store.
The example below demonstrates how to configure a policy using the GUI. The policy schedules a snapshot every Saturday and uploads it to a local object store. Alternatively, you can use CLI commands to achieve the same result.
Plan and structure policies:
Decide whether to store snapshots on the local server or upload them to a local or remote object store.
If uploading snapshots to an object store, configure the filesystem to use the appropriate local or remote object store before attaching the policy.
Attach a snapshot policy to each filesystem.
Design policies based on workload priorities, recovery objectives, and storage capacity requirements.
Adhere to system limits:
You can define up to 1,024 snapshot policies across the cluster, in addition to the default policy.
A single snapshot policy can be attached to maximum 1,024 filesystems.
A single filesystem can have maximum 10 snapshot policies assigned.
Optimize policy assignments:
Consolidate policies wherever possible to reduce complexity and duplication.
Monitor object store connectivity:
Ensure that each filesystem is properly connected to a local or remote object store to enable seamless assignment to a snapshot policy.
Multiple schedules overlap:
When multiple schedules overlap on the same filesystem, only one snapshot is taken, following this priority:
Hourly takes precedence over periodic.
Daily takes precedence over hourly.
Weekly takes precedence over daily.
Monthly takes precedence over weekly.
This hierarchy is by design to prevent redundant snapshots. Plan schedules accordingly.
Snapshot name format:
<policy name>-<schedule type>.<time-stamp format: YYMMDDHHMM>
Example: policy1-weekly.2412301152
Restricted manual uploads of policy-based snapshots:
Snapshots created by policies cannot be manually uploaded to an object store. Ensure all uploads align with the configured policy.
Retaining snapshots outside rotation:
To prevent a snapshot from being deleted during the rotation process, rename the snapshot to exclude it from automated deletion.
Snapshot deletion with disabled policy:
Snapshots of attached filesystems may still be deleted even when the policy is disabled. If the retention period is reduced, snapshots are deleted according to the updated retention settings, regardless of the policy's status.
Snapshot behavior during DST transitions:
During Daylight Saving Time (DST) transitions, the following behavior applies to snapshot schedules (for example, every 15 minutes):
DST start (clocks move forward): Snapshots in the skipped hour (for example, 1:15 AM to 2:00 AM) are not created. For example, after a snapshot at 1:00 AM, the next one is at 2:15 AM.
DST end (clocks move back): Snapshots in the repeated hour (for example, 1:15 AM to 2:00 AM) are not duplicated, as they are already created during the first pass.
The Snapshot Policies feature replaces the external SnapTool, which will be deprecated in a future release.
Related topics