backups.yaml 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. title: PLUGIN_ADMIN.BACKUPS
  2. form:
  3. validation: loose
  4. fields:
  5. history_title:
  6. type: section
  7. title: PLUGIN_ADMIN.BACKUPS_HISTORY
  8. underline: true
  9. history:
  10. type: backupshistory
  11. config_title:
  12. type: section
  13. title: PLUGIN_ADMIN.BACKUPS_PURGE_CONFIG
  14. underline: true
  15. purge.trigger:
  16. type: select
  17. label: PLUGIN_ADMIN.BACKUPS_STORAGE_PURGE_TRIGGER
  18. size: medium
  19. default: space
  20. options:
  21. space: Maximum Backup Space
  22. number: Maximum Number of Backups
  23. time: maximum Retention Time
  24. validate:
  25. required: true
  26. purge.max_backups_count:
  27. type: number
  28. label: PLUGIN_ADMIN.BACKUPS_MAX_COUNT
  29. default: 25
  30. size: x-small
  31. help: PLUGIN_ADMIN.BACKUPS_MAX_COUNT
  32. validate:
  33. min: 0
  34. type: number
  35. required: true
  36. message: Must be a number 0 or greater
  37. purge.max_backups_space:
  38. type: number
  39. label: PLUGIN_ADMIN.BACKUPS_MAX_SPACE
  40. append: in GB
  41. size: x-small
  42. default: 5
  43. validate:
  44. min: 1
  45. type: number
  46. required: true
  47. message: Space must be 1GB or greater
  48. purge.max_backups_time:
  49. type: number
  50. label: PLUGIN_ADMIN.BACKUPS_MAX_RETENTION_TIME
  51. append: PLUGIN_ADMIN.BACKUPS_MAX_RETENTION_TIME_APPEND
  52. size: x-small
  53. default: 365
  54. validate:
  55. min: 7
  56. type: number
  57. required: true
  58. message: Rentenion days must be 7 or greater
  59. profiles_title:
  60. type: section
  61. title: PLUGIN_ADMIN.BACKUPS_PROFILES
  62. underline: true
  63. profiles:
  64. type: list
  65. style: vertical
  66. label:
  67. classes: backups-list compact
  68. sort: false
  69. fields:
  70. .name:
  71. type: text
  72. label: PLUGIN_ADMIN.NAME
  73. placeholder: PLUGIN_ADMIN.BACKUPS_PROFILE_NAME
  74. validate:
  75. max: 20
  76. message: 'Name must be less than 20 characters'
  77. required: true
  78. .root:
  79. type: text
  80. label: PLUGIN_ADMIN.BACKUPS_PROFILE_ROOT_FOLDER
  81. help: PLUGIN_ADMIN.BACKUPS_PROFILE_ROOT_FOLDER_HELP
  82. placeholder: '/'
  83. default: '/'
  84. validate:
  85. required: true
  86. .exclude_paths:
  87. type: textarea
  88. label: PLUGIN_ADMIN.BACKUPS_PROFILE_EXCLUDE_PATHS
  89. rows: 5
  90. placeholder: "/backup\r/cache\r/images\r/logs\r/tmp"
  91. help: PLUGIN_ADMIN.BACKUPS_PROFILE_EXCLUDE_PATHS_HELP
  92. .exclude_files:
  93. type: textarea
  94. label: PLUGIN_ADMIN.BACKUPS_PROFILE_EXCLUDE_FILES
  95. rows: 5
  96. placeholder: ".DS_Store\r.git\r.svn\r.hg\r.idea\r.vscode\rnode_modules"
  97. help: PLUGIN_ADMIN.BACKUPS_PROFILE_EXCLUDE_FILES_HELP
  98. .schedule:
  99. type: toggle
  100. label: PLUGIN_ADMIN.BACKUPS_PROFILE_SCHEDULE
  101. highlight: 1
  102. default: 1
  103. options:
  104. 1: PLUGIN_ADMIN.YES
  105. 0: PLUGIN_ADMIN.NO
  106. validate:
  107. type: bool
  108. .schedule_at:
  109. type: cron
  110. label: PLUGIN_ADMIN.BACKUPS_PROFILE_SCHEDULE_AT
  111. default: '* 3 * * *'
  112. validate:
  113. required: true