config_panel.toml 2.9 KB

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