Skip to main content

Create a Snapshot job schedule

Contributors netapp-aherbin netapp-lenida netapp-dbagwell 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

This procedure applies to FAS, AFF, and current ASA systems. If you have an ASA r2 system (ASA A1K, ASA A70, or ASA A90), follow these steps to create a snapshot job schedule. ASA r2 systems provide a simplified ONTAP experience specific to SAN-only customers.

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.

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

  2. In the Schedules pane, click Arrow icon.

  3. In the Schedules window, click Add icon.

  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