use anyhow::{bail, Error}; use proxmox::api::schema::*; proxmox::const_regex! { BACKUPSPEC_REGEX = r"^([a-zA-Z0-9_-]+\.(pxar|img|conf|log)):(.+)$"; } pub const BACKUP_SOURCE_SCHEMA: Schema = StringSchema::new( "Backup source specification ([