ONTAP Discussions

snapshot schedule

Sairajeevmic
1,395 Views

cfs::*> snapshot policy create -vserver <>  -policy <> -enabled true -schedule1 hourly -count1 4@1 9 13 17  -schedule2 daily -count2 1

Error: "4@1" is an invalid value for field "-count1 <0..1023>"

user need 4 hourly snapshots at  below intervals

  • 0100
  • 0900
  • 1300
  • 1700

    Can someone give me the right command

 

1 ACCEPTED SOLUTION

TMACMD
1,352 Views

https://docs.netapp.com/us-en/ontap-cli-9141//job-schedule-cron-create.html

 

job schedule cron create -name mycron -hour 1,9,13,17 -minute 0

snapshot policy create -vserver xyz  -policy my_snap_pol -enabled true -schedule1 mycron -count1 4

View solution in original post

2 REPLIES 2

TMACMD
1,353 Views

https://docs.netapp.com/us-en/ontap-cli-9141//job-schedule-cron-create.html

 

job schedule cron create -name mycron -hour 1,9,13,17 -minute 0

snapshot policy create -vserver xyz  -policy my_snap_pol -enabled true -schedule1 mycron -count1 4

Sairajeevmic
1,317 Views

Thanks @TMACMD  - cron job worked 

Public