borgitory 2.8.0__tar.gz → 3.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (585) hide show
  1. {borgitory-2.8.0 → borgitory-3.1.0}/PKG-INFO +22 -5
  2. {borgitory-2.8.0 → borgitory-3.1.0}/README.md +18 -0
  3. {borgitory-2.8.0 → borgitory-3.1.0}/pyproject.toml +5 -8
  4. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/alembic/env.py +3 -9
  5. borgitory-3.1.0/src/borgitory/alembic/versions/1bf41c3dc043_multiple_source_paths_for_schedules.py +52 -0
  6. borgitory-3.1.0/src/borgitory/alembic/versions/256b9fa9d31f_manual_only_and_dry_run_schedules.py +47 -0
  7. borgitory-3.1.0/src/borgitory/alembic/versions/8390ab2be88a_migrate_notifications_to_apprise.py +379 -0
  8. borgitory-3.1.0/src/borgitory/alembic/versions/c3f1a7d2b9e4_add_remote_ssh_fields_to_repositories.py +35 -0
  9. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/api/cloud_sync/cloud_sync.py +25 -22
  10. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/api/notifications.py +193 -112
  11. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/api/repositories.py +36 -0
  12. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/api/repository_stats.py +29 -12
  13. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/api/schedules.py +5 -1
  14. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/api/tabs.py +3 -18
  15. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/dependencies.py +14 -81
  16. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/factories/service_factory.py +0 -41
  17. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/main.py +8 -0
  18. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/models/database.py +57 -4
  19. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/models/enums.py +1 -0
  20. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/models/repository_dtos.py +4 -0
  21. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/models/schemas.py +161 -13
  22. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/protocols/__init__.py +1 -5
  23. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/protocols/command_protocols.py +2 -0
  24. borgitory-3.1.0/src/borgitory/protocols/notification_protocols.py +57 -0
  25. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/services/archives/archive_manager.py +5 -0
  26. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/services/borg_service.py +16 -38
  27. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/services/cloud_providers/storage/sftp_storage.py +12 -0
  28. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/services/configuration_service.py +13 -2
  29. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/services/encryption_service.py +12 -0
  30. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/services/jobs/job_database_manager.py +2 -0
  31. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/services/jobs/job_executor.py +6 -0
  32. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/services/jobs/job_manager_factory.py +0 -13
  33. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/services/jobs/job_models.py +0 -3
  34. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/services/jobs/job_service.py +23 -12
  35. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/services/jobs/job_stream_service.py +24 -19
  36. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/services/jobs/task_executors/backup_task_executor.py +15 -10
  37. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/services/jobs/task_executors/check_task_executor.py +6 -0
  38. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/services/jobs/task_executors/cloud_sync_task_executor.py +16 -0
  39. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/services/jobs/task_executors/compact_task_executor.py +6 -0
  40. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/services/jobs/task_executors/notification_task_executor.py +20 -52
  41. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/services/jobs/task_executors/prune_task_executor.py +6 -0
  42. borgitory-3.1.0/src/borgitory/services/notifications/__init__.py +18 -0
  43. borgitory-3.1.0/src/borgitory/services/notifications/apprise_catalog.py +340 -0
  44. borgitory-3.1.0/src/borgitory/services/notifications/apprise_storage.py +104 -0
  45. borgitory-3.1.0/src/borgitory/services/notifications/apprise_url_builder.py +153 -0
  46. borgitory-3.1.0/src/borgitory/services/notifications/config_service.py +311 -0
  47. borgitory-3.1.0/src/borgitory/services/notifications/service.py +322 -0
  48. borgitory-3.1.0/src/borgitory/services/notifications/types.py +49 -0
  49. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/services/recovery_service.py +4 -0
  50. borgitory-3.1.0/src/borgitory/services/repositories/repository_environment.py +56 -0
  51. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/services/repositories/repository_service.py +117 -20
  52. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/services/repositories/repository_stats_service.py +24 -2
  53. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/services/scheduling/schedule_service.py +109 -34
  54. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/services/scheduling/scheduler_service.py +42 -9
  55. borgitory-3.1.0/src/borgitory/services/ssh/repository_ssh_service.py +160 -0
  56. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/services/task_definition_builder.py +32 -13
  57. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/base.html +18 -16
  58. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/archives/contents_modal.html +6 -1
  59. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/archives/directory_contents.html +6 -1
  60. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/archives/list_content.html +2 -0
  61. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/archives/repository_selector.html +1 -0
  62. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/archives/tab.html +2 -1
  63. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/backups/manual_form.html +5 -6
  64. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/cloud_sync/config_list_content.html +4 -0
  65. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/cloud_sync/providers/sftp/sftp_fields.html +21 -1
  66. borgitory-3.1.0/src/borgitory/templates/partials/cloud_sync/tab.html +16 -0
  67. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/debug/debug_panel.html +4 -2
  68. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/debug/tab.html +5 -1
  69. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/jobs/job_details_streaming.html +2 -1
  70. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/jobs/task_item_static.html +1 -0
  71. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/jobs/task_item_streaming.html +23 -11
  72. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/navigation.html +1 -0
  73. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/navigation_nav.html +12 -0
  74. borgitory-3.1.0/src/borgitory/templates/partials/notifications/add_form.html +40 -0
  75. borgitory-3.1.0/src/borgitory/templates/partials/notifications/apprise_fields.html +118 -0
  76. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/notifications/config_list_content.html +15 -6
  77. borgitory-3.1.0/src/borgitory/templates/partials/notifications/edit_form.html +55 -0
  78. borgitory-3.1.0/src/borgitory/templates/partials/notifications/manual_fields.html +34 -0
  79. borgitory-3.1.0/src/borgitory/templates/partials/notifications/service_select.html +42 -0
  80. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/prune/config_form_error.html +5 -2
  81. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/prune/config_form_success.html +11 -4
  82. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/prune/config_list_content.html +3 -0
  83. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/repositories/create/form_create.html +6 -4
  84. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/repositories/import/form_import.html +5 -3
  85. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/repositories/list_content.html +5 -1
  86. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/repositories/modal/borg_info.html +5 -1
  87. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/repositories/modal/break_lock_button.html +1 -0
  88. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/repositories/modal/break_lock_button_modal.html +1 -0
  89. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/repositories/modal/details_modal.html +5 -2
  90. borgitory-3.1.0/src/borgitory/templates/partials/repositories/ssh_fields.html +41 -0
  91. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/repository_check/config_list_content.html +3 -0
  92. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/schedules/create_form.html +40 -13
  93. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/schedules/create_success.html +7 -2
  94. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/schedules/cron_expression_form.html +9 -5
  95. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/schedules/edit_form.html +35 -15
  96. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/schedules/schedule_list_content.html +33 -13
  97. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/shared/notification.html +29 -9
  98. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/shared/path_autocomplete_dropdown.html +6 -4
  99. borgitory-3.1.0/src/borgitory/templates/partials/shared/source_path_row.html +18 -0
  100. borgitory-3.1.0/src/borgitory/templates/partials/shared/source_paths_input.html +19 -0
  101. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/utils/security.py +48 -2
  102. {borgitory-2.8.0 → borgitory-3.1.0}/tests/conftest.py +0 -5
  103. {borgitory-2.8.0 → borgitory-3.1.0}/tests/fixtures/job_fixtures.py +1 -1
  104. borgitory-3.1.0/tests/fixtures/notification_fixtures.py +59 -0
  105. {borgitory-2.8.0 → borgitory-3.1.0}/tests/fixtures/registry_fixtures.py +0 -89
  106. borgitory-3.1.0/tests/integration/notifications/test_notification_configs_api.py +490 -0
  107. borgitory-3.1.0/tests/integration/repositories/test_remote_ssh_repositories.py +562 -0
  108. {borgitory-2.8.0 → borgitory-3.1.0}/tests/integration/repositories/test_repository_stats_html.py +2 -1
  109. {borgitory-2.8.0 → borgitory-3.1.0}/tests/integration/schedules/test_manual_run_apscheduler.py +111 -3
  110. {borgitory-2.8.0 → borgitory-3.1.0}/tests/integration/schedules/test_schedule_creation_api.py +66 -15
  111. {borgitory-2.8.0 → borgitory-3.1.0}/tests/integration/schedules/test_schedules_api.py +276 -11
  112. borgitory-3.1.0/tests/integration/ssh_server.py +187 -0
  113. {borgitory-2.8.0 → borgitory-3.1.0}/tests/integration/test_jobs_api.py +47 -5
  114. {borgitory-2.8.0 → borgitory-3.1.0}/tests/unit/borg/test_borg_service_core.py +26 -0
  115. borgitory-3.1.0/tests/unit/cloud_providers/test_sftp_storage.py +214 -0
  116. {borgitory-2.8.0 → borgitory-3.1.0}/tests/unit/cloud_providers/test_storage.py +21 -0
  117. {borgitory-2.8.0 → borgitory-3.1.0}/tests/unit/factories/test_service_factory.py +0 -55
  118. {borgitory-2.8.0 → borgitory-3.1.0}/tests/unit/hooks/test_composite_job_critical_failure.py +1 -1
  119. {borgitory-2.8.0 → borgitory-3.1.0}/tests/unit/hooks/test_notification_messages_hooks.py +20 -24
  120. {borgitory-2.8.0 → borgitory-3.1.0}/tests/unit/hooks/test_task_definition_integration.py +2 -2
  121. borgitory-3.1.0/tests/unit/jobs/test_backup_source_paths.py +104 -0
  122. {borgitory-2.8.0 → borgitory-3.1.0}/tests/unit/jobs/test_compact_task_executor.py +8 -2
  123. {borgitory-2.8.0 → borgitory-3.1.0}/tests/unit/jobs/test_ignore_lock_functionality.py +2 -2
  124. {borgitory-2.8.0 → borgitory-3.1.0}/tests/unit/jobs/test_job_manager.py +2 -2
  125. {borgitory-2.8.0 → borgitory-3.1.0}/tests/unit/jobs/test_job_manager_comprehensive.py +14 -8
  126. {borgitory-2.8.0 → borgitory-3.1.0}/tests/unit/jobs/test_job_manager_task_execution.py +17 -14
  127. {borgitory-2.8.0 → borgitory-3.1.0}/tests/unit/jobs/test_job_service.py +42 -3
  128. {borgitory-2.8.0 → borgitory-3.1.0}/tests/unit/jobs/test_job_stream_service.py +2 -2
  129. borgitory-3.1.0/tests/unit/notifications/test_apprise_catalog.py +132 -0
  130. borgitory-3.1.0/tests/unit/notifications/test_apprise_url_builder.py +152 -0
  131. borgitory-3.1.0/tests/unit/notifications/test_notification_config_service.py +273 -0
  132. borgitory-3.1.0/tests/unit/notifications/test_notification_service.py +280 -0
  133. {borgitory-2.8.0 → borgitory-3.1.0}/tests/unit/protocols/test_protocol_compliance.py +5 -10
  134. borgitory-3.1.0/tests/unit/repositories/test_remote_repositories.py +678 -0
  135. {borgitory-2.8.0 → borgitory-3.1.0}/tests/unit/repositories/test_repository_management_service.py +2 -0
  136. {borgitory-2.8.0 → borgitory-3.1.0}/tests/unit/schedules/test_next_run_update.py +1 -1
  137. {borgitory-2.8.0 → borgitory-3.1.0}/tests/unit/schedules/test_schedule_service.py +219 -18
  138. {borgitory-2.8.0 → borgitory-3.1.0}/tests/unit/schedules/test_schedule_validation_service.py +90 -5
  139. {borgitory-2.8.0 → borgitory-3.1.0}/tests/unit/schedules/test_scheduler_service.py +17 -0
  140. borgitory-3.1.0/tests/unit/templates/test_task_item_streaming_template.py +118 -0
  141. borgitory-3.1.0/tests/unit/test_migrate_notifications_to_apprise.py +367 -0
  142. borgitory-3.1.0/tests/unit/test_multiple_source_paths_migration.py +107 -0
  143. borgitory-3.1.0/tests/unit/test_source_paths_schema.py +72 -0
  144. {borgitory-2.8.0 → borgitory-3.1.0}/tests/unit/test_streaming_edge_cases.py +3 -2
  145. {borgitory-2.8.0 → borgitory-3.1.0}/tests/unit/test_task_definition_builder.py +79 -7
  146. borgitory-3.1.0/tests/unit/utils/__init__.py +0 -0
  147. borgitory-3.1.0/tests/unit/utils/test_secret_key.py +33 -0
  148. borgitory-2.8.0/src/borgitory/protocols/notification_protocols.py +0 -94
  149. borgitory-2.8.0/src/borgitory/services/notifications/__init__.py +0 -41
  150. borgitory-2.8.0/src/borgitory/services/notifications/config_service.py +0 -433
  151. borgitory-2.8.0/src/borgitory/services/notifications/providers/__init__.py +0 -17
  152. borgitory-2.8.0/src/borgitory/services/notifications/providers/base.py +0 -104
  153. borgitory-2.8.0/src/borgitory/services/notifications/providers/discord_provider.py +0 -320
  154. borgitory-2.8.0/src/borgitory/services/notifications/providers/pushover_provider.py +0 -228
  155. borgitory-2.8.0/src/borgitory/services/notifications/providers/telegram_provider.py +0 -320
  156. borgitory-2.8.0/src/borgitory/services/notifications/registry.py +0 -317
  157. borgitory-2.8.0/src/borgitory/services/notifications/registry_factory.py +0 -141
  158. borgitory-2.8.0/src/borgitory/services/notifications/service.py +0 -451
  159. borgitory-2.8.0/src/borgitory/services/notifications/types.py +0 -90
  160. borgitory-2.8.0/src/borgitory/templates/partials/cloud_sync/tab.html +0 -12
  161. borgitory-2.8.0/src/borgitory/templates/partials/notifications/add_form.html +0 -43
  162. borgitory-2.8.0/src/borgitory/templates/partials/notifications/edit_form.html +0 -54
  163. borgitory-2.8.0/src/borgitory/templates/partials/notifications/providers/discord_fields.html +0 -60
  164. borgitory-2.8.0/src/borgitory/templates/partials/notifications/providers/pushover_fields.html +0 -126
  165. borgitory-2.8.0/src/borgitory/templates/partials/notifications/providers/telegram_fields.html +0 -84
  166. borgitory-2.8.0/tests/integration/notifications/test_notification_configs_api.py +0 -318
  167. borgitory-2.8.0/tests/integration/notifications/test_notification_edit_integration.py +0 -401
  168. borgitory-2.8.0/tests/unit/notifications/test_discord_provider.py +0 -281
  169. borgitory-2.8.0/tests/unit/notifications/test_notification_config_service.py +0 -527
  170. borgitory-2.8.0/tests/unit/notifications/test_pushover_provider.py +0 -360
  171. borgitory-2.8.0/tests/unit/notifications/test_telegram_provider.py +0 -1024
  172. {borgitory-2.8.0 → borgitory-3.1.0}/.gitignore +0 -0
  173. {borgitory-2.8.0 → borgitory-3.1.0}/LICENSE +0 -0
  174. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/__init__.py +0 -0
  175. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/alembic/README +0 -0
  176. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/alembic/script.py.mako +0 -0
  177. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/alembic/versions/02b7b29d38c0_add_encryption_type_and_keyfile_content_.py +0 -0
  178. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/alembic/versions/18b9095bc772_add_patterns_column_to_schedules_table.py +0 -0
  179. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/alembic/versions/1d47e9231dd0_rename_cleanup_to_prune.py +0 -0
  180. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/alembic/versions/2628b151e709_make_passphrase_optional.py +0 -0
  181. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/alembic/versions/3335c0eac68e_create_initial_schema.py +0 -0
  182. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/alembic/versions/5e6cc17d11a5_user_installed_packages.py +0 -0
  183. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/alembic/versions/78c9fff46e06_add_compact_after_field_to_pruneconfig.py +0 -0
  184. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/alembic/versions/9b5d5f5e8cbc_add_pre_post_job_hooks_to_schedule.py +0 -0
  185. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/alembic/versions/9e4c8456ea53_add_cache_dir_field_to_repositories_.py +0 -0
  186. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/alembic/versions/9f06f8c8088d_initial_empty_state.py +0 -0
  187. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/alembic/versions/d294fdc9a5e7_fix_uuid_columns_for_sqlite.py +0 -0
  188. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/alembic/versions/eb3518e71c73_add_more_prune_settings_to_cleanup_.py +0 -0
  189. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/alembic.ini +0 -0
  190. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/api/__init__.py +0 -0
  191. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/api/auth.py +0 -0
  192. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/api/backups.py +0 -0
  193. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/api/cancel_on_disconnect.py +0 -0
  194. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/api/cloud_sync/__init__.py +0 -0
  195. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/api/cloud_sync/s3.py +0 -0
  196. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/api/debug.py +0 -0
  197. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/api/jobs.py +0 -0
  198. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/api/packages.py +0 -0
  199. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/api/prune.py +0 -0
  200. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/api/repository_check_configs.py +0 -0
  201. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/api/shared.py +0 -0
  202. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/cli.py +0 -0
  203. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/config/__init__.py +0 -0
  204. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/config/command_runner_config.py +0 -0
  205. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/config/job_manager_config.py +0 -0
  206. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/config_module.py +0 -0
  207. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/constants/__init__.py +0 -0
  208. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/constants/retention.py +0 -0
  209. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/custom_types.py +0 -0
  210. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/factories/__init__.py +0 -0
  211. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/models/__init__.py +0 -0
  212. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/models/borg_info.py +0 -0
  213. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/models/job_results.py +0 -0
  214. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/models/patterns.py +0 -0
  215. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/protocols/archive_manager_protocol.py +0 -0
  216. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/protocols/cloud_protocols.py +0 -0
  217. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/protocols/command_executor_protocol.py +0 -0
  218. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/protocols/environment_protocol.py +0 -0
  219. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/protocols/file_protocols.py +0 -0
  220. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/protocols/job_database_manager_protocol.py +0 -0
  221. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/protocols/job_event_broadcaster_protocol.py +0 -0
  222. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/protocols/job_output_manager_protocol.py +0 -0
  223. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/protocols/job_protocols.py +0 -0
  224. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/protocols/job_queue_manager_protocol.py +0 -0
  225. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/protocols/path_protocols.py +0 -0
  226. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/protocols/repository_protocols.py +0 -0
  227. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/protocols/storage_protocols.py +0 -0
  228. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/protocols/system_protocol.py +0 -0
  229. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/py.typed +0 -0
  230. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/services/__init__.py +0 -0
  231. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/services/archives/archive_models.py +0 -0
  232. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/services/borg/borg_pattern_validation_service.py +0 -0
  233. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/services/borg/shell_pattern.py +0 -0
  234. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/services/cloud_providers/__init__.py +0 -0
  235. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/services/cloud_providers/cloud_sync_service.py +0 -0
  236. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/services/cloud_providers/orchestration.py +0 -0
  237. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/services/cloud_providers/registry.py +0 -0
  238. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/services/cloud_providers/registry_factory.py +0 -0
  239. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/services/cloud_providers/storage/__init__.py +0 -0
  240. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/services/cloud_providers/storage/base.py +0 -0
  241. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/services/cloud_providers/storage/pcloud_storage.py +0 -0
  242. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/services/cloud_providers/storage/s3_provider_config.py +0 -0
  243. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/services/cloud_providers/storage/s3_storage.py +0 -0
  244. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/services/cloud_providers/storage/smb_storage.py +0 -0
  245. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/services/cloud_providers/types.py +0 -0
  246. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/services/cloud_sync_config_service.py +0 -0
  247. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/services/command_execution/__init__.py +0 -0
  248. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/services/command_execution/command_executor_factory.py +0 -0
  249. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/services/command_execution/linux_command_executor.py +0 -0
  250. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/services/command_execution/wsl_command_executor.py +0 -0
  251. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/services/cron_description_service.py +0 -0
  252. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/services/debug_service.py +0 -0
  253. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/services/files/file_service_factory.py +0 -0
  254. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/services/files/linux_file_service.py +0 -0
  255. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/services/files/wsl_file_service.py +0 -0
  256. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/services/hooks/__init__.py +0 -0
  257. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/services/hooks/hook_config.py +0 -0
  258. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/services/hooks/hook_execution_service.py +0 -0
  259. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/services/jobs/broadcaster/event_type.py +0 -0
  260. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/services/jobs/broadcaster/job_event.py +0 -0
  261. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/services/jobs/broadcaster/job_event_broadcaster.py +0 -0
  262. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/services/jobs/job_manager.py +0 -0
  263. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/services/jobs/job_output_manager.py +0 -0
  264. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/services/jobs/job_queue_manager.py +0 -0
  265. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/services/jobs/job_render_service.py +0 -0
  266. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/services/jobs/task_executors/__init__.py +0 -0
  267. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/services/jobs/task_executors/hook_task_executor.py +0 -0
  268. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/services/migrations/__init__.py +0 -0
  269. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/services/migrations/migration_factory.py +0 -0
  270. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/services/migrations/migration_service.py +0 -0
  271. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/services/package_manager_service.py +0 -0
  272. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/services/path/__init__.py +0 -0
  273. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/services/path/path_service.py +0 -0
  274. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/services/path/path_service_factory.py +0 -0
  275. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/services/path/platform_service.py +0 -0
  276. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/services/prune_service.py +0 -0
  277. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/services/rclone_service.py +0 -0
  278. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/services/rclone_types.py +0 -0
  279. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/services/repositories/repository_check_config_service.py +0 -0
  280. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/services/scheduling/cron_utils.py +0 -0
  281. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/services/scheduling/hook_service.py +0 -0
  282. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/services/scheduling/pattern_service.py +0 -0
  283. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/services/simple_command_runner.py +0 -0
  284. {borgitory-2.8.0/tests/integration/archives → borgitory-3.1.0/src/borgitory/services/ssh}/__init__.py +0 -0
  285. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/services/startup/package_restoration_service.py +0 -0
  286. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/services/system/__init__.py +0 -0
  287. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/services/system/system_operations.py +0 -0
  288. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/services/upcoming_backups_service.py +0 -0
  289. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/services/volumes/file_system_interface.py +0 -0
  290. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/services/volumes/os_file_system.py +0 -0
  291. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/static/css/modern-components.css +0 -0
  292. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/static/css/tailwind-input.css +0 -0
  293. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/static/favicon/android-chrome-192x192.png +0 -0
  294. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/static/favicon/android-chrome-512x512.png +0 -0
  295. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/static/favicon/apple-touch-icon.png +0 -0
  296. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/static/favicon/favicon-16x16.png +0 -0
  297. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/static/favicon/favicon-32x32.png +0 -0
  298. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/static/favicon/favicon.ico +0 -0
  299. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/static/favicon/site.webmanifest +0 -0
  300. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/static/js/app.js +0 -0
  301. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/static/js/components/jobs.js +0 -0
  302. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/static/js/components/navigation.js +0 -0
  303. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/static/vendor/chart.min.js +0 -0
  304. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/static/vendor/htmx-ext-json-enc.js +0 -0
  305. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/static/vendor/htmx-ext-sse.js +0 -0
  306. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/static/vendor/htmx.min.js +0 -0
  307. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/index.html +0 -0
  308. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/login.html +0 -0
  309. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/macros/datetime.html +0 -0
  310. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/archives/directory_loading_state.html +0 -0
  311. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/archives/directory_loading_with_trigger.html +0 -0
  312. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/archives/empty_state.html +0 -0
  313. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/archives/error_message.html +0 -0
  314. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/archives/loading_state.html +0 -0
  315. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/archives/loading_with_trigger.html +0 -0
  316. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/auth/login_error.html +0 -0
  317. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/auth/login_form_active.html +0 -0
  318. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/auth/login_success.html +0 -0
  319. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/auth/register_error.html +0 -0
  320. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/auth/register_form_active.html +0 -0
  321. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/auth/register_success.html +0 -0
  322. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/backups/operations.html +0 -0
  323. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/backups/tab.html +0 -0
  324. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/cloud_sync/action_error.html +0 -0
  325. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/cloud_sync/action_success.html +0 -0
  326. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/cloud_sync/create_error.html +0 -0
  327. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/cloud_sync/create_success.html +0 -0
  328. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/cloud_sync/form.html +0 -0
  329. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/cloud_sync/list.html +0 -0
  330. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/cloud_sync/provider_fields.html +0 -0
  331. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/cloud_sync/providers/pcloud/pcloud_fields.html +0 -0
  332. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/cloud_sync/providers/s3/s3_endpoint_field.html +0 -0
  333. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/cloud_sync/providers/s3/s3_fields.html +0 -0
  334. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/cloud_sync/providers/s3/s3_provider_options.html +0 -0
  335. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/cloud_sync/providers/s3/s3_region_options.html +0 -0
  336. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/cloud_sync/providers/s3/s3_storage_class_options.html +0 -0
  337. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/cloud_sync/providers/smb/smb_fields.html +0 -0
  338. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/cloud_sync/test_error.html +0 -0
  339. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/cloud_sync/test_success.html +0 -0
  340. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/cloud_sync/test_warning.html +0 -0
  341. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/cloud_sync/update_error.html +0 -0
  342. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/cloud_sync/update_success.html +0 -0
  343. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/common/error_message.html +0 -0
  344. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/jobs/backup_error.html +0 -0
  345. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/jobs/backup_success.html +0 -0
  346. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/jobs/current_jobs_list.html +0 -0
  347. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/jobs/empty_state.html +0 -0
  348. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/jobs/error_state.html +0 -0
  349. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/jobs/job_details_static.html +0 -0
  350. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/jobs/job_item.html +0 -0
  351. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/jobs/job_stop_error.html +0 -0
  352. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/jobs/job_stop_success.html +0 -0
  353. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/jobs/tab.html +0 -0
  354. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/notifications/action_error.html +0 -0
  355. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/notifications/action_success.html +0 -0
  356. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/notifications/create_error.html +0 -0
  357. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/notifications/create_success.html +0 -0
  358. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/notifications/list.html +0 -0
  359. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/notifications/tab.html +0 -0
  360. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/notifications/test_error.html +0 -0
  361. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/notifications/test_success.html +0 -0
  362. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/notifications/update_error.html +0 -0
  363. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/notifications/update_success.html +0 -0
  364. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/packages/empty_search.html +0 -0
  365. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/packages/error.html +0 -0
  366. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/packages/install_error.html +0 -0
  367. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/packages/install_success.html +0 -0
  368. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/packages/installed_list.html +0 -0
  369. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/packages/package_manager.html +0 -0
  370. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/packages/remove_error.html +0 -0
  371. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/packages/remove_success.html +0 -0
  372. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/packages/search_error.html +0 -0
  373. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/packages/search_results.html +0 -0
  374. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/packages/selected_packages.html +0 -0
  375. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/packages/tab.html +0 -0
  376. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/prune/action_error.html +0 -0
  377. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/prune/action_success.html +0 -0
  378. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/prune/config_form.html +0 -0
  379. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/prune/create_error.html +0 -0
  380. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/prune/create_success.html +0 -0
  381. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/prune/delete_error.html +0 -0
  382. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/prune/delete_success.html +0 -0
  383. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/prune/form.html +0 -0
  384. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/prune/policies.html +0 -0
  385. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/prune/prune_error.html +0 -0
  386. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/prune/prune_success.html +0 -0
  387. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/prune/retention_fields.html +0 -0
  388. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/prune/strategy_fields.html +0 -0
  389. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/prune/tab.html +0 -0
  390. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/prune/update_error.html +0 -0
  391. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/prune/update_success.html +0 -0
  392. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/repositories/create/form_create_error.html +0 -0
  393. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/repositories/create/form_create_success.html +0 -0
  394. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/repositories/create/form_update_error.html +0 -0
  395. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/repositories/create/form_update_success.html +0 -0
  396. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/repositories/create/passphrase_field.html +0 -0
  397. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/repositories/delete_success.html +0 -0
  398. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/repositories/import/encryption_fields.html +0 -0
  399. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/repositories/import/form_import_error.html +0 -0
  400. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/repositories/import/form_import_success.html +0 -0
  401. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/repositories/list.html +0 -0
  402. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/repositories/modal/lock_status.html +0 -0
  403. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/repositories/tab.html +0 -0
  404. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/repository_check/action_error.html +0 -0
  405. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/repository_check/action_success.html +0 -0
  406. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/repository_check/check_error.html +0 -0
  407. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/repository_check/check_success.html +0 -0
  408. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/repository_check/create_error.html +0 -0
  409. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/repository_check/create_form.html +0 -0
  410. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/repository_check/create_success.html +0 -0
  411. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/repository_check/custom_options.html +0 -0
  412. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/repository_check/delete_error.html +0 -0
  413. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/repository_check/delete_success.html +0 -0
  414. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/repository_check/dynamic_options.html +0 -0
  415. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/repository_check/edit_form.html +0 -0
  416. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/repository_check/form.html +0 -0
  417. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/repository_check/tab.html +0 -0
  418. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/repository_check/update_error.html +0 -0
  419. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/repository_check/update_success.html +0 -0
  420. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/repository_stats/stats_panel.html +0 -0
  421. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/schedules/create_error.html +0 -0
  422. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/schedules/cron_description.html +0 -0
  423. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/schedules/delete_error.html +0 -0
  424. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/schedules/delete_success.html +0 -0
  425. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/schedules/hooks/hook_field_modal.html +0 -0
  426. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/schedules/hooks/hooks_container.html +0 -0
  427. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/schedules/hooks/hooks_edit_content.html +0 -0
  428. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/schedules/hooks/hooks_modal.html +0 -0
  429. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/schedules/hooks/hooks_save_response.html +0 -0
  430. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/schedules/hooks/hooks_validation_error.html +0 -0
  431. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/schedules/list.html +0 -0
  432. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/schedules/patterns/pattern_field_modal.html +0 -0
  433. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/schedules/patterns/pattern_validation_result.html +0 -0
  434. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/schedules/patterns/patterns_container.html +0 -0
  435. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/schedules/patterns/patterns_modal.html +0 -0
  436. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/schedules/patterns/patterns_save_response.html +0 -0
  437. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/schedules/patterns/patterns_validation_error.html +0 -0
  438. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/schedules/patterns/patterns_validation_results.html +0 -0
  439. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/schedules/run_success.html +0 -0
  440. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/schedules/tab.html +0 -0
  441. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/schedules/upcoming.html +0 -0
  442. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/schedules/upcoming_backups_content.html +0 -0
  443. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/schedules/update_error.html +0 -0
  444. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/schedules/update_success.html +0 -0
  445. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/shared/package_autocomplete.html +0 -0
  446. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/shared/path_autocomplete.html +0 -0
  447. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/shared/path_autocomplete_loading.html +0 -0
  448. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/statistics/empty_state.html +0 -0
  449. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/statistics/loading_state.html +0 -0
  450. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/statistics/repository_selector.html +0 -0
  451. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/templates/partials/statistics/tab.html +0 -0
  452. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/utils/__init__.py +0 -0
  453. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/utils/datetime_utils.py +0 -0
  454. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/utils/path_prefix.py +0 -0
  455. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/utils/secure_path.py +0 -0
  456. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/utils/template_paths.py +0 -0
  457. {borgitory-2.8.0 → borgitory-3.1.0}/src/borgitory/utils/template_responses.py +0 -0
  458. {borgitory-2.8.0 → borgitory-3.1.0}/tests/__init__.py +0 -0
  459. {borgitory-2.8.0 → borgitory-3.1.0}/tests/e2e/__init__.py +0 -0
  460. {borgitory-2.8.0 → borgitory-3.1.0}/tests/e2e/cloud_providers/test_cloud_providers.py +0 -0
  461. {borgitory-2.8.0 → borgitory-3.1.0}/tests/e2e/conftest.py +0 -0
  462. {borgitory-2.8.0 → borgitory-3.1.0}/tests/e2e/pytest.e2e.ini +0 -0
  463. {borgitory-2.8.0 → borgitory-3.1.0}/tests/e2e/test_navigation.py +0 -0
  464. {borgitory-2.8.0 → borgitory-3.1.0}/tests/fixtures/__init__.py +0 -0
  465. {borgitory-2.8.0 → borgitory-3.1.0}/tests/integration/__init__.py +0 -0
  466. {borgitory-2.8.0/tests/integration/auth → borgitory-3.1.0/tests/integration/archives}/__init__.py +0 -0
  467. {borgitory-2.8.0 → borgitory-3.1.0}/tests/integration/archives/test_archive_browser_htmx.py +0 -0
  468. {borgitory-2.8.0/tests/integration/cloud_sync → borgitory-3.1.0/tests/integration/auth}/__init__.py +0 -0
  469. {borgitory-2.8.0 → borgitory-3.1.0}/tests/integration/auth/test_auth_htmx.py +0 -0
  470. {borgitory-2.8.0 → borgitory-3.1.0}/tests/integration/auth/test_auth_redirect_flow.py +0 -0
  471. {borgitory-2.8.0 → borgitory-3.1.0}/tests/integration/auth/test_main_login_page.py +0 -0
  472. {borgitory-2.8.0/tests/integration/jobs → borgitory-3.1.0/tests/integration/cloud_sync}/__init__.py +0 -0
  473. {borgitory-2.8.0 → borgitory-3.1.0}/tests/integration/cloud_sync/test_cloud_sync_api.py +0 -0
  474. {borgitory-2.8.0 → borgitory-3.1.0}/tests/integration/cloud_sync/test_s3_api.py +0 -0
  475. {borgitory-2.8.0 → borgitory-3.1.0}/tests/integration/conftest.py +0 -0
  476. {borgitory-2.8.0/tests/integration/notifications → borgitory-3.1.0/tests/integration/jobs}/__init__.py +0 -0
  477. {borgitory-2.8.0 → borgitory-3.1.0}/tests/integration/jobs/test_job_stop_api_simple.py +0 -0
  478. {borgitory-2.8.0 → borgitory-3.1.0}/tests/integration/jobs/test_job_stop_integration.py +0 -0
  479. {borgitory-2.8.0 → borgitory-3.1.0}/tests/integration/jobs/test_jobs_api_sse.py +0 -0
  480. {borgitory-2.8.0/tests/integration/packages → borgitory-3.1.0/tests/integration/notifications}/__init__.py +0 -0
  481. {borgitory-2.8.0/tests/integration/repositories → borgitory-3.1.0/tests/integration/packages}/__init__.py +0 -0
  482. {borgitory-2.8.0 → borgitory-3.1.0}/tests/integration/packages/test_package_selection_endpoints.py +0 -0
  483. {borgitory-2.8.0/tests/integration/schedules → borgitory-3.1.0/tests/integration/repositories}/__init__.py +0 -0
  484. {borgitory-2.8.0 → borgitory-3.1.0}/tests/integration/repositories/test_repositories_api.py +0 -0
  485. {borgitory-2.8.0 → borgitory-3.1.0}/tests/integration/repositories/test_repository_check_configs_api.py +0 -0
  486. {borgitory-2.8.0 → borgitory-3.1.0}/tests/integration/repositories/test_repository_management_api.py +0 -0
  487. {borgitory-2.8.0/tests/unit → borgitory-3.1.0/tests/integration/schedules}/__init__.py +0 -0
  488. {borgitory-2.8.0 → borgitory-3.1.0}/tests/integration/schedules/test_cron_description_api.py +0 -0
  489. {borgitory-2.8.0 → borgitory-3.1.0}/tests/integration/schedules/test_cron_description_htmx_api.py +0 -0
  490. {borgitory-2.8.0 → borgitory-3.1.0}/tests/integration/schedules/test_schedules_hooks_api.py +0 -0
  491. {borgitory-2.8.0 → borgitory-3.1.0}/tests/integration/schedules/test_schedules_patterns_api.py +0 -0
  492. {borgitory-2.8.0 → borgitory-3.1.0}/tests/integration/test_app_startup.py +0 -0
  493. {borgitory-2.8.0 → borgitory-3.1.0}/tests/integration/test_backups_api.py +0 -0
  494. {borgitory-2.8.0 → borgitory-3.1.0}/tests/integration/test_basic.py +0 -0
  495. {borgitory-2.8.0 → borgitory-3.1.0}/tests/integration/test_basic_endpoints.py +0 -0
  496. {borgitory-2.8.0 → borgitory-3.1.0}/tests/integration/test_di_testing_infrastructure.py +0 -0
  497. {borgitory-2.8.0 → borgitory-3.1.0}/tests/integration/test_prune_api.py +0 -0
  498. {borgitory-2.8.0 → borgitory-3.1.0}/tests/integration/test_repository_archives_navigation.py +0 -0
  499. {borgitory-2.8.0 → borgitory-3.1.0}/tests/integration/test_tabs_api.py +0 -0
  500. {borgitory-2.8.0/tests/unit/archives → borgitory-3.1.0/tests/unit}/__init__.py +0 -0
  501. {borgitory-2.8.0/tests/unit/borg → borgitory-3.1.0/tests/unit/archives}/__init__.py +0 -0
  502. {borgitory-2.8.0 → borgitory-3.1.0}/tests/unit/archives/test_archive_manager.py +0 -0
  503. {borgitory-2.8.0 → borgitory-3.1.0}/tests/unit/archives/test_archive_manager_caching.py +0 -0
  504. {borgitory-2.8.0/tests/unit/cloud_providers → borgitory-3.1.0/tests/unit/borg}/__init__.py +0 -0
  505. {borgitory-2.8.0/tests/unit/command_execution → borgitory-3.1.0/tests/unit/cloud_providers}/__init__.py +0 -0
  506. {borgitory-2.8.0 → borgitory-3.1.0}/tests/unit/cloud_providers/test_display_details.py +0 -0
  507. {borgitory-2.8.0 → borgitory-3.1.0}/tests/unit/cloud_providers/test_orchestration.py +0 -0
  508. {borgitory-2.8.0 → borgitory-3.1.0}/tests/unit/cloud_providers/test_pcloud_storage.py +0 -0
  509. {borgitory-2.8.0 → borgitory-3.1.0}/tests/unit/cloud_providers/test_provider_validation.py +0 -0
  510. {borgitory-2.8.0 → borgitory-3.1.0}/tests/unit/cloud_providers/test_registry.py +0 -0
  511. {borgitory-2.8.0 → borgitory-3.1.0}/tests/unit/cloud_providers/test_registry_integration.py +0 -0
  512. {borgitory-2.8.0 → borgitory-3.1.0}/tests/unit/cloud_providers/test_s3_provider_config.py +0 -0
  513. {borgitory-2.8.0 → borgitory-3.1.0}/tests/unit/cloud_providers/test_schema_validation.py +0 -0
  514. {borgitory-2.8.0 → borgitory-3.1.0}/tests/unit/cloud_providers/test_service.py +0 -0
  515. {borgitory-2.8.0 → borgitory-3.1.0}/tests/unit/cloud_providers/test_smb_storage.py +0 -0
  516. {borgitory-2.8.0 → borgitory-3.1.0}/tests/unit/cloud_providers/test_types.py +0 -0
  517. {borgitory-2.8.0/tests/unit/factories → borgitory-3.1.0/tests/unit/command_execution}/__init__.py +0 -0
  518. {borgitory-2.8.0 → borgitory-3.1.0}/tests/unit/command_execution/test_linux_command_executor.py +0 -0
  519. {borgitory-2.8.0 → borgitory-3.1.0}/tests/unit/command_execution/test_wsl_command_executor.py +0 -0
  520. {borgitory-2.8.0/tests/unit/hooks → borgitory-3.1.0/tests/unit/factories}/__init__.py +0 -0
  521. {borgitory-2.8.0/tests/unit/jobs → borgitory-3.1.0/tests/unit/hooks}/__init__.py +0 -0
  522. {borgitory-2.8.0 → borgitory-3.1.0}/tests/unit/hooks/test_api_critical_hooks.py +0 -0
  523. {borgitory-2.8.0 → borgitory-3.1.0}/tests/unit/hooks/test_critical_hook_config.py +0 -0
  524. {borgitory-2.8.0 → borgitory-3.1.0}/tests/unit/hooks/test_critical_hook_execution.py +0 -0
  525. {borgitory-2.8.0 → borgitory-3.1.0}/tests/unit/hooks/test_hook_config.py +0 -0
  526. {borgitory-2.8.0 → borgitory-3.1.0}/tests/unit/hooks/test_hook_execution_service.py +0 -0
  527. {borgitory-2.8.0 → borgitory-3.1.0}/tests/unit/hooks/test_job_manager_critical_hooks.py +0 -0
  528. {borgitory-2.8.0/tests/unit/notifications → borgitory-3.1.0/tests/unit/jobs}/__init__.py +0 -0
  529. {borgitory-2.8.0 → borgitory-3.1.0}/tests/unit/jobs/conftest.py +0 -0
  530. {borgitory-2.8.0 → borgitory-3.1.0}/tests/unit/jobs/test_database_integration.py +0 -0
  531. {borgitory-2.8.0 → borgitory-3.1.0}/tests/unit/jobs/test_job_database_manager.py +0 -0
  532. {borgitory-2.8.0 → borgitory-3.1.0}/tests/unit/jobs/test_job_event_broadcaster.py +0 -0
  533. {borgitory-2.8.0 → borgitory-3.1.0}/tests/unit/jobs/test_job_executor.py +0 -0
  534. {borgitory-2.8.0 → borgitory-3.1.0}/tests/unit/jobs/test_job_executor_comprehensive.py +0 -0
  535. {borgitory-2.8.0 → borgitory-3.1.0}/tests/unit/jobs/test_job_manager_factory.py +0 -0
  536. {borgitory-2.8.0 → borgitory-3.1.0}/tests/unit/jobs/test_job_manager_stop.py +0 -0
  537. {borgitory-2.8.0 → borgitory-3.1.0}/tests/unit/jobs/test_job_output_manager.py +0 -0
  538. {borgitory-2.8.0 → borgitory-3.1.0}/tests/unit/jobs/test_job_render_service_coverage.py +0 -0
  539. {borgitory-2.8.0 → borgitory-3.1.0}/tests/unit/jobs/test_job_render_service_new_architecture.py +0 -0
  540. {borgitory-2.8.0 → borgitory-3.1.0}/tests/unit/jobs/test_job_stop_functionality.py +0 -0
  541. {borgitory-2.8.0 → borgitory-3.1.0}/tests/unit/jobs/test_job_stop_service.py +0 -0
  542. {borgitory-2.8.0 → borgitory-3.1.0}/tests/unit/jobs/test_sse_multiline_formatting.py +0 -0
  543. {borgitory-2.8.0/tests/unit/packages → borgitory-3.1.0/tests/unit/notifications}/__init__.py +0 -0
  544. {borgitory-2.8.0/tests/unit/protocols → borgitory-3.1.0/tests/unit/packages}/__init__.py +0 -0
  545. {borgitory-2.8.0 → borgitory-3.1.0}/tests/unit/packages/test_package_database_integration.py +0 -0
  546. {borgitory-2.8.0 → borgitory-3.1.0}/tests/unit/packages/test_package_manager_service.py +0 -0
  547. {borgitory-2.8.0 → borgitory-3.1.0}/tests/unit/path/test_platform_service_macos.py +0 -0
  548. {borgitory-2.8.0/tests/unit/repositories → borgitory-3.1.0/tests/unit/protocols}/__init__.py +0 -0
  549. {borgitory-2.8.0 → borgitory-3.1.0}/tests/unit/protocols/protocol_testing_utils.py +0 -0
  550. {borgitory-2.8.0 → borgitory-3.1.0}/tests/unit/protocols/test_simple_command_runner_protocol.py +0 -0
  551. {borgitory-2.8.0/tests/unit/schedules → borgitory-3.1.0/tests/unit/repositories}/__init__.py +0 -0
  552. {borgitory-2.8.0 → borgitory-3.1.0}/tests/unit/repositories/test_repository_check_config_service.py +0 -0
  553. {borgitory-2.8.0 → borgitory-3.1.0}/tests/unit/repositories/test_repository_service.py +0 -0
  554. {borgitory-2.8.0 → borgitory-3.1.0}/tests/unit/repositories/test_repository_stats_service_unit.py +0 -0
  555. {borgitory-2.8.0/tests/unit/scheduling → borgitory-3.1.0/tests/unit/schedules}/__init__.py +0 -0
  556. {borgitory-2.8.0 → borgitory-3.1.0}/tests/unit/schedules/test_validate_patterns_json.py +0 -0
  557. {borgitory-2.8.0/tests/unit/services → borgitory-3.1.0/tests/unit/scheduling}/__init__.py +0 -0
  558. {borgitory-2.8.0 → borgitory-3.1.0}/tests/unit/scheduling/test_cron_utils.py +0 -0
  559. {borgitory-2.8.0 → borgitory-3.1.0}/tests/unit/scheduling/test_hook_service.py +0 -0
  560. {borgitory-2.8.0 → borgitory-3.1.0}/tests/unit/scheduling/test_pattern_service.py +0 -0
  561. {borgitory-2.8.0/tests/unit/services/migrations → borgitory-3.1.0/tests/unit/services}/__init__.py +0 -0
  562. {borgitory-2.8.0/tests/unit/templates → borgitory-3.1.0/tests/unit/services/migrations}/__init__.py +0 -0
  563. {borgitory-2.8.0 → borgitory-3.1.0}/tests/unit/services/migrations/test_migration_service.py +0 -0
  564. {borgitory-2.8.0 → borgitory-3.1.0}/tests/unit/services/test_borg_pattern_validation_service.py +0 -0
  565. {borgitory-2.8.0/tests/unit/utils → borgitory-3.1.0/tests/unit/templates}/__init__.py +0 -0
  566. {borgitory-2.8.0 → borgitory-3.1.0}/tests/unit/templates/test_current_jobs_template.py +0 -0
  567. {borgitory-2.8.0 → borgitory-3.1.0}/tests/unit/test_cache_dir_functionality.py +0 -0
  568. {borgitory-2.8.0 → borgitory-3.1.0}/tests/unit/test_cache_dir_normalization.py +0 -0
  569. {borgitory-2.8.0 → borgitory-3.1.0}/tests/unit/test_cron_description_service.py +0 -0
  570. {borgitory-2.8.0 → borgitory-3.1.0}/tests/unit/test_database_models.py +0 -0
  571. {borgitory-2.8.0 → borgitory-3.1.0}/tests/unit/test_datetime_utils.py +0 -0
  572. {borgitory-2.8.0 → borgitory-3.1.0}/tests/unit/test_debug_service.py +0 -0
  573. {borgitory-2.8.0 → borgitory-3.1.0}/tests/unit/test_dependencies.py +0 -0
  574. {borgitory-2.8.0 → borgitory-3.1.0}/tests/unit/test_job_manager_proper_di.py +0 -0
  575. {borgitory-2.8.0 → borgitory-3.1.0}/tests/unit/test_path_service.py +0 -0
  576. {borgitory-2.8.0 → borgitory-3.1.0}/tests/unit/test_prune_service.py +0 -0
  577. {borgitory-2.8.0 → borgitory-3.1.0}/tests/unit/test_recovery_service.py +0 -0
  578. {borgitory-2.8.0 → borgitory-3.1.0}/tests/unit/test_retention_constants.py +0 -0
  579. {borgitory-2.8.0 → borgitory-3.1.0}/tests/unit/test_secure_borg_command_env.py +0 -0
  580. {borgitory-2.8.0 → borgitory-3.1.0}/tests/unit/test_secure_path_comprehensive.py +0 -0
  581. {borgitory-2.8.0 → borgitory-3.1.0}/tests/unit/test_simple_command_runner.py +0 -0
  582. {borgitory-2.8.0 → borgitory-3.1.0}/tests/unit/test_streaming_fixes.py +0 -0
  583. {borgitory-2.8.0 → borgitory-3.1.0}/tests/unit/utils/test_path_prefix.py +0 -0
  584. {borgitory-2.8.0 → borgitory-3.1.0}/tests/utils/__init__.py +0 -0
  585. {borgitory-2.8.0 → borgitory-3.1.0}/tests/utils/di_testing.py +0 -0
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.4
1
+ Metadata-Version: 2.5
2
2
  Name: borgitory
