No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

OceanStor 9000 V5 7.0 Command Reference 03

Rate and give feedback :
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
create snapshot_schedule

create snapshot_schedule

Function

The create snapshot_schedule command is used to create a new policy for a timing snapshot.

Format

create snapshot_schedule < dir_path > < day_hours > [ day_minute=? ] [ expire_time=? ] [ month_days=? ] [ name=? ] [ week_days=? ]

Parameters

Parameter

Description

Value

dir_path Directory path of the timing snapshot.

The value is 1 to 4000 characters in length, must start with a slash (/), and does not include comma (,).

day_hours Time exact to hour of a day when the timing snapshot is executed.

Separate numbers with commas (,). The value of each number is between "0" and "23".

day_minute Time exact to minute of a day when the timing snapshot is executed.

The value is an integer between "0" and "59".The default value is 0.

expire_time Expiration time of the timing snapshot.

The value is a character string in the format of year-month-day-hour. The value ranges of the year, month, day, and hour are 0 to 50, 0 to 12, 0 to 31, and 0 to 24 respectively. The entered time cannot be longer than 50 years. The snapshot is permanently valid if the value is set to 0-0-0-0.

month_days Days of a month when the timing snapshot is executed

Separate numbers with commas (,). The value of each number is between "0" and "31". (This parameter is mutually exclusive with "week_days".)

name Name of the timing snapshot

The value is a combination of numbers, letters, hyphens (-), and underscores (_) and is 1 to 95 characters in length. The value must start with a letter and cannot end with a hyphen, underscore, or period.

week_days Day of a week when the timing snapshot is executed

Separate numbers with commas (,). The value of each number is between "0" and "6". (This parameter is mutually exclusive with "month_days".)

Level

Resource administrator

Usage Guidelines

  • "month_days" and "week_days" are mutually exclusive.
  • When "month_days" is specified, "week_days" is hidden and cannot be specified. The policy of the timing snapshot is to monthly execute the timing snapshot.
  • When "week_days" is specified, "month_days" is hidden and cannot be specified. The policy of the timing snapshot is to weekly execute the timing snapshot.

Example

Create a new policy for a timing snapshot.

admin:/> create snapshot_schedule /filepath 1,2,3,4 name=test day_minute=00 expire_time=0-0-0-1 week_days=1,2,3
Command executed successfully.
admin:/> create snapshot_schedule /filepath 1,2,3,4 name=test day_minute=00 expire_time=0-0-0-1 month_days=2,3,4
Command executed successfully.

System Response

None

Translation
Download
Updated: 2019-05-07

Document ID: EDOC1100067955

Views: 24548

Downloads: 7

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next