2
0

config_panel.toml 3.0 KB

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