2
0

config_panel.json 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. {
  2. "name": "Archivist configuration panel",
  3. "version": "0.1",
  4. "panel": [{
  5. "name": "Archivist configuration",
  6. "id": "main",
  7. "sections": [{
  8. "name": "Encryption",
  9. "id": "encryption",
  10. "options": [{
  11. "name": "Do you want to encrypt your backups ?",
  12. "id": "encrypt",
  13. "type": "bool",
  14. "default": true
  15. }, {
  16. "name": "Set the password for encryption",
  17. "help": "A password is needed if encryption is activated.",
  18. "id": "encryption_pwd",
  19. "type": "password",
  20. "optional": true
  21. }]
  22. },
  23. {
  24. "name": "Backup",
  25. "id": "backup_types",
  26. "options": [{
  27. "name": "Would you like to backup your YunoHost core ?",
  28. "id": "core_backup",
  29. "type": "bool",
  30. "default": true
  31. }, {
  32. "name": "Would you like to backup your apps ?",
  33. "help": "WARNING: Changing this value will either remove backup for all apps or add all current apps to the backup.",
  34. "id": "apps_backup",
  35. "type": "bool",
  36. "default": true
  37. }]
  38. },
  39. {
  40. "name": "Backup options",
  41. "id": "backup_options",
  42. "options": [{
  43. "name": "Choose the frequency of your backups ?",
  44. "help": "We can't use a choices field for now. In the meantime please choose between one of this values:<br>Daily, Each 3 days, Weekly, Biweekly, Monthly.",
  45. "id": "frequency",
  46. "type": "text",
  47. "//": "\"choices\" : [\"Daily\", \"Each 3 days\", \"Weekly\", \"Biweekly\", \"Monthly\"]",
  48. "default" : "Weekly"
  49. }, {
  50. "name": "Max size for each backup in Mb",
  51. "help": "Specify the max size of each backup for the following option file_to_backup.</br>This option is a soft limit, that means the script will try to limit each backup to this max size if it can.</br>But there's 2 limitations, for a single directory, it can't makes more than one backup file, even if the files in this directory exceed this maximum size.</br>And, if there's some files in a directory, next to subdirectories, it'll make only one backup for this files.</br>So this limit will be applied to split the backup by its subdirectories to avoid to have only one big backup.",
  52. "id": "max_size",
  53. "type": "number",
  54. "default": 500
  55. }]
  56. },
  57. {
  58. "name": "Overwriting config files",
  59. "id": "overwrite_files",
  60. "options": [{
  61. "name": "Overwrite the cron file during the upgrade ?",
  62. "help": "If the file is overwritten, a backup will be created.",
  63. "id": "overwrite_cron",
  64. "type": "bool",
  65. "default": true
  66. }]
  67. }]
  68. }
  69. ]
  70. }