snapshot listDiff

Definition

Lists the SnapshotDiff jobs for a bucket.

Usage

$ ozone sh snapshot listDiff [-ahV] [<jobStatus>]
                                    <value>
Arguments
Parameter Description

jobStatus

Allows you to list jobs only with the specified status. Possible values: queued, in_progress, done, failed, and rejected. By default, returns only the jobs with the in_progress status

-a, --all

Allows you to list all jobs regardless of the status

value

A bucket URI. It can be a full URI (starts with o3://, e.g. o3://hostname:9862/vol1/bucket1/) or a short URI (starts with a volume name, e.g. vol1/bucket1). Any missing information is obtained from the configuration files

-h, --help

Prints out a help manual for this command

-V, --version

Prints out version information and exits

Examples

List all the SnapshotDiff jobs for a bucket:

$ ozone sh snapshot listDiff vol1/bucket2 -a

The output should be similar to:

[ {
  "volumeName" : "vol1",
  "bucketName" : "bucket2",
  "fromSnapshot" : "s20250223-232331.183",
  "toSnapshot" : "newsnap",
  "jobStatus" : "DONE"
}, {
  "volumeName" : "vol1",
  "bucketName" : "bucket2",
  "fromSnapshot" : "oldsnap",
  "toSnapshot" : "newsnap",
  "jobStatus" : "DONE"
} ]
Found a mistake? Seleсt text and press Ctrl+Enter to report it