2
0

config_panel.toml 3.0 KB

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