Protection Group Snapshot Schedules

Microsoft Platform Guide

Audience
Public
Source Type
Documentation

Protection Group Snapshot schedules control the timing and frequency of when snapshots are automatically taken for a Protection Group. The New -Pfa2SnapshotScheduleObject cmdlet is used to create an object to update the Protection Group with the Update-Pfa2protectiongroup cmdlet.

Note:

The time factors used for these parameters is in milliseconds. The -At parameter is the time of day the snapshot is scheduled to be taken and retained on the local array or immediately replicated to the target(s). It is measured in milliseconds since midnight. The -At parameter is only used if the -Frequency parameter is in days, (e.g., `259200000`, which is equal to 3 days).


# Retrieve the snapshots for the Protection Group
PS >Get-Pfa2ProtectionGroupSnapshot -Array $FlashArray -Name 'demo-pggroup'
# Retrieve the snapshot properties
PS >$schedule = Get-Pfa2ProtectionGroup -Array $FlashArray -Name 'demo-pggroup'
# Display only the snapshot schedule
PS >$schedule.SnapshotSchedule
# Create the new snapshot schedule object with time and frequency and set it to enabled.
PS >$snapschedule=New-Pfa2SnapshotScheduleObject -At 7200000 -Enabled $true -Frequency 259200000
# Update the Protection Group with the new schedule
PS >Update-Pfa2ProtectionGroup -Name 'demo-pggroup' -SnapshotSchedule $snapschedule
Name                : demo-pggroup
Destroyed           : False
HostCount           :
HostGroupCount      :
IsLocal             : True
Pod                 : class FixedReference {
                        Id:
                        Name:
                      }

ReplicationSchedule : class ReplicationSchedule {
                        At:
                        Enabled: False
                        Frequency: 14400000
                        Blackout: class TimeWindow {
                        Start:
                        End:
                      }

                      }

SnapshotSchedule    : class SnapshotSchedule {
                        At:
                        Enabled: False
                        Frequency: 3600000
                      }

SourceRetention     : class RetentionPolicy {
                        AllForSec: 86400
                        Days: 7
                        PerDay: 4
                      }

Space               :
TargetCount         :
TargetRetention     : class RetentionPolicy {
                        AllForSec: 86400
                        Days: 7
                        PerDay: 4
                      }

TimeRemaining       :
VolumeCount         :