[pbs-devel] [PATCH proxmox-backup 2/7] api types: add run-on-mount flag to SyncJobConfig
Hannes Laimer
h.laimer at proxmox.com
Wed Dec 11 11:40:45 CET 2024
Signed-off-by: Hannes Laimer <h.laimer at proxmox.com>
---
pbs-api-types/src/jobs.rs | 3 +++
1 file changed, 3 insertions(+)
diff --git a/pbs-api-types/src/jobs.rs b/pbs-api-types/src/jobs.rs
index 04631d920..da2565e07 100644
--- a/pbs-api-types/src/jobs.rs
+++ b/pbs-api-types/src/jobs.rs
@@ -622,6 +622,9 @@ pub struct SyncJobConfig {
pub resync_corrupt: Option<bool>,
#[serde(skip_serializing_if = "Option::is_none")]
pub sync_direction: Option<SyncDirection>,
+ /// Run job when datastore is mounted
+ #[serde(default)]
+ pub run_on_mount: bool,
}
impl SyncJobConfig {
--
2.39.5
More information about the pbs-devel
mailing list