config_panel.toml 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. version = "1.0"
  2. [main]
  3. name = "Archivist configuration"
  4. [main.encryption]
  5. name = "Encryption"
  6. [main.encryption.encrypt]
  7. ask = "Do you want to encrypt your backups ?"
  8. type = "boolean"
  9. default = true
  10. bind = "encrypt:__FINAL_PATH__/Backup_list.conf"
  11. [main.encryption.encryption_pwd]
  12. ask = "Set the password for encryption"
  13. type = "password"
  14. optional = true
  15. help = "A password is needed if encryption is activated."
  16. bind = "__FINAL_PATH__/passkey"
  17. [main.compression]
  18. name = "Compression algorithm"
  19. [main.compression.compress_ynh]
  20. ask = "Choose the compression algorithm for YunoHost backups"
  21. type = "select"
  22. choices = ["gzip", "lzop", "zstd", "bzip2", "lzma", "lzip", "xz", "No compression"]
  23. default = "gzip"
  24. bind = "ynh_compression_mode:__FINAL_PATH__/Backup_list.conf"
  25. [main.compression.compress_files]
  26. ask = "Choose the compression algorithm for files and directories backups"
  27. type = "select"
  28. choices = ["gzip", "lzop", "zstd", "bzip2", "lzma", "lzip", "xz", "No compression"]
  29. default = "gzip"
  30. bind = "files_compression_mode:__FINAL_PATH__/Backup_list.conf"
  31. [main.backup_types]
  32. name = "Backup"
  33. [main.backup_types.core_backup]
  34. ask = "Would you like to backup your YunoHost core ?"
  35. type = "boolean"
  36. default = true
  37. bind = "ynh_core_backup:__FINAL_PATH__/Backup_list.conf"
  38. [main.backup_types.apps_backup]
  39. ask = "Would you like to backup your apps ?"
  40. type = "boolean"
  41. default = true
  42. help = "WARNING: Changing this value will either remove backup for all apps or add all current apps to the backup."
  43. [main.backup_options]
  44. name = "Backup options"
  45. [main.backup_options.frequency]
  46. ask = "Choose the frequency of your backups ?"
  47. type = "select"
  48. choices = ["Daily", "Each 3 days", "Weekly", "Biweekly", "Monthly"]
  49. default = "Weekly"
  50. [main.backup_options.max_size]
  51. ask = "Max size for each backup in Mb"
  52. type = "number"
  53. default = 500
  54. 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."
  55. [main.overwrite_files]
  56. name = "Overwriting config files"
  57. [main.overwrite_files.overwrite_cron]
  58. ask = "Overwrite the cron file during the upgrade ?"
  59. type = "boolean"
  60. default = true
  61. help = "If the file is overwritten, a backup will be created."
  62. [main.global_config]
  63. name = "Global configuration"
  64. [main.global_config.email_type]
  65. ask = "Send HTML email to admin ?"
  66. type = "boolean"
  67. default = true
  68. help = "Allow app scripts to send HTML mails instead of plain text."