This command creates a snapshot policy. A snapshot policy creates snapshots of a directory on a schedule.
Usage
snapshotpolicy create --name NAME --path PATH --schedule SCHEDULE] --max-created-snapshots MAX_CREATED_SNAPSHOTS] [--prefix PREFIX] [--enabled] [--disabled]
Required Parameters
|
Specifies the name of the policy. |
|
Sets the path to the directory to snapshot. Each scheduled snapshot will include all files and folders under the specified directory at the time of taking the snapshot. |
Sets the snapshot schedule. Specify using cron format and wrap in quotes. Examples:
NoteTo check if you specified the schedule as intended, run snapshotpolicy list or snapshotpolicy show and check the |
|
The maximum number of snapshots to be retained. Oldest is deleted when needed to maintain limit. |
Options
Specifies a prefix for the snapshots' names. If unspecified, the policy name is used. |
|
|
Enables the policy. (Default: true) |
|
Disables the policy. |
Example
vcli: admin> snapshotpolicy create --name snapol1 --path / --schedule "0 0 12 * *" --max-created-snapshots 4
Comments
0 comments
Article is closed for comments.