Skip to main content

Create a Snapshot job schedule

Contributors netapp-dbagwell netapp-lenida netapp-pcarriga

A Snapshot policy requires at least one Snapshot copy job schedule. You can use System Manager or the job schedule cron create command to create a job schedule.

About this task

By default, ONTAP forms the names of Snapshot copies by appending a timestamp to the job schedule name.

If you specify values for both day of the month and day of the week, the values are considered independently. For example, a cron schedule with the day specification Friday and the day of the month specification 13 runs every Friday and on the 13th day of each month, not just on every Friday the 13th.

Create a Snapshot copy job schedule

Steps

You can create a Snapshot copy job schedule using System Manager or the ONTAP CLI.

System Manager
  1. Navigate to Protection > Overview and and expand Local policy settings.

  2. In the Schedules pane, click arrow.

  3. In the Schedules window, click plus.

  4. In the Add schedule window, enter the schedule name, and choose the context and schedule type.

  5. Click Save.

CLI
  1. Create a job schedule:

    job schedule cron create -name <job_name> -month <month> -dayofweek <day_of_week> -day <day_of_month> -hour <hour> -minute <minute>

    For -month, -dayofweek, and -hour, you can specify all to run the job every month, day of the week, and hour, respectively.

    Beginning with ONTAP 9.10.1, you can include the Vserver for your job schedule:

    job schedule cron create -name <job_name> -vserver <Vserver_name> -month <month> -dayofweek <day_of_week> -day <day_of_month> -hour <hour> -minute <minute>

    The following example creates a job schedule named myweekly that runs on Saturdays at 3:00 a.m.:

    cluster1::> job schedule cron create -name myweekly -dayofweek "Saturday" -hour 3 -minute 0

    The following example creates a schedule named myweeklymulti that specifies multiple days, hours and minutes:

    job schedule cron create -name myweeklymulti -dayofweek "Monday,Wednesday,Sunday" -hour 3,9,12 -minute 0,20,50