mirror of
https://git.proxmox.com/git/proxmox-backup
synced 2025-08-10 12:51:56 +00:00
client: align description for backup specification to docs
Adapt the description for the backup specification to use `archive-name` and `type` over `label` and `ext`, to be in line with the terminology used in the documentation. Further, explicitley describe the `path` as `source-path` to be less ambigouos. In order to avoid formatting issues in the man pages because of line breaks after a hyphen, show the backup specification description in multiple lines. Suggested-by: Fabian Grünbichler <f.gruenbichler@proxmox.com> Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
This commit is contained in:
parent
b693f5d471
commit
24a6d4fd82
@ -8,8 +8,9 @@ const_regex! {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub const BACKUP_SOURCE_SCHEMA: Schema = StringSchema::new(
|
pub const BACKUP_SOURCE_SCHEMA: Schema = StringSchema::new(
|
||||||
"Backup source specification ([<label>:<path>]), the specification \
|
"Backup source specification ([<archive-name>.<type>:<source-path>]), the \
|
||||||
'label' must contain alphanumerics, hyphens and underscores only.",
|
'archive-name' must contain alphanumerics, hyphens and underscores only. \
|
||||||
|
The 'type' must be either 'pxar', 'img', 'conf' or 'log'.",
|
||||||
)
|
)
|
||||||
.format(&ApiStringFormat::Pattern(&BACKUPSPEC_REGEX))
|
.format(&ApiStringFormat::Pattern(&BACKUPSPEC_REGEX))
|
||||||
.schema();
|
.schema();
|
||||||
|
@ -631,9 +631,10 @@ fn spawn_catalog_upload(
|
|||||||
backupspec: {
|
backupspec: {
|
||||||
type: Array,
|
type: Array,
|
||||||
description:
|
description:
|
||||||
"List of backup source specifications ([<label.ext>:<path>] ...), the \
|
"List of backup source specifications:\
|
||||||
specifications 'label' must contain alphanumerics, hyphens and underscores \
|
\n\n[<archive-name>.<type>:<source-path>] ...\n\n\
|
||||||
only.",
|
The 'archive-name' must only contain alphanumerics, hyphens and underscores \
|
||||||
|
while the 'type' must be either 'pxar', 'img', 'conf' or 'log'.",
|
||||||
items: {
|
items: {
|
||||||
schema: BACKUP_SOURCE_SCHEMA,
|
schema: BACKUP_SOURCE_SCHEMA,
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user