Create a Snapshot job schedule
-
PDF of this doc site
- Cluster administration
-
Volume administration
- Logical storage management with the CLI
-
NAS storage management
- Configure NFS with the CLI
- Manage NFS with the CLI
-
Manage SMB with the CLI
- Manage file access using SMB
- SAN storage management
- Security and data encryption
-
Data protection and disaster recovery
- Data protection with the CLI
Collection of separate PDF docs
Creating your file...
A Snapshot policy requires at least one Snapshot copy job schedule. You can use the job schedule cron create
command to create a job schedule.
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 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 specifyall
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