Snapshots and Cloning

file-snapshot-create

Usage: file-snapshot-create [options]

Create file snapshot

Example: file-snapshot-create --filename /test/VM2/*.vmdk --now\

Options Descriptions
* --filename Source file path. The filename in the path may include wild-card characters (for example, /share/dir/file*.txt)
--help

Display this help and exit

*--now Create immediate snapshot of the file. Required unless "--schedule-name" is specified
--retention-name The name of the retention policy
--schedule-name The name of the schedule policy. Required unless "--now" is specified

file-snapshot-delete

Usage: file-snapshot-delete [options]

Delete file snapshots

Options Descriptions
--all Deletes all existing snapshots. Required unless "--time" is specified
*--filename

Source file path. The filename in the path may include wild-card characters (for example: /share/dir/file*.txt)

--help

Display this help and exit

--time Date-time expression in format yyyy-MM-ddThh-mm-ss. The expression may contain wild-card characters (for example: 2000-01-30*). Required unless "--all" is specified

file-snapshot-list

Usage: file-snapshot-list [options]

List file snapshots

Options Descriptions
*--filename Source file path. The filename in the path may include wild-card characters (for example: /share/dir/file*.txt)
--help

Display this help and exit

file-snapshot-restore

Usage: file-snapshot-restore [options]

Restore files from snapshots

Options Descriptions
*--filename Source file path. The filename in the path may include wild-card characters (for example: /share/dir/file*.txt)
--help

Display this help and exit

* --time Date-time expression in format yyyy-MM-ddThh-mm-ss. The expression may contain wild-card characters (for example: 2000-01-30*)

file-snapshot-schedule-list

Usage: file-snapshot-schedule-list [options]

List scheduled file snapshots

Options Descriptions
--filename Source file path. The filename in the path may include wild-card characters (for example: /share/dir/file*.txt)
--help

Display this help and exit

-id The ID of the file snapshot schedule to list

file-snapshot-update

Usage: file-snapshot-update [options]

Update file snapshot schedule

Options Descriptions
*--filename Source file path. The filename in the path may include wild-card characters (for example: /share/dir/file*.txt)
--help

Display this help and exit

--remove-retention Remove the retention policy from file snapshots. Required unless "--remove-schedule" or "--retention-name" or "--schedule-name" is specified
--remove-schedule Remove both schedule and retention from file snapshots. . Required unless "--retention-name" or "--schedule-name" or "--remove-retention" is specified
--retention-name The name of the retention policy. Required unless "--remove-schedule" or "--schedule-name" or "--remove-retention" is specified
--schedule-name The name of the schedule policy. Required unless "--remove-schedule" or "--retention-name" or "--remove-retention" is specified

snapshot-retention-create

Usage: snapshot-retention-create [options]

Create a snapshot retention policy

Options Descriptions
--help

Display this help and exit

* --name

The name of the snapshot retention policy

--number-of-copies The number of copies the policy should create. Required unless "--retention-time" is specified
--retention-time The time interval to retain snapshots, from the time of the last snapshot, in the format: dd:HH:mm. Required unless "--number-of-copies" is specified

snapshot-retention-delete

Usage: snapshot-retention-delete [options]

Delete snapshot retention policy

Options Descriptions
--help

Display this help and exit

*--id The ID of the snapshot policy to delete. Required unless "--name" is specified
*--name The name of the snapshot policy to delete. Required unless "--id" is specified

snapshot-retention-list

Usage: snapshot-retention-list [options]

List snapshot retention policies

Options Descriptions
--full Print extra information for each element
--help

Display this help and exit

--id The ID of the snapshot retention policy to list
--name The name of the snapshot retention policy to list

snapshot-retention-update

Usage: snapshot-retention-update [options]

Update snapshot retention policy

 

Options Descriptions
--help

Display this help and exit

*--id The name of the snapshot retention policy to list. Required unless "--name" is specified
*--name The ID of the snapshot retention policy to list. Required unless "--id" is specified
*--number-of-copies The number of copies the policy should create. Required unless "--retention-time" is specified
*--retention-time The time interval to retain snapshots, from the time of the last snapshot, in the format: dd:HH:mm, Required unless "--number-of-copies" is specified