pybackive/backive/config/schema.yml

80 lines
2.4 KiB
YAML
Raw Normal View History

2019-02-22 21:26:01 +01:00
### backive config schema
#
#
definitions:
device_section:
type: object
patternProperties:
2019-05-03 20:36:09 +02:00
"^[^ \t/\\]+$":
# "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$":
2019-02-22 21:26:01 +01:00
type: object
properties:
name:
type: string
mountname:
type: string
required:
- mountname
additionalProperties: false
backup_section:
type: object
patternProperties:
"^[a-zA-Z0-9_-]+$":
type: object
properties:
user:
type: string
from:
type: string
from_remote:
type: object
properties:
user:
type: string
password:
type: string
ssh_key_path:
type: string
to:
type: string
target_device:
type: string
frequency:
type: string
scripts:
type: array
items:
type: object
properties:
target:
enum: [ "local", "remote" ]
script:
type: string
2019-05-03 21:36:44 +02:00
execute: [ "before", "after" ]
2019-02-22 21:26:01 +01:00
additionalProperties: false
tool:
type: object
required:
- from
- to
- target_device
additionalProperties: false
preferences_section:
type: object
properties:
mount_root:
type: string
pattern: "^(/[^/]+)+$"
additionalProperties: false
type: object
properties:
devices:
"$ref": "#:/definitions/device_section"
backups:
"$ref": "#:/definitions/backup_section"
preferences:
"$ref": "#:/definitions/preferences_section"