questions.yaml 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556
  1. groups:
  2. - name: Unifi Protect Backup Configuration
  3. description: Configure Unifi Protect Backup
  4. - name: User and Group Configuration
  5. description: Configure User and Group for Unifi Protect Backup
  6. - name: Network Configuration
  7. description: Configure Network for Unifi Protect Backup
  8. - name: Storage Configuration
  9. description: Configure Storage for Unifi Protect Backup
  10. - name: Labels Configuration
  11. description: Configure Labels for Unifi Protect Backup
  12. - name: Resources Configuration
  13. description: Configure Resources for Unifi Protect Backup
  14. questions:
  15. - variable: TZ
  16. group: Unifi Protect Backup Configuration
  17. label: Timezone
  18. schema:
  19. type: string
  20. default: Etc/UTC
  21. required: true
  22. $ref:
  23. - definitions/timezone
  24. - variable: unifi_protect_backup
  25. label: ""
  26. group: Unifi Protect Backup Configuration
  27. schema:
  28. type: dict
  29. attrs:
  30. - variable: username
  31. label: Unifi Protect Username
  32. description: Username to login to Unifi Protect instance
  33. schema:
  34. type: string
  35. required: true
  36. - variable: password
  37. label: Unifi Protect Password
  38. description: Password for Unifi Protect user
  39. schema:
  40. type: string
  41. required: true
  42. private: true
  43. - variable: address
  44. label: Unifi Protect Address
  45. description: Address of Unifi Protect instance
  46. schema:
  47. type: string
  48. required: true
  49. - variable: port
  50. label: Unifi Protect Port
  51. description: Port of Unifi Protect instance
  52. schema:
  53. type: int
  54. min: 1
  55. max: 65535
  56. required: true
  57. default: 443
  58. - variable: ssl_verify
  59. label: Unifi Protect Verify SSL
  60. description: Verify SSL certificate of Unifi Protect instance
  61. schema:
  62. type: boolean
  63. default: true
  64. - variable: skip_missing
  65. label: Skip Missing
  66. description: If set, events which are 'missing' at the start will be ignored.
  67. schema:
  68. type: boolean
  69. default: false
  70. - variable: ignore_cameras
  71. label: Ignore Cameras
  72. description: IDs of cameras for which events should not be backed up. One per line.
  73. schema:
  74. type: list
  75. default: []
  76. items:
  77. - variable: id
  78. label: Camera ID
  79. schema:
  80. type: string
  81. required: true
  82. - variable: detection_types
  83. label: Detection Types
  84. description: Types of detections to back up. One per line.
  85. schema:
  86. type: list
  87. default:
  88. - motion
  89. - person
  90. - vehicle
  91. - ring
  92. items:
  93. - variable: type
  94. label: Detection Type
  95. schema:
  96. type: string
  97. required: true
  98. enum:
  99. - value: "motion"
  100. description: Motion
  101. - value: "person"
  102. description: Person
  103. - value: "vehicle"
  104. description: Vehicle
  105. - value: "ring"
  106. description: Ring
  107. - variable: rclone_destination
  108. label: Rclone Destination
  109. description: |
  110. Rclone destination path in the format {rclone-remote}:{path-on-remote} </br.>
  111. E.g. `gdrive:/backups/unifi_protect`
  112. schema:
  113. type: string
  114. required: true
  115. - variable: rclone_args
  116. label: Rclone Arguments
  117. description: |
  118. Optional extra arguments to pass to rclone rcat directly. One per line</br>
  119. Common usage for this would be to set a bandwidth limit</br>
  120. E.g. --bwlimit 8M
  121. schema:
  122. type: list
  123. default: []
  124. items:
  125. - variable: arg
  126. label: Argument
  127. schema:
  128. type: string
  129. required: true
  130. - variable: rclone_purge_args
  131. label: Rclone Purge Arguments
  132. description: |
  133. Optional extra arguments to pass to rclone delete. One per line</br>
  134. Common usage for this would be to execute a permanent delete
  135. instead of using the recycle bin on a destination.</br>
  136. Google Drive example: --drive-use-trash=false
  137. schema:
  138. type: list
  139. default: []
  140. items:
  141. - variable: arg
  142. label: Argument
  143. schema:
  144. type: string
  145. required: true
  146. - variable: additional_envs
  147. label: Additional Environment Variables
  148. schema:
  149. type: list
  150. default: []
  151. items:
  152. - variable: env
  153. label: Environment Variable
  154. schema:
  155. type: dict
  156. attrs:
  157. - variable: name
  158. label: Name
  159. schema:
  160. type: string
  161. required: true
  162. - variable: value
  163. label: Value
  164. schema:
  165. type: string
  166. - variable: run_as
  167. label: ""
  168. group: User and Group Configuration
  169. schema:
  170. type: dict
  171. attrs:
  172. - variable: user
  173. label: User ID
  174. description: The user id that Unifi Protect Backup files will be owned by.
  175. schema:
  176. type: int
  177. min: 568
  178. default: 568
  179. required: true
  180. - variable: group
  181. label: Group ID
  182. description: The group id that Unifi Protect Backup files will be owned by.
  183. schema:
  184. type: int
  185. min: 568
  186. default: 568
  187. required: true
  188. - variable: network
  189. label: ""
  190. group: Network Configuration
  191. schema:
  192. type: dict
  193. attrs:
  194. - variable: host_network
  195. label: Host Network
  196. description: |
  197. Bind to the host network. It's recommended to keep this disabled.
  198. schema:
  199. type: boolean
  200. default: false
  201. - variable: storage
  202. label: ""
  203. group: Storage Configuration
  204. schema:
  205. type: dict
  206. attrs:
  207. - variable: config
  208. label: Unifi Protect Backup Config Storage
  209. description: The path to store Unifi Protect Backup Config.
  210. schema:
  211. type: dict
  212. attrs:
  213. - variable: type
  214. label: Type
  215. description: |
  216. ixVolume: Is dataset created automatically by the system.</br>
  217. Host Path: Is a path that already exists on the system.
  218. schema:
  219. type: string
  220. required: true
  221. default: "ix_volume"
  222. enum:
  223. - value: "host_path"
  224. description: Host Path (Path that already exists on the system)
  225. - value: "ix_volume"
  226. description: ixVolume (Dataset created automatically by the system)
  227. - variable: ix_volume_config
  228. label: ixVolume Configuration
  229. description: The configuration for the ixVolume dataset.
  230. schema:
  231. type: dict
  232. show_if: [["type", "=", "ix_volume"]]
  233. $ref:
  234. - "normalize/ix_volume"
  235. attrs:
  236. - variable: acl_enable
  237. label: Enable ACL
  238. description: Enable ACL for the storage.
  239. schema:
  240. type: boolean
  241. default: false
  242. - variable: dataset_name
  243. label: Dataset Name
  244. description: The name of the dataset to use for storage.
  245. schema:
  246. type: string
  247. required: true
  248. hidden: true
  249. default: "config"
  250. - variable: acl_entries
  251. label: ACL Configuration
  252. schema:
  253. type: dict
  254. show_if: [["acl_enable", "=", true]]
  255. attrs: []
  256. - variable: host_path_config
  257. label: Host Path Configuration
  258. schema:
  259. type: dict
  260. show_if: [["type", "=", "host_path"]]
  261. attrs:
  262. - variable: acl_enable
  263. label: Enable ACL
  264. description: Enable ACL for the storage.
  265. schema:
  266. type: boolean
  267. default: false
  268. - variable: acl
  269. label: ACL Configuration
  270. schema:
  271. type: dict
  272. show_if: [["acl_enable", "=", true]]
  273. attrs: []
  274. $ref:
  275. - "normalize/acl"
  276. - variable: path
  277. label: Host Path
  278. description: The host path to use for storage.
  279. schema:
  280. type: hostpath
  281. show_if: [["acl_enable", "=", false]]
  282. required: true
  283. - variable: data
  284. label: Unifi Protect Backup Data Storage
  285. description: The path to store Unifi Protect Backup Data.
  286. schema:
  287. type: dict
  288. attrs:
  289. - variable: type
  290. label: Type
  291. description: |
  292. ixVolume: Is dataset created automatically by the system.</br>
  293. Host Path: Is a path that already exists on the system.
  294. schema:
  295. type: string
  296. required: true
  297. default: "ix_volume"
  298. enum:
  299. - value: "host_path"
  300. description: Host Path (Path that already exists on the system)
  301. - value: "ix_volume"
  302. description: ixVolume (Dataset created automatically by the system)
  303. - variable: ix_volume_config
  304. label: ixVolume Configuration
  305. description: The configuration for the ixVolume dataset.
  306. schema:
  307. type: dict
  308. show_if: [["type", "=", "ix_volume"]]
  309. $ref:
  310. - "normalize/ix_volume"
  311. attrs:
  312. - variable: acl_enable
  313. label: Enable ACL
  314. description: Enable ACL for the storage.
  315. schema:
  316. type: boolean
  317. default: false
  318. - variable: dataset_name
  319. label: Dataset Name
  320. description: The name of the dataset to use for storage.
  321. schema:
  322. type: string
  323. required: true
  324. hidden: true
  325. default: "data"
  326. - variable: acl_entries
  327. label: ACL Configuration
  328. schema:
  329. type: dict
  330. show_if: [["acl_enable", "=", true]]
  331. attrs: []
  332. - variable: host_path_config
  333. label: Host Path Configuration
  334. schema:
  335. type: dict
  336. show_if: [["type", "=", "host_path"]]
  337. attrs:
  338. - variable: acl_enable
  339. label: Enable ACL
  340. description: Enable ACL for the storage.
  341. schema:
  342. type: boolean
  343. default: false
  344. - variable: acl
  345. label: ACL Configuration
  346. schema:
  347. type: dict
  348. show_if: [["acl_enable", "=", true]]
  349. attrs: []
  350. $ref:
  351. - "normalize/acl"
  352. - variable: path
  353. label: Host Path
  354. description: The host path to use for storage.
  355. schema:
  356. type: hostpath
  357. show_if: [["acl_enable", "=", false]]
  358. required: true
  359. - variable: additional_storage
  360. label: Additional Storage
  361. schema:
  362. type: list
  363. default: []
  364. items:
  365. - variable: storageEntry
  366. label: Storage Entry
  367. schema:
  368. type: dict
  369. attrs:
  370. - variable: type
  371. label: Type
  372. description: |
  373. ixVolume: Is dataset created automatically by the system.</br>
  374. Host Path: Is a path that already exists on the system.</br>
  375. SMB Share: Is a SMB share that is mounted to as a volume.
  376. schema:
  377. type: string
  378. required: true
  379. default: "ix_volume"
  380. enum:
  381. - value: "host_path"
  382. description: Host Path (Path that already exists on the system)
  383. - value: "ix_volume"
  384. description: ixVolume (Dataset created automatically by the system)
  385. - value: "cifs"
  386. description: SMB/CIFS Share (Mounts a volume to a SMB share)
  387. - variable: read_only
  388. label: Read Only
  389. description: Mount the volume as read only.
  390. schema:
  391. type: boolean
  392. default: false
  393. - variable: mount_path
  394. label: Mount Path
  395. description: The path inside the container to mount the storage.
  396. schema:
  397. type: path
  398. required: true
  399. - variable: host_path_config
  400. label: Host Path Configuration
  401. schema:
  402. type: dict
  403. show_if: [["type", "=", "host_path"]]
  404. attrs:
  405. - variable: acl_enable
  406. label: Enable ACL
  407. description: Enable ACL for the storage.
  408. schema:
  409. type: boolean
  410. default: false
  411. - variable: acl
  412. label: ACL Configuration
  413. schema:
  414. type: dict
  415. show_if: [["acl_enable", "=", true]]
  416. attrs: []
  417. $ref:
  418. - "normalize/acl"
  419. - variable: path
  420. label: Host Path
  421. description: The host path to use for storage.
  422. schema:
  423. type: hostpath
  424. show_if: [["acl_enable", "=", false]]
  425. required: true
  426. - variable: ix_volume_config
  427. label: ixVolume Configuration
  428. description: The configuration for the ixVolume dataset.
  429. schema:
  430. type: dict
  431. show_if: [["type", "=", "ix_volume"]]
  432. $ref:
  433. - "normalize/ix_volume"
  434. attrs:
  435. - variable: acl_enable
  436. label: Enable ACL
  437. description: Enable ACL for the storage.
  438. schema:
  439. type: boolean
  440. default: false
  441. - variable: dataset_name
  442. label: Dataset Name
  443. description: The name of the dataset to use for storage.
  444. schema:
  445. type: string
  446. required: true
  447. default: "storage_entry"
  448. - variable: acl_entries
  449. label: ACL Configuration
  450. schema:
  451. type: dict
  452. show_if: [["acl_enable", "=", true]]
  453. attrs: []
  454. $ref:
  455. - "normalize/acl"
  456. - variable: cifs_config
  457. label: SMB Configuration
  458. description: The configuration for the SMB dataset.
  459. schema:
  460. type: dict
  461. show_if: [["type", "=", "cifs"]]
  462. attrs:
  463. - variable: server
  464. label: Server
  465. description: The server to mount the SMB share.
  466. schema:
  467. type: string
  468. required: true
  469. - variable: path
  470. label: Path
  471. description: The path to mount the SMB share.
  472. schema:
  473. type: string
  474. required: true
  475. - variable: username
  476. label: Username
  477. description: The username to use for the SMB share.
  478. schema:
  479. type: string
  480. required: true
  481. - variable: password
  482. label: Password
  483. description: The password to use for the SMB share.
  484. schema:
  485. type: string
  486. required: true
  487. private: true
  488. - variable: domain
  489. label: Domain
  490. description: The domain to use for the SMB share.
  491. schema:
  492. type: string
  493. - variable: labels
  494. label: ""
  495. group: Labels Configuration
  496. schema:
  497. type: list
  498. default: []
  499. items:
  500. - variable: label
  501. label: Label
  502. schema:
  503. type: dict
  504. attrs:
  505. - variable: key
  506. label: Key
  507. schema:
  508. type: string
  509. required: true
  510. - variable: value
  511. label: Value
  512. schema:
  513. type: string
  514. required: true
  515. - variable: containers
  516. label: Containers
  517. description: Containers where the label should be applied
  518. schema:
  519. type: list
  520. items:
  521. - variable: container
  522. label: Container
  523. schema:
  524. type: string
  525. required: true
  526. enum:
  527. - value: unifi-protect-backup
  528. description: unifi-protect-backup
  529. - variable: resources
  530. label: ""
  531. group: Resources Configuration
  532. schema:
  533. type: dict
  534. attrs:
  535. - variable: limits
  536. label: Limits
  537. schema:
  538. type: dict
  539. attrs:
  540. - variable: cpus
  541. label: CPUs
  542. description: CPUs limit for Unifi Protect Backup.
  543. schema:
  544. type: int
  545. default: 2
  546. required: true
  547. - variable: memory
  548. label: Memory (in MB)
  549. description: Memory limit for Unifi Protect Backup.
  550. schema:
  551. type: int
  552. default: 4096
  553. required: true