Creating snapshot schedules

Description

Creating snapshot schedules

To create a snapshot schedule

  • To create a snapshot schedule, enter the following:

    Storage> snapshot schedule create schedule_name
    fs_name max_snapshot_limit minute [hour] [day_of_the_month] 
    [month] [day_of_the_week]

    For example, to create a schedule for an automated snapshot creation of a given file system at 3:00 am every day, enter the following:

    Storage> snapshot schedule create schedule1 fs1 100 0 3 * * *

    When an automated snapshot is created, the entire date value is appended, including the time zone.

schedule_name

Specifies the name of the schedule corresponding to the automatically created snapshot.

The schedule_name cannot contain an underscore ('_') as part of its value. For example, sch_1 is not allowed.

fs_name

Specifies the name of the file system. The file system name should be a string.

max_snapshot_limit

Specifies the number of snapshots that can be created for a given file system and schedule name. This field only accepts numeric input. The range allowed for this parameter is 1-366.

This value would imply that only x number of snapshots can be created for a given file system and schedule name. If the number of snapshots corresponding to a schedule name is equal to or greater than the value of this field, then snapshots will be automatically destroyed until the number of snapshots is less than the maximum snapshot limit value.

Note:

If you need to save daily snapshots for up to one year, the max_snapshot_limit is 366.

minute

This parameter may contain either an asterisk like '*/15'', which implies every 15 minutes, or a numeric value between 0-59.

Note:

If you are using the '*/xx' format, the smallest value for 'xx' is 15.

You can enter */(15-59) or a range such as 23-43. An asterisk (*) is not allowed.

hour

This parameter may contain either an asterisk, (*), which implies "run every hour," or a number value between 0-23.

You can enter */(0-23), a range such as 12-21, or just the *.

day_of_the_month

This parameter may contain either an asterisk, (*), which implies "run every day of the month," or a number value between 1-31.

You can enter */(1-31), a range such ass 3-22, or just the *.

month

This parameter may contain either an asterisk, (*), which implies "run every month," or a number value between 1-12.

You can enter */(1-12), a range such as 1-5, or just the *. You can also enter the first three letters of any month (must use lowercase letters).

day_of_the_week

This parameter may contain either an asterisk (*), which implies "run every day of the week," or a numeric value between 0-6. Crontab interprets 0 as Sunday. You can also enter the first three letters of the week (must use lowercase letters).

For example, to create a schedule for automated snapshot creation of a given file system every 3 hours on a daily basis, and only 30 snapshots can be maintained for a given snapshot schedule, enter the following:

Storage> snapshot schedule create schedule1 fs1 30 0 */3 * * *

Terms of use for this information are found in Legal Notices.

Search

Survey

Did this article answer your question or resolve your issue?

No
Yes

Did this article save you the trouble of contacting technical support?

No
Yes

How can we make this article more helpful?

Email Address (Optional)