Forum Discussion

wcovert's avatar
wcovert
Novice I
2 years ago

I have an existing protection group snapshot schedule

I have an existing protection group snapshot schedule that snaps every Wednesday at 2am. Is it possible to update the schedule so it snaps on Sundays instead?
  • Without seeing the script, it is difficult. But it sounds like there is something like Windows task scheduler or some orchestration platform that is starting the script at a particular time. You may just need to update the schedule of the orchestrator to run the script at a different time.
  • Thanks Cody. This is a protection group on the Pure storage array with a snapshot schedule configured as part of the protection group - no Windows scheduler or other orchestration platform needed. The Pure array manages the schedule and the snaps. However, I was hoping there would be a way to adjust the ‘day of the week’ for this schedule via the Pure Powershell module.
  • Gotcha, so you can’t use the Powershell SDK to change core functionality, but you can write a script to take a snapshot at will and apply retentions. You could then disable the builtin automatic snapping and use task schedule or an orchestrator platform to take the snap at the specific day/time you want. Just be sure to build in alerting (email or something similar) so you can have confidence the job is running
  • Ah, yes, that’s an interesting way to solve my issue but it should work. Thank you!
  • You can update PG settings like schedule using the Update-Pfa2ProtectionGroup cmdlet Or use Cody's idea to also get reporting and additional control.
  • Thanks jbuckley354. I’ve looked at the help page for that cmdlet. It looks like I can adjust the time of day the snap is taken and the frequency. But I don’t see a way to set the day of the week for when it takes a weekly snapshot. I’m probably missing something obvious. ???
  • Sorry Day of the week is not a setting on the PG. You can set time of day if frequency is >24hrs (86400000ms). In order to change it from running on Wed at 2am to Sunday I believe you will need to disable the schedule then enable it again on Sunday prior to 2am. That should trigger the first one that Sunday at 2am then weekly after that based on the frequency setting.
  • Haha - That almost sounds too easy but it just might work. I’ll give it a try. Thank you!!