tape: add 'latest-only' property to backup job config
This commit is contained in:
@ -117,6 +117,8 @@ pub enum DeletableProperty {
|
||||
EjectMedia,
|
||||
/// Delete the export-media-set property
|
||||
ExportMediaSet,
|
||||
/// Delete the 'latest-only' property
|
||||
LatestOnly,
|
||||
}
|
||||
|
||||
#[api(
|
||||
|
@ -53,6 +53,11 @@ lazy_static! {
|
||||
type: bool,
|
||||
optional: true,
|
||||
},
|
||||
"latest-only": {
|
||||
description: "Backup latest snapshots only.",
|
||||
type: bool,
|
||||
optional: true,
|
||||
},
|
||||
comment: {
|
||||
optional: true,
|
||||
schema: SINGLE_LINE_COMMENT_SCHEMA,
|
||||
@ -77,6 +82,8 @@ pub struct TapeBackupJobConfig {
|
||||
#[serde(skip_serializing_if="Option::is_none")]
|
||||
export_media_set: Option<bool>,
|
||||
#[serde(skip_serializing_if="Option::is_none")]
|
||||
latest_only: Option<bool>,
|
||||
#[serde(skip_serializing_if="Option::is_none")]
|
||||
pub comment: Option<String>,
|
||||
#[serde(skip_serializing_if="Option::is_none")]
|
||||
pub schedule: Option<String>,
|
||||
|
Reference in New Issue
Block a user