3
- Version: 2.8.0
3
+ Version: 3.1.0
4
4
  Summary: A comprehensive web-based management interface for BorgBackup repositories with real-time monitoring, automated scheduling, and cloud synchronization capabilities.
5
5
  Project-URL: Homepage, https://borgitory.com
6
6
  Project-URL: Repository, https://github.com/mlapaglia/Borgitory
@@ -39,9 +39,9 @@ Classifier: Topic :: System :: Archiving :: Backup
39
39
  Classifier: Topic :: System :: Systems Administration
40
40
  Requires-Python: >=3.14
41
41
  Requires-Dist: aiofiles>=25.1.0
42
- Requires-Dist: aiohttp>=3.13.3
43
42
  Requires-Dist: aiosqlite>=0.21.0
44
43
  Requires-Dist: alembic>=1.18.2
44
+ Requires-Dist: apprise<3,>=2.0.1
45
45
  Requires-Dist: apscheduler>=3.11.2
46
46
  Requires-Dist: bcrypt>=5.0.0
47
47
  Requires-Dist: cron-descriptor>=2.0.6
@@ -59,7 +59,7 @@ Requires-Dist: urllib3>=2.6.3
59
59
  Requires-Dist: uvicorn[standard]>=0.40.0
60
60
  Provides-Extra: dev
61
61
  Requires-Dist: debugpy>=1.8.20; extra == 'dev'
62
- Requires-Dist: djlint>=1.36.4; extra == 'dev'
62
+ Requires-Dist: djlint>=1.46.4; extra == 'dev'
63
63
  Requires-Dist: httpx>=0.28.1; extra == 'dev'
64
64
  Requires-Dist: mypy>=1.19.1; extra == 'dev'
65
65
  Requires-Dist: pre-commit>=4.5.1; extra == 'dev'
@@ -68,7 +68,6 @@ Requires-Dist: pytest-cov>=7.0.0; extra == 'dev'
68
68
  Requires-Dist: pytest-playwright>=0.7.2; extra == 'dev'
69
69
  Requires-Dist: pytest>=9.0.2; extra == 'dev'
70
70
  Requires-Dist: ruff>=0.15.0; extra == 'dev'
71
- Requires-Dist: sqlalchemy[mypy]>=2.0.46; extra == 'dev'
72
71
  Requires-Dist: types-aiofiles>=25.1.0.20251011; extra == 'dev'
73
72
  Requires-Dist: types-python-dateutil>=2.9.0.20260124; extra == 'dev'
74
73
  Description-Content-Type: text/markdown
@@ -179,3 +178,21 @@ borgitory serve --host 0.0.0.0 --port 8000
179
178
  - Python 3.14+ installed
180
179
  - Rclone installed (optional, for cloud sync features)
181
180
  - BorgBackup does not have a native Windows executable, so WSL2 is required for all backup operations
181
+
182
+ ### Remote Repositories (SSH)
183
+
184
+ Borgitory can back up directly to a repository on a remote borg server, such as BorgBase, a Hetzner Storage Box, or another machine running borg. This keeps an off-site copy that is a separate borg repository rather than an rclone mirror of a local one, so corruption of the local repository does not spread to it. This is not full ransomware protection on its own: a backup that runs after files are encrypted stores the encrypted files, and prune can remove older clean archives. Use append-only mode (below) and a retention policy that keeps older archives.
185
+
186
+ Remote repositories need an SSH client (`ssh`) on the machine running borg. The Docker image includes one; for PyPI installs, install it alongside borg (for example `sudo apt install openssh-client`).
187
+
188
+ When creating or importing a repository, enter an `ssh://` URL as the path:
189
+
190
+ - BorgBase: `ssh://abcd1234@abcd1234.repo.borgbase.com/./repo`
191
+ - Hetzner Storage Box: `ssh://u123456@u123456.your-storagebox.de:23/./backups/repo` (set **Remote Borg Path** to `borg-1.4`)
192
+ - Your own server: `ssh://borg@nas.example.com/./borg/repo` (`/./` means relative to the user's home directory)
193
+
194
+ Paste the SSH private key into the form and add its public key to the server's `authorized_keys`. The key is stored encrypted in the database. The server's host key is trusted on first connection and saved in `<data dir>/ssh/known_hosts`. If the host key later changes deliberately, remove the old entry with `ssh-keygen -R host -f <data dir>/ssh/known_hosts` for port 22, or `ssh-keygen -R "[host]:port" -f <data dir>/ssh/known_hosts` for any other port.
195
+
196
+ For backups that can't be deleted from the client, restrict the key on the server to append-only mode in `authorized_keys`, for example `command="borg serve --append-only --restrict-to-path /home/borg/repo",restrict ssh-ed25519 AAAA...`. Borgitory can't enforce this itself, and in append-only mode prune and compact won't free space on the server.
197
+
198
+ Cloud sync only applies to local repositories and is skipped for remote ones.
@@ -104,3 +104,21 @@ borgitory serve --host 0.0.0.0 --port 8000
104
104
  - Python 3.14+ installed
105
105
  - Rclone installed (optional, for cloud sync features)
106
106
  - BorgBackup does not have a native Windows executable, so WSL2 is required for all backup operations
107
+
108
+ ### Remote Repositories (SSH)
109
+
110
+ Borgitory can back up directly to a repository on a remote borg server, such as BorgBase, a Hetzner Storage Box, or another machine running borg. This keeps an off-site copy that is a separate borg repository rather than an rclone mirror of a local one, so corruption of the local repository does not spread to it. This is not full ransomware protection on its own: a backup that runs after files are encrypted stores the encrypted files, and prune can remove older clean archives. Use append-only mode (below) and a retention policy that keeps older archives.
111
+
112
+ Remote repositories need an SSH client (`ssh`) on the machine running borg. The Docker image includes one; for PyPI installs, install it alongside borg (for example `sudo apt install openssh-client`).
113
+
114
+ When creating or importing a repository, enter an `ssh://` URL as the path:
115
+
116
+ - BorgBase: `ssh://abcd1234@abcd1234.repo.borgbase.com/./repo`
117
+ - Hetzner Storage Box: `ssh://u123456@u123456.your-storagebox.de:23/./backups/repo` (set **Remote Borg Path** to `borg-1.4`)
118
+ - Your own server: `ssh://borg@nas.example.com/./borg/repo` (`/./` means relative to the user's home directory)
119
+
120
+ Paste the SSH private key into the form and add its public key to the server's `authorized_keys`. The key is stored encrypted in the database. The server's host key is trusted on first connection and saved in `<data dir>/ssh/known_hosts`. If the host key later changes deliberately, remove the old entry with `ssh-keygen -R host -f <data dir>/ssh/known_hosts` for port 22, or `ssh-keygen -R "[host]:port" -f <data dir>/ssh/known_hosts` for any other port.
121
+
122
+ For backups that can't be deleted from the client, restrict the key on the server to append-only mode in `authorized_keys`, for example `command="borg serve --append-only --restrict-to-path /home/borg/repo",restrict ssh-ed25519 AAAA...`. Borgitory can't enforce this itself, and in append-only mode prune and compact won't free space on the server.
123
+
124
+ Cloud sync only applies to local repositories and is skipped for remote ones.
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "borgitory"
7
- version = "2.8.0"
7
+ version = "3.1.0"
8
8
  description = "A comprehensive web-based management interface for BorgBackup repositories with real-time monitoring, automated scheduling, and cloud synchronization capabilities."
9
9
  readme = "README.md"
10
10
  license = {file = "LICENSE"}
@@ -25,9 +25,9 @@ classifiers = [
25
25
  requires-python = ">=3.14"
26
26
  dependencies = [
27
27
  "aiofiles>=25.1.0",
28
- "aiohttp>=3.13.3",
29
28
  "aiosqlite>=0.21.0",
30
29
  "alembic>=1.18.2",
30
+ "apprise>=2.0.1,<3",
31
31
  "apscheduler>=3.11.2",
32
32
  "bcrypt>=5.0.0",
33
33
  "cron-descriptor>=2.0.6",
@@ -48,7 +48,7 @@ dependencies = [
48
48
  [project.optional-dependencies]
49
49
  dev = [
50
50
  "debugpy>=1.8.20",
51
- "djlint>=1.36.4",
51
+ "djlint>=1.46.4",
52
52
  "httpx>=0.28.1",
53
53
  "mypy>=1.19.1",
54
54
  "pre-commit>=4.5.1",
@@ -57,7 +57,6 @@ dev = [
57
57
  "pytest-cov>=7.0.0",
58
58
  "pytest-playwright>=0.7.2",
59
59
  "ruff>=0.15.0",
60
- "sqlalchemy[mypy]>=2.0.46",
61
60
  "types-python-dateutil>=2.9.0.20260124",
62
61
  "types-aiofiles>=25.1.0.20251011",
63
62
  ]
@@ -118,7 +117,7 @@ line-length = 88
118
117
  indent-width = 4
119
118
 
120
119
  # Assume Python 3.14+.
121
- target-version = "2.8.0"
120
+ target-version = "3.1.0"
122
121
 
123
122
  [tool.ruff.lint]
124
123
  # Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`) codes by default.
@@ -187,7 +186,7 @@ exclude_lines = [
187
186
 
188
187
  [tool.mypy]
189
188
  # Basic settings
190
- python_version = "2.8.0"
189
+ python_version = "3.1.0"
191
190
  strict = true
192
191
 
193
192
  # Display options
@@ -217,7 +216,6 @@ files = ["src"]
217
216
  # Plugins
218
217
  plugins = [
219
218
  "pydantic.mypy",
220
- "sqlalchemy.ext.mypy.plugin",
221
219
  ]
222
220
 
223
221
  [tool.pydantic-mypy]
@@ -229,7 +227,6 @@ warn_untyped_fields = true
229
227
  [[tool.mypy.overrides]]
230
228
  module = [
231
229
  "aiofiles.*",
232
- "aiohttp.*",
233
230
  "alembic.*",
234
231
  "apscheduler.*",
235
232
  "bcrypt.*",
@@ -1,13 +1,14 @@
1
1
  import os
2
2
  import sys
3
3
  from logging.config import fileConfig
4
- from typing import Optional, Literal
4
+ from typing import Optional
5
5
 
6
6
  from sqlalchemy import engine_from_config
7
7
  from sqlalchemy import pool
8
8
  from sqlalchemy.schema import SchemaItem
9
9
 
10
10
  from alembic import context
11
+ from alembic.runtime.environment import NameFilterType
11
12
 
12
13
  # Add the project root and src directory to the Python path
13
14
  sys.path.insert(0, os.path.abspath("."))
@@ -41,14 +42,7 @@ target_metadata = Base.metadata
41
42
  def include_object(
42
43
  object: SchemaItem,
43
44
  name: Optional[str],
44
- type_: Literal[
45
- "schema",
46
- "table",
47
- "column",
48
- "index",
49
- "unique_constraint",
50
- "foreign_key_constraint",
51
- ],
45
+ type_: NameFilterType,
52
46
  reflected: bool,
53
47
  compare_to: Optional[SchemaItem],
54
48
  ) -> bool:
@@ -0,0 +1,52 @@
1
+ """Multiple source paths for schedules
2
+
3
+ Revision ID: 1bf41c3dc043
4
+ Revises: 8390ab2be88a
5
+ Create Date: 2026-10-11 12:00:00.000000
6
+
7
+ """
8
+
9
+ from typing import Sequence, Union
10
+
11
+ from alembic import op
12
+ import sqlalchemy as sa
13
+
14
+
15
+ # revision identifiers, used by Alembic.
16
+ revision: str = "1bf41c3dc043"
17
+ down_revision: Union[str, Sequence[str], None] = "8390ab2be88a"
18
+ branch_labels: Union[str, Sequence[str], None] = None
19
+ depends_on: Union[str, Sequence[str], None] = None
20
+
21
+
22
+ def upgrade() -> None:
23
+ """Upgrade schema."""
24
+ with op.batch_alter_table("schedules", schema=None) as batch_op:
25
+ batch_op.add_column(
26
+ sa.Column("source_paths", sa.JSON(), nullable=False, server_default="[]")
27
+ )
28
+
29
+ # Empty source_path meant maintenance-only; that becomes an empty list.
30
+ op.execute(
31
+ "UPDATE schedules SET source_paths = json_array(trim(source_path)) "
32
+ "WHERE source_path IS NOT NULL AND trim(source_path) != ''"
33
+ )
34
+
35
+ with op.batch_alter_table("schedules", schema=None) as batch_op:
36
+ batch_op.drop_column("source_path")
37
+
38
+
39
+ def downgrade() -> None:
40
+ """Downgrade schema."""
41
+ with op.batch_alter_table("schedules", schema=None) as batch_op:
42
+ batch_op.add_column(
43
+ sa.Column("source_path", sa.String(), nullable=False, server_default="")
44
+ )
45
+
46
+ # Only a single path can be represented; keep the first one.
47
+ op.execute(
48
+ "UPDATE schedules SET source_path = coalesce(json_extract(source_paths, '$[0]'), '')"
49
+ )
50
+
51
+ with op.batch_alter_table("schedules", schema=None) as batch_op:
52
+ batch_op.drop_column("source_paths")
@@ -0,0 +1,47 @@
1
+ """Manual only and dry run schedules
2
+
3
+ Revision ID: 256b9fa9d31f
4
+ Revises: 2628b151e709
5
+ Create Date: 2026-10-08 12:00:00.000000
6
+
7
+ """
8
+
9
+ from typing import Sequence, Union
10
+
11
+ from alembic import op
12
+ import sqlalchemy as sa
13
+
14
+
15
+ # revision identifiers, used by Alembic.
16
+ revision: str = "256b9fa9d31f"
17
+ down_revision: Union[str, Sequence[str], None] = "2628b151e709"
18
+ branch_labels: Union[str, Sequence[str], None] = None
19
+ depends_on: Union[str, Sequence[str], None] = None
20
+
21
+
22
+ def upgrade() -> None:
23
+ """Upgrade schema."""
24
+ with op.batch_alter_table("schedules", schema=None) as batch_op:
25
+ batch_op.alter_column(
26
+ "cron_expression", existing_type=sa.VARCHAR(), nullable=True
27
+ )
28
+ batch_op.add_column(
29
+ sa.Column(
30
+ "dry_run", sa.Boolean(), nullable=False, server_default=sa.false()
31
+ )
32
+ )
33
+
34
+
35
+ def downgrade() -> None:
36
+ """Downgrade schema."""
37
+ # Manual-only schedules have no cron; give them a placeholder and disable them
38
+ # so they don't start running automatically after the downgrade.
39
+ op.execute(
40
+ "UPDATE schedules SET cron_expression = '0 2 * * *', enabled = 0 "
41
+ "WHERE cron_expression IS NULL"
42
+ )
43
+ with op.batch_alter_table("schedules", schema=None) as batch_op:
44
+ batch_op.drop_column("dry_run")
45
+ batch_op.alter_column(
46
+ "cron_expression", existing_type=sa.VARCHAR(), nullable=False
47
+ )
@@ -0,0 +1,379 @@
1
+ """Migrate notification configs to Apprise
2
+
3
+ Converts Pushover, Discord and Telegram notification configs to the Apprise
4
+ storage format. Rows that cannot be converted are disabled and flagged so the
5
+ user can re-configure them; this migration never fails on bad data.
6
+
7
+ This migration is intentionally self-contained (no imports from the application's
8
+ notification code) so later refactors cannot change what it does.
9
+
10
+ Revision ID: 8390ab2be88a
11
+ Revises: 256b9fa9d31f
12
+ Create Date: 2026-10-08 14:00:00.000000
13
+
14
+ """
15
+
16
+ import base64
17
+ import hashlib
18
+ import json
19
+ import logging
20
+ import os
21
+ import re
22
+ from typing import Callable, Dict, List, Optional, Sequence, Tuple, Union
23
+ from urllib.parse import quote, urlencode
24
+
25
+ from alembic import op
26
+ import sqlalchemy as sa
27
+ from cryptography.fernet import Fernet
28
+
29
+
30
+ # revision identifiers, used by Alembic.
31
+ revision: str = "8390ab2be88a"
32
+ down_revision: Union[str, Sequence[str], None] = "256b9fa9d31f"
33
+ branch_labels: Union[str, Sequence[str], None] = None
34
+ depends_on: Union[str, Sequence[str], None] = None
35
+
36
+ logger = logging.getLogger("alembic.runtime.migration")
37
+
38
+ APPRISE_PROVIDER = "apprise"
39
+ LEGACY_SECRET_FIELDS = {
40
+ "pushover": ("user_key", "app_token"),
41
+ "discord": ("webhook_url",),
42
+ "telegram": ("bot_token",),
43
+ }
44
+ SERVICE_NAMES = {"pover": "Pushover", "discord": "Discord", "tgram": "Telegram"}
45
+ LEGACY_TO_SERVICE = {"pushover": "pover", "discord": "discord", "telegram": "tgram"}
46
+ DISCORD_WEBHOOK_RE = re.compile(
47
+ r"^https?://(?:canary\.|ptb\.)?discord(?:app)?\.com/api/webhooks/(\d+)/([\w-]+)"
48
+ )
49
+
50
+
51
+ class ConversionError(Exception):
52
+ pass
53
+
54
+
55
+ def _load_cipher() -> Optional[Fernet]:
56
+ """Build the app's Fernet cipher without ever generating a new secret key"""
57
+ secret_key = os.getenv("SECRET_KEY")
58
+ if not secret_key:
59
+ try:
60
+ from borgitory.config_module import DATA_DIR
61
+
62
+ secret_file = os.path.join(DATA_DIR, "secret_key")
63
+ if os.path.exists(secret_file):
64
+ with open(secret_file) as f:
65
+ secret_key = f.read().strip()
66
+ except Exception as e:
67
+ logger.warning(f"Could not read secret key file: {e}")
68
+ if not secret_key:
69
+ return None
70
+ fernet_key = base64.urlsafe_b64encode(hashlib.sha256(secret_key.encode()).digest())
71
+ return Fernet(fernet_key)
72
+
73
+
74
+ def _q(value: str) -> str:
75
+ return quote(value.strip(), safe="")
76
+
77
+
78
+ def _with_query(url: str, query: Dict[str, str]) -> str:
79
+ return f"{url}?{urlencode(query, quote_via=quote)}" if query else url
80
+
81
+
82
+ def _is_true(value: object) -> bool:
83
+ return str(value).strip().lower() in ("1", "true", "yes", "on")
84
+
85
+
86
+ def _str(value: object) -> str:
87
+ return "" if value is None else str(value).strip()
88
+
89
+
90
+ def _convert_pushover(
91
+ legacy: Dict[str, object],
92
+ ) -> Tuple[Dict[str, str], Dict[str, str], str]:
93
+ user_key, token = _str(legacy.get("user_key")), _str(legacy.get("app_token"))
94
+ if not user_key or not token:
95
+ raise ConversionError("Pushover user key and app token are required")
96
+
97
+ fields: Dict[str, str] = {}
98
+ query: Dict[str, str] = {}
99
+ device = _str(legacy.get("device"))
100
+ if device:
101
+ fields["targets"] = device
102
+
103
+ priority = _str(legacy.get("priority"))
104
+ if priority and priority != "0":
105
+ if priority not in ("-2", "-1", "1", "2"):
106
+ raise ConversionError(f"Unsupported Pushover priority: {priority}")
107
+ fields["priority"] = priority
108
+ query["priority"] = priority
109
+
110
+ sound = _str(legacy.get("sound"))
111
+ if sound and sound != "default":
112
+ fields["sound"] = sound
113
+ query["sound"] = sound
114
+
115
+ url = f"pover://{_q(user_key)}@{_q(token)}"
116
+ if device:
117
+ url += f"/{_q(device)}"
118
+ return fields, {"user_key": user_key, "token": token}, _with_query(url, query)
119
+
120
+
121
+ def _convert_discord(
122
+ legacy: Dict[str, object],
123
+ ) -> Tuple[Dict[str, str], Dict[str, str], str]:
124
+ webhook_url = _str(legacy.get("webhook_url"))
125
+ match = DISCORD_WEBHOOK_RE.match(webhook_url)
126
+ if not match:
127
+ raise ConversionError("Discord webhook URL could not be parsed")
128
+ webhook_id, webhook_token = match.group(1), match.group(2)
129
+
130
+ fields: Dict[str, str] = {}
131
+ query: Dict[str, str] = {}
132
+ botname = _str(legacy.get("username"))
133
+ if botname:
134
+ fields["botname"] = botname
135
+ avatar_url = _str(legacy.get("avatar_url"))
136
+ if avatar_url:
137
+ fields["avatar_url"] = avatar_url
138
+ query["avatar_url"] = avatar_url
139
+
140
+ url = "discord://"
141
+ if botname:
142
+ url += f"{_q(botname)}@"
143
+ url += f"{_q(webhook_id)}/{_q(webhook_token)}"
144
+ secrets = {"webhook_id": webhook_id, "webhook_token": webhook_token}
145
+ return fields, secrets, _with_query(url, query)
146
+
147
+
148
+ def _convert_telegram(
149
+ legacy: Dict[str, object],
150
+ ) -> Tuple[Dict[str, str], Dict[str, str], str]:
151
+ bot_token, chat_id = _str(legacy.get("bot_token")), _str(legacy.get("chat_id"))
152
+ if not bot_token or not chat_id:
153
+ raise ConversionError("Telegram bot token and chat ID are required")
154
+
155
+ fields: Dict[str, str] = {"targets": chat_id}
156
+ query: Dict[str, str] = {}
157
+ if _is_true(legacy.get("disable_notification")):
158
+ fields["silent"] = "yes"
159
+ query["silent"] = "yes"
160
+
161
+ url = f"tgram://{_q(bot_token)}/{_q(chat_id)}"
162
+ return fields, {"bot_token": bot_token}, _with_query(url, query)
163
+
164
+
165
+ CONVERTERS: Dict[
166
+ str, Callable[[Dict[str, object]], Tuple[Dict[str, str], Dict[str, str], str]]
167
+ ] = {
168
+ "pushover": _convert_pushover,
169
+ "discord": _convert_discord,
170
+ "telegram": _convert_telegram,
171
+ }
172
+
173
+
174
+ def _decrypt_legacy(
175
+ provider: str, raw: Dict[str, object], cipher: Optional[Fernet]
176
+ ) -> Dict[str, object]:
177
+ legacy = dict(raw)
178
+ for field in LEGACY_SECRET_FIELDS.get(provider, ()):
179
+ encrypted = legacy.pop(f"encrypted_{field}", None)
180
+ if encrypted:
181
+ if cipher is None:
182
+ raise ConversionError("Secret key unavailable; cannot decrypt settings")
183
+ legacy[field] = cipher.decrypt(str(encrypted).encode()).decode()
184
+ return legacy
185
+
186
+
187
+ def _validate(url: str) -> None:
188
+ import apprise
189
+
190
+ if apprise.Apprise.instantiate(url, suppress_exceptions=True) is None:
191
+ raise ConversionError("Converted settings were rejected by Apprise")
192
+
193
+
194
+ def convert_row(
195
+ provider: str, provider_config: str, cipher: Optional[Fernet]
196
+ ) -> Tuple[Dict[str, object], bool]:
197
+ """
198
+ Convert a legacy row to the Apprise format.
199
+
200
+ Returns:
201
+ Tuple of (new provider_config dict, whether the row may stay enabled)
202
+ """
203
+ service = LEGACY_TO_SERVICE.get(provider)
204
+ stored: Dict[str, object] = {
205
+ "version": 1,
206
+ "mode": "service" if service else "manual",
207
+ "service_name": SERVICE_NAMES.get(service or "", provider.title()),
208
+ "encrypted_urls": "",
209
+ "legacy_provider": provider,
210
+ }
211
+ if service:
212
+ stored.update({"service": service, "fields": {}, "encrypted_fields": {}})
213
+
214
+ try:
215
+ if not service:
216
+ raise ConversionError(f"Unsupported notification provider: {provider}")
217
+ if cipher is None:
218
+ raise ConversionError("Secret key unavailable; cannot encrypt settings")
219
+
220
+ raw = json.loads(provider_config) if provider_config else {}
221
+ if not isinstance(raw, dict):
222
+ raise ConversionError("Stored settings are not a JSON object")
223
+
224
+ legacy = _decrypt_legacy(provider, raw, cipher)
225
+ fields, secrets, url = CONVERTERS[provider](legacy)
226
+ _validate(url)
227
+
228
+ stored["fields"] = fields
229
+ stored["encrypted_fields"] = {
230
+ k: cipher.encrypt(v.encode()).decode() for k, v in secrets.items()
231
+ }
232
+ stored["encrypted_urls"] = cipher.encrypt(url.encode()).decode()
233
+ return stored, True
234
+ except Exception as e:
235
+ reason = str(e) if isinstance(e, ConversionError) else type(e).__name__
236
+ stored["migration_error"] = (
237
+ f"Could not convert this {provider} notification automatically ({reason}). "
238
+ "Edit it, re-enter its settings and save."
239
+ )
240
+ return stored, False
241
+
242
+
243
+ def upgrade() -> None:
244
+ """Convert legacy notification configs to Apprise."""
245
+ conn = op.get_bind()
246
+ rows = conn.execute(
247
+ sa.text(
248
+ "SELECT id, name, provider, provider_config FROM notification_configs "
249
+ "WHERE provider != :provider"
250
+ ),
251
+ {"provider": APPRISE_PROVIDER},
252
+ ).fetchall()
253
+ if not rows:
254
+ return
255
+
256
+ cipher = _load_cipher()
257
+ for row_id, name, provider, provider_config in rows:
258
+ stored, keep_enabled = convert_row(provider, provider_config, cipher)
259
+ params: Dict[str, object] = {
260
+ "id": row_id,
261
+ "provider": APPRISE_PROVIDER,
262
+ "provider_config": json.dumps(stored),
263
+ }
264
+ if keep_enabled:
265
+ conn.execute(
266
+ sa.text(
267
+ "UPDATE notification_configs SET provider = :provider, "
268
+ "provider_config = :provider_config WHERE id = :id"
269
+ ),
270
+ params,
271
+ )
272
+ else:
273
+ logger.warning(
274
+ f"Notification '{name}' could not be migrated to Apprise and was disabled: "
275
+ f"{stored.get('migration_error')}"
276
+ )
277
+ conn.execute(
278
+ sa.text(
279
+ "UPDATE notification_configs SET provider = :provider, "
280
+ "provider_config = :provider_config, enabled = 0 WHERE id = :id"
281
+ ),
282
+ params,
283
+ )
284
+
285
+
286
+ def _revert_row(
287
+ stored: Dict[str, object], cipher: Fernet
288
+ ) -> Optional[Tuple[str, Dict[str, object]]]:
289
+ """Best-effort conversion of an Apprise row back to the legacy format"""
290
+ service = stored.get("service")
291
+ raw_fields = stored.get("fields")
292
+ raw_secrets = stored.get("encrypted_fields")
293
+ if stored.get("mode") != "service" or not isinstance(raw_fields, dict):
294
+ return None
295
+ if not isinstance(raw_secrets, dict):
296
+ return None
297
+
298
+ fields = {str(k): str(v) for k, v in raw_fields.items()}
299
+ secrets = {
300
+ str(k): cipher.decrypt(str(v).encode()).decode() for k, v in raw_secrets.items()
301
+ }
302
+
303
+ def enc(value: str) -> str:
304
+ return cipher.encrypt(value.encode()).decode()
305
+
306
+ legacy: Dict[str, object]
307
+ if service == "pover" and "user_key" in secrets and "token" in secrets:
308
+ legacy = {
309
+ "encrypted_user_key": enc(secrets["user_key"]),
310
+ "encrypted_app_token": enc(secrets["token"]),
311
+ "priority": int(fields.get("priority", "0")),
312
+ "sound": fields.get("sound", "default"),
313
+ }
314
+ targets: List[str] = [
315
+ t for t in re.split(r"[,\s/]+", fields.get("targets", "")) if t
316
+ ]
317
+ if targets:
318
+ legacy["device"] = targets[0]
319
+ return "pushover", legacy
320
+ if service == "discord" and "webhook_id" in secrets and "webhook_token" in secrets:
321
+ legacy = {
322
+ "encrypted_webhook_url": enc(
323
+ f"https://discord.com/api/webhooks/{secrets['webhook_id']}/{secrets['webhook_token']}"
324
+ )
325
+ }
326
+ if fields.get("botname"):
327
+ legacy["username"] = fields["botname"]
328
+ if fields.get("avatar_url"):
329
+ legacy["avatar_url"] = fields["avatar_url"]
330
+ return "discord", legacy
331
+ if service == "tgram" and "bot_token" in secrets and fields.get("targets"):
332
+ chat_id = [t for t in re.split(r"[,\s/]+", fields["targets"]) if t][0]
333
+ legacy = {
334
+ "encrypted_bot_token": enc(secrets["bot_token"]),
335
+ "chat_id": chat_id,
336
+ "parse_mode": "HTML",
337
+ "disable_notification": fields.get("silent") == "yes",
338
+ }
339
+ return "telegram", legacy
340
+ return None
341
+
342
+
343
+ def downgrade() -> None:
344
+ """Convert Pushover, Discord and Telegram configs back; disable the rest."""
345
+ conn = op.get_bind()
346
+ rows = conn.execute(
347
+ sa.text(
348
+ "SELECT id, provider_config FROM notification_configs WHERE provider = :provider"
349
+ ),
350
+ {"provider": APPRISE_PROVIDER},
351
+ ).fetchall()
352
+ if not rows:
353
+ return
354
+
355
+ cipher = _load_cipher()
356
+ for row_id, provider_config in rows:
357
+ reverted = None
358
+ try:
359
+ stored = json.loads(provider_config) if provider_config else {}
360
+ if cipher is not None and isinstance(stored, dict):
361
+ reverted = _revert_row(stored, cipher)
362
+ except Exception as e:
363
+ logger.warning(f"Could not revert notification {row_id}: {e}")
364
+
365
+ if reverted is None:
366
+ conn.execute(
367
+ sa.text("UPDATE notification_configs SET enabled = 0 WHERE id = :id"),
368
+ {"id": row_id},
369
+ )
370
+ continue
371
+
372
+ provider, legacy = reverted
373
+ conn.execute(
374
+ sa.text(
375
+ "UPDATE notification_configs SET provider = :provider, "
376
+ "provider_config = :provider_config WHERE id = :id"
377
+ ),
378
+ {"id": row_id, "provider": provider, "provider_config": json.dumps(legacy)},
379
+ )