lbcli create snapshots-policy (2.2 and above)

Creates a new snapshot policy.

Synopsis

Create a new policy for periodic generation of snapshots for a specified volume. Snapshots will be created periodically for specified volumes at defined intervals. These snapshots will be deleted after the defined retention time expires.

Bash
Copy

Examples;

Bash
Copy
FlagShortTypeDefaultDescription
--descriptionstringSnapshot policy description (optional)
--help-hboolHelp for snapshots-policy.
--namestringSnapshot policy name (required).
--project-namestringThe project name (required).
--retention-timestringRetention time to keep the snapshot, before deleting it (optional). Retention time is encoded as a string with a {value}{unit} format. {value} is a decimal number and {unit} is one of the following: ns, us, ms, s, m, h. Example: 7200s, 1200m, 2h.
--volume-namestringVolume name to assign policy to (required if volume-UUID was not provided).
--volume-UUIDstringVolume UUID to assign policy to (required if volume-name was not provided).
--days-in-cycleintSpecifies the time interval between the creation of snapshots (in units of days). Valid values are in the range of 1 to 6 days. You must specify either this flag or --hours-in-cycle to specify the rate of snapshots creation.
--hours-in-cycleintSpecifies the time interval between the creation of snapshots (in units of hours). Valid values are in the range of 1 to 23 hours. You must specify either this flag or --days-in-cycle to specify the rate of snapshots creation.
--start-timeintThe scheduled start time. In daily policy, this defines the reoccurring time of day that a snapshot is created. For hourly snapshots, this defines the time within the hour that a snapshot is created. This must be in the form of HH:MM, in which HH is hours and MM is minutes.
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard