borgitory 3.0.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.
- {borgitory-3.0.0 → borgitory-3.1.0}/PKG-INFO +19 -1
- {borgitory-3.0.0 → borgitory-3.1.0}/README.md +18 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/pyproject.toml +3 -3
- borgitory-3.1.0/src/borgitory/alembic/versions/c3f1a7d2b9e4_add_remote_ssh_fields_to_repositories.py +35 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/api/cloud_sync/cloud_sync.py +25 -22
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/api/repositories.py +12 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/api/repository_stats.py +29 -12
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/models/database.py +37 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/models/repository_dtos.py +4 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/models/schemas.py +72 -3
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/protocols/command_protocols.py +2 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/services/archives/archive_manager.py +5 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/services/borg_service.py +16 -38
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/services/jobs/job_database_manager.py +2 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/services/jobs/job_executor.py +6 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/services/jobs/job_stream_service.py +24 -19
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/services/jobs/task_executors/backup_task_executor.py +7 -6
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/services/jobs/task_executors/check_task_executor.py +6 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/services/jobs/task_executors/cloud_sync_task_executor.py +16 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/services/jobs/task_executors/compact_task_executor.py +6 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/services/jobs/task_executors/prune_task_executor.py +6 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/services/recovery_service.py +4 -0
- borgitory-3.1.0/src/borgitory/services/repositories/repository_environment.py +56 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/services/repositories/repository_service.py +117 -20
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/services/repositories/repository_stats_service.py +24 -2
- borgitory-3.1.0/src/borgitory/services/ssh/repository_ssh_service.py +160 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/backups/manual_form.html +1 -1
- borgitory-3.1.0/src/borgitory/templates/partials/cloud_sync/tab.html +16 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/jobs/task_item_streaming.html +20 -10
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/repositories/create/form_create.html +6 -4
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/repositories/import/form_import.html +5 -3
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/repositories/list_content.html +1 -1
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/repositories/modal/borg_info.html +5 -1
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/repositories/modal/details_modal.html +5 -2
- borgitory-3.1.0/src/borgitory/templates/partials/repositories/ssh_fields.html +41 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/schedules/create_form.html +1 -1
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/schedules/edit_form.html +1 -1
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/shared/path_autocomplete_dropdown.html +6 -4
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/utils/security.py +48 -2
- borgitory-3.1.0/tests/integration/repositories/test_remote_ssh_repositories.py +562 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/integration/repositories/test_repository_stats_html.py +2 -1
- borgitory-3.1.0/tests/integration/ssh_server.py +187 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/unit/borg/test_borg_service_core.py +26 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/unit/jobs/test_compact_task_executor.py +8 -2
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/unit/jobs/test_job_stream_service.py +2 -2
- borgitory-3.1.0/tests/unit/repositories/test_remote_repositories.py +678 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/unit/repositories/test_repository_management_service.py +2 -0
- borgitory-3.1.0/tests/unit/templates/test_task_item_streaming_template.py +118 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/unit/test_streaming_edge_cases.py +3 -2
- borgitory-3.1.0/tests/unit/utils/__init__.py +0 -0
- borgitory-3.1.0/tests/unit/utils/test_secret_key.py +33 -0
- borgitory-3.0.0/src/borgitory/templates/partials/cloud_sync/tab.html +0 -12
- {borgitory-3.0.0 → borgitory-3.1.0}/.gitignore +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/LICENSE +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/__init__.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/alembic/README +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/alembic/env.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/alembic/script.py.mako +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/alembic/versions/02b7b29d38c0_add_encryption_type_and_keyfile_content_.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/alembic/versions/18b9095bc772_add_patterns_column_to_schedules_table.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/alembic/versions/1bf41c3dc043_multiple_source_paths_for_schedules.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/alembic/versions/1d47e9231dd0_rename_cleanup_to_prune.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/alembic/versions/256b9fa9d31f_manual_only_and_dry_run_schedules.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/alembic/versions/2628b151e709_make_passphrase_optional.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/alembic/versions/3335c0eac68e_create_initial_schema.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/alembic/versions/5e6cc17d11a5_user_installed_packages.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/alembic/versions/78c9fff46e06_add_compact_after_field_to_pruneconfig.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/alembic/versions/8390ab2be88a_migrate_notifications_to_apprise.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/alembic/versions/9b5d5f5e8cbc_add_pre_post_job_hooks_to_schedule.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/alembic/versions/9e4c8456ea53_add_cache_dir_field_to_repositories_.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/alembic/versions/9f06f8c8088d_initial_empty_state.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/alembic/versions/d294fdc9a5e7_fix_uuid_columns_for_sqlite.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/alembic/versions/eb3518e71c73_add_more_prune_settings_to_cleanup_.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/alembic.ini +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/api/__init__.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/api/auth.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/api/backups.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/api/cancel_on_disconnect.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/api/cloud_sync/__init__.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/api/cloud_sync/s3.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/api/debug.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/api/jobs.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/api/notifications.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/api/packages.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/api/prune.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/api/repository_check_configs.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/api/schedules.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/api/shared.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/api/tabs.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/cli.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/config/__init__.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/config/command_runner_config.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/config/job_manager_config.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/config_module.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/constants/__init__.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/constants/retention.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/custom_types.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/dependencies.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/factories/__init__.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/factories/service_factory.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/main.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/models/__init__.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/models/borg_info.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/models/enums.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/models/job_results.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/models/patterns.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/protocols/__init__.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/protocols/archive_manager_protocol.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/protocols/cloud_protocols.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/protocols/command_executor_protocol.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/protocols/environment_protocol.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/protocols/file_protocols.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/protocols/job_database_manager_protocol.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/protocols/job_event_broadcaster_protocol.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/protocols/job_output_manager_protocol.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/protocols/job_protocols.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/protocols/job_queue_manager_protocol.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/protocols/notification_protocols.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/protocols/path_protocols.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/protocols/repository_protocols.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/protocols/storage_protocols.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/protocols/system_protocol.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/py.typed +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/services/__init__.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/services/archives/archive_models.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/services/borg/borg_pattern_validation_service.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/services/borg/shell_pattern.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/services/cloud_providers/__init__.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/services/cloud_providers/cloud_sync_service.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/services/cloud_providers/orchestration.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/services/cloud_providers/registry.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/services/cloud_providers/registry_factory.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/services/cloud_providers/storage/__init__.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/services/cloud_providers/storage/base.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/services/cloud_providers/storage/pcloud_storage.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/services/cloud_providers/storage/s3_provider_config.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/services/cloud_providers/storage/s3_storage.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/services/cloud_providers/storage/sftp_storage.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/services/cloud_providers/storage/smb_storage.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/services/cloud_providers/types.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/services/cloud_sync_config_service.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/services/command_execution/__init__.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/services/command_execution/command_executor_factory.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/services/command_execution/linux_command_executor.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/services/command_execution/wsl_command_executor.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/services/configuration_service.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/services/cron_description_service.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/services/debug_service.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/services/encryption_service.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/services/files/file_service_factory.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/services/files/linux_file_service.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/services/files/wsl_file_service.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/services/hooks/__init__.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/services/hooks/hook_config.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/services/hooks/hook_execution_service.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/services/jobs/broadcaster/event_type.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/services/jobs/broadcaster/job_event.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/services/jobs/broadcaster/job_event_broadcaster.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/services/jobs/job_manager.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/services/jobs/job_manager_factory.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/services/jobs/job_models.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/services/jobs/job_output_manager.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/services/jobs/job_queue_manager.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/services/jobs/job_render_service.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/services/jobs/job_service.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/services/jobs/task_executors/__init__.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/services/jobs/task_executors/hook_task_executor.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/services/jobs/task_executors/notification_task_executor.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/services/migrations/__init__.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/services/migrations/migration_factory.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/services/migrations/migration_service.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/services/notifications/__init__.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/services/notifications/apprise_catalog.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/services/notifications/apprise_storage.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/services/notifications/apprise_url_builder.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/services/notifications/config_service.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/services/notifications/service.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/services/notifications/types.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/services/package_manager_service.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/services/path/__init__.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/services/path/path_service.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/services/path/path_service_factory.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/services/path/platform_service.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/services/prune_service.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/services/rclone_service.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/services/rclone_types.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/services/repositories/repository_check_config_service.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/services/scheduling/cron_utils.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/services/scheduling/hook_service.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/services/scheduling/pattern_service.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/services/scheduling/schedule_service.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/services/scheduling/scheduler_service.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/services/simple_command_runner.py +0 -0
- {borgitory-3.0.0/tests/integration/archives → borgitory-3.1.0/src/borgitory/services/ssh}/__init__.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/services/startup/package_restoration_service.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/services/system/__init__.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/services/system/system_operations.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/services/task_definition_builder.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/services/upcoming_backups_service.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/services/volumes/file_system_interface.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/services/volumes/os_file_system.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/static/css/modern-components.css +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/static/css/tailwind-input.css +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/static/favicon/android-chrome-192x192.png +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/static/favicon/android-chrome-512x512.png +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/static/favicon/apple-touch-icon.png +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/static/favicon/favicon-16x16.png +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/static/favicon/favicon-32x32.png +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/static/favicon/favicon.ico +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/static/favicon/site.webmanifest +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/static/js/app.js +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/static/js/components/jobs.js +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/static/js/components/navigation.js +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/static/vendor/chart.min.js +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/static/vendor/htmx-ext-json-enc.js +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/static/vendor/htmx-ext-sse.js +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/static/vendor/htmx.min.js +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/base.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/index.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/login.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/macros/datetime.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/archives/contents_modal.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/archives/directory_contents.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/archives/directory_loading_state.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/archives/directory_loading_with_trigger.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/archives/empty_state.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/archives/error_message.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/archives/list_content.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/archives/loading_state.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/archives/loading_with_trigger.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/archives/repository_selector.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/archives/tab.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/auth/login_error.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/auth/login_form_active.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/auth/login_success.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/auth/register_error.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/auth/register_form_active.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/auth/register_success.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/backups/operations.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/backups/tab.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/cloud_sync/action_error.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/cloud_sync/action_success.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/cloud_sync/config_list_content.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/cloud_sync/create_error.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/cloud_sync/create_success.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/cloud_sync/form.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/cloud_sync/list.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/cloud_sync/provider_fields.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/cloud_sync/providers/pcloud/pcloud_fields.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/cloud_sync/providers/s3/s3_endpoint_field.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/cloud_sync/providers/s3/s3_fields.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/cloud_sync/providers/s3/s3_provider_options.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/cloud_sync/providers/s3/s3_region_options.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/cloud_sync/providers/s3/s3_storage_class_options.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/cloud_sync/providers/sftp/sftp_fields.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/cloud_sync/providers/smb/smb_fields.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/cloud_sync/test_error.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/cloud_sync/test_success.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/cloud_sync/test_warning.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/cloud_sync/update_error.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/cloud_sync/update_success.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/common/error_message.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/debug/debug_panel.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/debug/tab.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/jobs/backup_error.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/jobs/backup_success.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/jobs/current_jobs_list.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/jobs/empty_state.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/jobs/error_state.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/jobs/job_details_static.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/jobs/job_details_streaming.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/jobs/job_item.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/jobs/job_stop_error.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/jobs/job_stop_success.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/jobs/tab.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/jobs/task_item_static.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/navigation.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/navigation_nav.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/notifications/action_error.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/notifications/action_success.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/notifications/add_form.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/notifications/apprise_fields.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/notifications/config_list_content.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/notifications/create_error.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/notifications/create_success.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/notifications/edit_form.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/notifications/list.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/notifications/manual_fields.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/notifications/service_select.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/notifications/tab.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/notifications/test_error.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/notifications/test_success.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/notifications/update_error.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/notifications/update_success.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/packages/empty_search.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/packages/error.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/packages/install_error.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/packages/install_success.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/packages/installed_list.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/packages/package_manager.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/packages/remove_error.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/packages/remove_success.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/packages/search_error.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/packages/search_results.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/packages/selected_packages.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/packages/tab.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/prune/action_error.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/prune/action_success.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/prune/config_form.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/prune/config_form_error.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/prune/config_form_success.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/prune/config_list_content.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/prune/create_error.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/prune/create_success.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/prune/delete_error.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/prune/delete_success.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/prune/form.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/prune/policies.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/prune/prune_error.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/prune/prune_success.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/prune/retention_fields.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/prune/strategy_fields.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/prune/tab.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/prune/update_error.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/prune/update_success.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/repositories/create/form_create_error.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/repositories/create/form_create_success.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/repositories/create/form_update_error.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/repositories/create/form_update_success.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/repositories/create/passphrase_field.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/repositories/delete_success.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/repositories/import/encryption_fields.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/repositories/import/form_import_error.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/repositories/import/form_import_success.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/repositories/list.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/repositories/modal/break_lock_button.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/repositories/modal/break_lock_button_modal.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/repositories/modal/lock_status.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/repositories/tab.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/repository_check/action_error.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/repository_check/action_success.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/repository_check/check_error.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/repository_check/check_success.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/repository_check/config_list_content.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/repository_check/create_error.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/repository_check/create_form.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/repository_check/create_success.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/repository_check/custom_options.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/repository_check/delete_error.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/repository_check/delete_success.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/repository_check/dynamic_options.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/repository_check/edit_form.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/repository_check/form.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/repository_check/tab.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/repository_check/update_error.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/repository_check/update_success.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/repository_stats/stats_panel.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/schedules/create_error.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/schedules/create_success.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/schedules/cron_description.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/schedules/cron_expression_form.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/schedules/delete_error.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/schedules/delete_success.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/schedules/hooks/hook_field_modal.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/schedules/hooks/hooks_container.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/schedules/hooks/hooks_edit_content.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/schedules/hooks/hooks_modal.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/schedules/hooks/hooks_save_response.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/schedules/hooks/hooks_validation_error.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/schedules/list.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/schedules/patterns/pattern_field_modal.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/schedules/patterns/pattern_validation_result.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/schedules/patterns/patterns_container.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/schedules/patterns/patterns_modal.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/schedules/patterns/patterns_save_response.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/schedules/patterns/patterns_validation_error.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/schedules/patterns/patterns_validation_results.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/schedules/run_success.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/schedules/schedule_list_content.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/schedules/tab.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/schedules/upcoming.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/schedules/upcoming_backups_content.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/schedules/update_error.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/schedules/update_success.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/shared/notification.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/shared/package_autocomplete.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/shared/path_autocomplete.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/shared/path_autocomplete_loading.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/shared/source_path_row.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/shared/source_paths_input.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/statistics/empty_state.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/statistics/loading_state.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/statistics/repository_selector.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/templates/partials/statistics/tab.html +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/utils/__init__.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/utils/datetime_utils.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/utils/path_prefix.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/utils/secure_path.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/utils/template_paths.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/src/borgitory/utils/template_responses.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/__init__.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/conftest.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/e2e/__init__.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/e2e/cloud_providers/test_cloud_providers.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/e2e/conftest.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/e2e/pytest.e2e.ini +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/e2e/test_navigation.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/fixtures/__init__.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/fixtures/job_fixtures.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/fixtures/notification_fixtures.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/fixtures/registry_fixtures.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/integration/__init__.py +0 -0
- {borgitory-3.0.0/tests/integration/auth → borgitory-3.1.0/tests/integration/archives}/__init__.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/integration/archives/test_archive_browser_htmx.py +0 -0
- {borgitory-3.0.0/tests/integration/cloud_sync → borgitory-3.1.0/tests/integration/auth}/__init__.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/integration/auth/test_auth_htmx.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/integration/auth/test_auth_redirect_flow.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/integration/auth/test_main_login_page.py +0 -0
- {borgitory-3.0.0/tests/integration/jobs → borgitory-3.1.0/tests/integration/cloud_sync}/__init__.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/integration/cloud_sync/test_cloud_sync_api.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/integration/cloud_sync/test_s3_api.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/integration/conftest.py +0 -0
- {borgitory-3.0.0/tests/integration/notifications → borgitory-3.1.0/tests/integration/jobs}/__init__.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/integration/jobs/test_job_stop_api_simple.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/integration/jobs/test_job_stop_integration.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/integration/jobs/test_jobs_api_sse.py +0 -0
- {borgitory-3.0.0/tests/integration/packages → borgitory-3.1.0/tests/integration/notifications}/__init__.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/integration/notifications/test_notification_configs_api.py +0 -0
- {borgitory-3.0.0/tests/integration/repositories → borgitory-3.1.0/tests/integration/packages}/__init__.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/integration/packages/test_package_selection_endpoints.py +0 -0
- {borgitory-3.0.0/tests/integration/schedules → borgitory-3.1.0/tests/integration/repositories}/__init__.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/integration/repositories/test_repositories_api.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/integration/repositories/test_repository_check_configs_api.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/integration/repositories/test_repository_management_api.py +0 -0
- {borgitory-3.0.0/tests/unit → borgitory-3.1.0/tests/integration/schedules}/__init__.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/integration/schedules/test_cron_description_api.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/integration/schedules/test_cron_description_htmx_api.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/integration/schedules/test_manual_run_apscheduler.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/integration/schedules/test_schedule_creation_api.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/integration/schedules/test_schedules_api.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/integration/schedules/test_schedules_hooks_api.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/integration/schedules/test_schedules_patterns_api.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/integration/test_app_startup.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/integration/test_backups_api.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/integration/test_basic.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/integration/test_basic_endpoints.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/integration/test_di_testing_infrastructure.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/integration/test_jobs_api.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/integration/test_prune_api.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/integration/test_repository_archives_navigation.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/integration/test_tabs_api.py +0 -0
- {borgitory-3.0.0/tests/unit/archives → borgitory-3.1.0/tests/unit}/__init__.py +0 -0
- {borgitory-3.0.0/tests/unit/borg → borgitory-3.1.0/tests/unit/archives}/__init__.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/unit/archives/test_archive_manager.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/unit/archives/test_archive_manager_caching.py +0 -0
- {borgitory-3.0.0/tests/unit/cloud_providers → borgitory-3.1.0/tests/unit/borg}/__init__.py +0 -0
- {borgitory-3.0.0/tests/unit/command_execution → borgitory-3.1.0/tests/unit/cloud_providers}/__init__.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/unit/cloud_providers/test_display_details.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/unit/cloud_providers/test_orchestration.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/unit/cloud_providers/test_pcloud_storage.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/unit/cloud_providers/test_provider_validation.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/unit/cloud_providers/test_registry.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/unit/cloud_providers/test_registry_integration.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/unit/cloud_providers/test_s3_provider_config.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/unit/cloud_providers/test_schema_validation.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/unit/cloud_providers/test_service.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/unit/cloud_providers/test_sftp_storage.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/unit/cloud_providers/test_smb_storage.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/unit/cloud_providers/test_storage.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/unit/cloud_providers/test_types.py +0 -0
- {borgitory-3.0.0/tests/unit/factories → borgitory-3.1.0/tests/unit/command_execution}/__init__.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/unit/command_execution/test_linux_command_executor.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/unit/command_execution/test_wsl_command_executor.py +0 -0
- {borgitory-3.0.0/tests/unit/hooks → borgitory-3.1.0/tests/unit/factories}/__init__.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/unit/factories/test_service_factory.py +0 -0
- {borgitory-3.0.0/tests/unit/jobs → borgitory-3.1.0/tests/unit/hooks}/__init__.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/unit/hooks/test_api_critical_hooks.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/unit/hooks/test_composite_job_critical_failure.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/unit/hooks/test_critical_hook_config.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/unit/hooks/test_critical_hook_execution.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/unit/hooks/test_hook_config.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/unit/hooks/test_hook_execution_service.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/unit/hooks/test_job_manager_critical_hooks.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/unit/hooks/test_notification_messages_hooks.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/unit/hooks/test_task_definition_integration.py +0 -0
- {borgitory-3.0.0/tests/unit/notifications → borgitory-3.1.0/tests/unit/jobs}/__init__.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/unit/jobs/conftest.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/unit/jobs/test_backup_source_paths.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/unit/jobs/test_database_integration.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/unit/jobs/test_ignore_lock_functionality.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/unit/jobs/test_job_database_manager.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/unit/jobs/test_job_event_broadcaster.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/unit/jobs/test_job_executor.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/unit/jobs/test_job_executor_comprehensive.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/unit/jobs/test_job_manager.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/unit/jobs/test_job_manager_comprehensive.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/unit/jobs/test_job_manager_factory.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/unit/jobs/test_job_manager_stop.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/unit/jobs/test_job_manager_task_execution.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/unit/jobs/test_job_output_manager.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/unit/jobs/test_job_render_service_coverage.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/unit/jobs/test_job_render_service_new_architecture.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/unit/jobs/test_job_service.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/unit/jobs/test_job_stop_functionality.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/unit/jobs/test_job_stop_service.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/unit/jobs/test_sse_multiline_formatting.py +0 -0
- {borgitory-3.0.0/tests/unit/packages → borgitory-3.1.0/tests/unit/notifications}/__init__.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/unit/notifications/test_apprise_catalog.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/unit/notifications/test_apprise_url_builder.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/unit/notifications/test_notification_config_service.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/unit/notifications/test_notification_service.py +0 -0
- {borgitory-3.0.0/tests/unit/protocols → borgitory-3.1.0/tests/unit/packages}/__init__.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/unit/packages/test_package_database_integration.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/unit/packages/test_package_manager_service.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/unit/path/test_platform_service_macos.py +0 -0
- {borgitory-3.0.0/tests/unit/repositories → borgitory-3.1.0/tests/unit/protocols}/__init__.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/unit/protocols/protocol_testing_utils.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/unit/protocols/test_protocol_compliance.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/unit/protocols/test_simple_command_runner_protocol.py +0 -0
- {borgitory-3.0.0/tests/unit/schedules → borgitory-3.1.0/tests/unit/repositories}/__init__.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/unit/repositories/test_repository_check_config_service.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/unit/repositories/test_repository_service.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/unit/repositories/test_repository_stats_service_unit.py +0 -0
- {borgitory-3.0.0/tests/unit/scheduling → borgitory-3.1.0/tests/unit/schedules}/__init__.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/unit/schedules/test_next_run_update.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/unit/schedules/test_schedule_service.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/unit/schedules/test_schedule_validation_service.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/unit/schedules/test_scheduler_service.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/unit/schedules/test_validate_patterns_json.py +0 -0
- {borgitory-3.0.0/tests/unit/services → borgitory-3.1.0/tests/unit/scheduling}/__init__.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/unit/scheduling/test_cron_utils.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/unit/scheduling/test_hook_service.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/unit/scheduling/test_pattern_service.py +0 -0
- {borgitory-3.0.0/tests/unit/services/migrations → borgitory-3.1.0/tests/unit/services}/__init__.py +0 -0
- {borgitory-3.0.0/tests/unit/templates → borgitory-3.1.0/tests/unit/services/migrations}/__init__.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/unit/services/migrations/test_migration_service.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/unit/services/test_borg_pattern_validation_service.py +0 -0
- {borgitory-3.0.0/tests/unit/utils → borgitory-3.1.0/tests/unit/templates}/__init__.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/unit/templates/test_current_jobs_template.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/unit/test_cache_dir_functionality.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/unit/test_cache_dir_normalization.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/unit/test_cron_description_service.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/unit/test_database_models.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/unit/test_datetime_utils.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/unit/test_debug_service.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/unit/test_dependencies.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/unit/test_job_manager_proper_di.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/unit/test_migrate_notifications_to_apprise.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/unit/test_multiple_source_paths_migration.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/unit/test_path_service.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/unit/test_prune_service.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/unit/test_recovery_service.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/unit/test_retention_constants.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/unit/test_secure_borg_command_env.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/unit/test_secure_path_comprehensive.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/unit/test_simple_command_runner.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/unit/test_source_paths_schema.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/unit/test_streaming_fixes.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/unit/test_task_definition_builder.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/unit/utils/test_path_prefix.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/utils/__init__.py +0 -0
- {borgitory-3.0.0 → borgitory-3.1.0}/tests/utils/di_testing.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: borgitory
|
|
3
|
-
Version: 3.
|
|
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
|
|
@@ -178,3 +178,21 @@ borgitory serve --host 0.0.0.0 --port 8000
|
|
|
178
178
|
- Python 3.14+ installed
|
|
179
179
|
- Rclone installed (optional, for cloud sync features)
|
|
180
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 = "3.
|
|
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"}
|
|
@@ -117,7 +117,7 @@ line-length = 88
|
|
|
117
117
|
indent-width = 4
|
|
118
118
|
|
|
119
119
|
# Assume Python 3.14+.
|
|
120
|
-
target-version = "3.
|
|
120
|
+
target-version = "3.1.0"
|
|
121
121
|
|
|
122
122
|
[tool.ruff.lint]
|
|
123
123
|
# Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`) codes by default.
|
|
@@ -186,7 +186,7 @@ exclude_lines = [
|
|
|
186
186
|
|
|
187
187
|
[tool.mypy]
|
|
188
188
|
# Basic settings
|
|
189
|
-
python_version = "3.
|
|
189
|
+
python_version = "3.1.0"
|
|
190
190
|
strict = true
|
|
191
191
|
|
|
192
192
|
# Display options
|
borgitory-3.1.0/src/borgitory/alembic/versions/c3f1a7d2b9e4_add_remote_ssh_fields_to_repositories.py
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"""Add remote SSH fields to repositories table
|
|
2
|
+
|
|
3
|
+
Revision ID: c3f1a7d2b9e4
|
|
4
|
+
Revises: 1bf41c3dc043
|
|
5
|
+
Create Date: 2026-10-11 13: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 = "c3f1a7d2b9e4"
|
|
17
|
+
down_revision: Union[str, Sequence[str], None] = "1bf41c3dc043"
|
|
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("repositories", schema=None) as batch_op:
|
|
25
|
+
batch_op.add_column(
|
|
26
|
+
sa.Column("encrypted_ssh_private_key", sa.Text(), nullable=True)
|
|
27
|
+
)
|
|
28
|
+
batch_op.add_column(sa.Column("remote_borg_path", sa.String(), nullable=True))
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
def downgrade() -> None:
|
|
32
|
+
"""Downgrade schema."""
|
|
33
|
+
with op.batch_alter_table("repositories", schema=None) as batch_op:
|
|
34
|
+
batch_op.drop_column("remote_borg_path")
|
|
35
|
+
batch_op.drop_column("encrypted_ssh_private_key")
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import json
|
|
2
2
|
import logging
|
|
3
3
|
import os
|
|
4
|
-
import re
|
|
5
4
|
from typing import Dict, List, Optional, Union, cast, Mapping, Any
|
|
6
5
|
from fastapi import APIRouter, Depends, HTTPException, Request
|
|
7
6
|
from fastapi.templating import Jinja2Templates
|
|
@@ -27,6 +26,7 @@ from borgitory.dependencies import (
|
|
|
27
26
|
)
|
|
28
27
|
from borgitory.api.auth import get_current_user
|
|
29
28
|
from borgitory.models.database import User
|
|
29
|
+
from borgitory.utils.template_paths import get_template_directory
|
|
30
30
|
|
|
31
31
|
router = APIRouter()
|
|
32
32
|
logger = logging.getLogger(__name__)
|
|
@@ -50,33 +50,36 @@ def _get_supported_providers(registry: ProviderRegistryDep) -> List[Dict[str, st
|
|
|
50
50
|
return sorted(supported_providers, key=lambda x: str(x["value"]))
|
|
51
51
|
|
|
52
52
|
|
|
53
|
-
|
|
54
|
-
"""Get the appropriate template path for a provider"""
|
|
55
|
-
if not provider:
|
|
56
|
-
return None
|
|
53
|
+
_PROVIDER_TEMPLATES_SUBDIR = "partials/cloud_sync/providers"
|
|
57
54
|
|
|
58
|
-
# Validate provider name: only allow alphanumerics, underscores, hyphens
|
|
59
|
-
if not re.fullmatch(r"^[\w-]+$", provider):
|
|
60
|
-
return None
|
|
61
55
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
56
|
+
def _discover_provider_templates() -> Dict[str, str]:
|
|
57
|
+
"""Map each provider that ships a fields template to its template path."""
|
|
58
|
+
template_root = get_template_directory()
|
|
59
|
+
providers_dir = os.path.join(template_root, _PROVIDER_TEMPLATES_SUBDIR)
|
|
60
|
+
try:
|
|
61
|
+
entries = os.listdir(providers_dir)
|
|
62
|
+
except OSError:
|
|
63
|
+
logger.warning(f"Provider templates directory not found: {providers_dir}")
|
|
64
|
+
return {}
|
|
68
65
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
66
|
+
templates: Dict[str, str] = {}
|
|
67
|
+
for name in entries:
|
|
68
|
+
relative_path = f"{_PROVIDER_TEMPLATES_SUBDIR}/{name}/{name}_fields.html"
|
|
69
|
+
if os.path.isfile(os.path.join(template_root, relative_path)):
|
|
70
|
+
templates[name] = relative_path
|
|
71
|
+
return templates
|
|
72
72
|
|
|
73
|
-
if os.path.commonpath([base_templates_dir, normalized_path]) != base_templates_dir:
|
|
74
|
-
return None
|
|
75
73
|
|
|
76
|
-
|
|
77
|
-
|
|
74
|
+
def _get_provider_template(provider: str) -> Optional[str]:
|
|
75
|
+
"""Get the appropriate template path for a provider.
|
|
78
76
|
|
|
79
|
-
|
|
77
|
+
The provider value comes from the request, so it is only used as a lookup
|
|
78
|
+
key into templates discovered on disk and never to build a path itself.
|
|
79
|
+
"""
|
|
80
|
+
if not provider:
|
|
81
|
+
return None
|
|
82
|
+
return _discover_provider_templates().get(provider)
|
|
80
83
|
|
|
81
84
|
|
|
82
85
|
def _get_submit_button_text(
|
|
@@ -43,6 +43,7 @@ from borgitory.utils.template_responses import (
|
|
|
43
43
|
ArchiveResponseHandler,
|
|
44
44
|
)
|
|
45
45
|
from borgitory.api.auth import get_current_user
|
|
46
|
+
from borgitory.utils.security import is_remote_repository_path
|
|
46
47
|
from borgitory.utils.path_prefix import (
|
|
47
48
|
parse_path_for_autocomplete,
|
|
48
49
|
)
|
|
@@ -68,6 +69,8 @@ async def create_repository(
|
|
|
68
69
|
passphrase=repo.passphrase,
|
|
69
70
|
encryption_type=repo.encryption_type,
|
|
70
71
|
cache_dir=repo.cache_dir,
|
|
72
|
+
ssh_private_key=repo.ssh_private_key,
|
|
73
|
+
remote_borg_path=repo.remote_borg_path,
|
|
71
74
|
)
|
|
72
75
|
|
|
73
76
|
# Call business service
|
|
@@ -148,6 +151,13 @@ async def list_directories_autocomplete(
|
|
|
148
151
|
input_value = str(form_data.get(param_name, ""))
|
|
149
152
|
break
|
|
150
153
|
|
|
154
|
+
if is_remote_repository_path(input_value):
|
|
155
|
+
return templates.TemplateResponse(
|
|
156
|
+
request,
|
|
157
|
+
"partials/shared/path_autocomplete_dropdown.html",
|
|
158
|
+
{"directories": [], "remote": True, "target_input": ""},
|
|
159
|
+
)
|
|
160
|
+
|
|
151
161
|
if not input_value:
|
|
152
162
|
# Always use Unix root for WSL-first approach
|
|
153
163
|
input_value = "/"
|
|
@@ -326,6 +336,8 @@ async def import_repository(
|
|
|
326
336
|
encryption_type=repo.encryption_type,
|
|
327
337
|
keyfile_content=repo.keyfile_content,
|
|
328
338
|
cache_dir=repo.cache_dir,
|
|
339
|
+
ssh_private_key=repo.ssh_private_key,
|
|
340
|
+
remote_borg_path=repo.remote_borg_path,
|
|
329
341
|
)
|
|
330
342
|
|
|
331
343
|
result = await repo_svc.import_repository(import_request, db)
|
|
@@ -8,7 +8,11 @@ from borgitory.api.cancel_on_disconnect import with_cancel_on_disconnect
|
|
|
8
8
|
from borgitory.models.database import Repository
|
|
9
9
|
from borgitory.dependencies import get_db
|
|
10
10
|
from borgitory.dependencies import RepositoryStatsServiceDep, get_templates
|
|
11
|
-
from borgitory.services.repositories.repository_stats_service import
|
|
11
|
+
from borgitory.services.repositories.repository_stats_service import (
|
|
12
|
+
ArchiveInfoUnavailableError,
|
|
13
|
+
NoArchivesError,
|
|
14
|
+
RepositoryStats,
|
|
15
|
+
)
|
|
12
16
|
from borgitory.api.auth import get_current_user
|
|
13
17
|
from borgitory.models.database import User
|
|
14
18
|
|
|
@@ -16,6 +20,13 @@ router = APIRouter()
|
|
|
16
20
|
templates = get_templates()
|
|
17
21
|
|
|
18
22
|
|
|
23
|
+
def _stats_error_html(message: str) -> HTMLResponse:
|
|
24
|
+
return HTMLResponse(
|
|
25
|
+
content=f"<p class='text-red-700 dark:text-red-300 text-sm text-center'>{message}</p>",
|
|
26
|
+
status_code=400,
|
|
27
|
+
)
|
|
28
|
+
|
|
29
|
+
|
|
19
30
|
@router.get("/stats/selector")
|
|
20
31
|
async def get_stats_repository_selector(
|
|
21
32
|
request: Request,
|
|
@@ -64,13 +75,20 @@ async def get_repository_statistics(
|
|
|
64
75
|
try:
|
|
65
76
|
stats = await stats_svc.get_repository_statistics(repository, db)
|
|
66
77
|
return stats
|
|
67
|
-
except
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
78
|
+
except NoArchivesError:
|
|
79
|
+
raise HTTPException(status_code=400, detail=NoArchivesError.user_message)
|
|
80
|
+
except ArchiveInfoUnavailableError:
|
|
81
|
+
raise HTTPException(
|
|
82
|
+
status_code=400, detail=ArchiveInfoUnavailableError.user_message
|
|
83
|
+
)
|
|
84
|
+
except Exception:
|
|
85
|
+
logging.exception(
|
|
86
|
+
"Exception occurred while generating repository statistics (repository_id=%s)",
|
|
87
|
+
repository_id,
|
|
88
|
+
)
|
|
72
89
|
raise HTTPException(
|
|
73
|
-
status_code=500,
|
|
90
|
+
status_code=500,
|
|
91
|
+
detail="An internal error has occurred while generating repository statistics.",
|
|
74
92
|
)
|
|
75
93
|
|
|
76
94
|
|
|
@@ -97,11 +115,10 @@ async def get_repository_statistics_html(
|
|
|
97
115
|
"partials/repository_stats/stats_panel.html",
|
|
98
116
|
{"repository": repository, "stats": stats},
|
|
99
117
|
)
|
|
100
|
-
except
|
|
101
|
-
return
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
)
|
|
118
|
+
except NoArchivesError:
|
|
119
|
+
return _stats_error_html(NoArchivesError.user_message)
|
|
120
|
+
except ArchiveInfoUnavailableError:
|
|
121
|
+
return _stats_error_html(ArchiveInfoUnavailableError.user_message)
|
|
105
122
|
except Exception:
|
|
106
123
|
logging.exception(
|
|
107
124
|
"Exception occurred while generating repository statistics HTML (repository_id=%s)",
|
|
@@ -16,6 +16,7 @@ from borgitory.services.migrations.migration_factory import (
|
|
|
16
16
|
create_migration_service_for_startup,
|
|
17
17
|
)
|
|
18
18
|
from borgitory.utils.datetime_utils import now_utc
|
|
19
|
+
from borgitory.utils.security import is_remote_repository_path
|
|
19
20
|
from borgitory.models.enums import EncryptionType
|
|
20
21
|
from typing import List, Any
|
|
21
22
|
|
|
@@ -95,6 +96,8 @@ def get_cipher_suite() -> Fernet:
|
|
|
95
96
|
|
|
96
97
|
class Repository(Base):
|
|
97
98
|
__tablename__ = "repositories"
|
|
99
|
+
# Lets the non-column attribute below carry a plain type annotation
|
|
100
|
+
__allow_unmapped__ = True
|
|
98
101
|
|
|
99
102
|
id: Mapped[int] = mapped_column(Integer, primary_key=True, index=True)
|
|
100
103
|
name: Mapped[str] = mapped_column(String, unique=True, index=True, nullable=False)
|
|
@@ -109,6 +112,12 @@ class Repository(Base):
|
|
|
109
112
|
cache_dir: Mapped[str | None] = mapped_column(
|
|
110
113
|
String, nullable=True
|
|
111
114
|
) # Custom BORG_CACHE_DIR path
|
|
115
|
+
encrypted_ssh_private_key: Mapped[str | None] = mapped_column(
|
|
116
|
+
Text, nullable=True
|
|
117
|
+
) # Encrypted SSH private key for remote (ssh://) repositories
|
|
118
|
+
remote_borg_path: Mapped[str | None] = mapped_column(
|
|
119
|
+
String, nullable=True
|
|
120
|
+
) # BORG_REMOTE_PATH for remote repositories
|
|
112
121
|
created_at: Mapped[datetime] = mapped_column(DateTime, default=lambda: now_utc())
|
|
113
122
|
|
|
114
123
|
jobs: Mapped[List["Job"]] = relationship(
|
|
@@ -118,6 +127,10 @@ class Repository(Base):
|
|
|
118
127
|
"Schedule", back_populates="repository", cascade="all, delete-orphan"
|
|
119
128
|
)
|
|
120
129
|
|
|
130
|
+
# Not persisted: names the SSH key file used while a new repository is
|
|
131
|
+
# being created/imported and has no id yet.
|
|
132
|
+
pending_ssh_key_token: str | None = None
|
|
133
|
+
|
|
121
134
|
def set_passphrase(self, passphrase: str) -> None:
|
|
122
135
|
self.encrypted_passphrase = (
|
|
123
136
|
get_cipher_suite().encrypt(passphrase.encode()).decode()
|
|
@@ -149,6 +162,30 @@ class Repository(Base):
|
|
|
149
162
|
)
|
|
150
163
|
return None
|
|
151
164
|
|
|
165
|
+
def set_ssh_private_key(self, ssh_private_key: str | None) -> None:
|
|
166
|
+
"""Encrypt and store the SSH private key used for remote repositories."""
|
|
167
|
+
if ssh_private_key:
|
|
168
|
+
self.encrypted_ssh_private_key = (
|
|
169
|
+
get_cipher_suite().encrypt(ssh_private_key.encode()).decode()
|
|
170
|
+
)
|
|
171
|
+
else:
|
|
172
|
+
self.encrypted_ssh_private_key = None
|
|
173
|
+
|
|
174
|
+
def get_ssh_private_key(self) -> str | None:
|
|
175
|
+
"""Decrypt and return the SSH private key."""
|
|
176
|
+
if self.encrypted_ssh_private_key:
|
|
177
|
+
return (
|
|
178
|
+
get_cipher_suite()
|
|
179
|
+
.decrypt(self.encrypted_ssh_private_key.encode())
|
|
180
|
+
.decode()
|
|
181
|
+
)
|
|
182
|
+
return None
|
|
183
|
+
|
|
184
|
+
@property
|
|
185
|
+
def is_remote(self) -> bool:
|
|
186
|
+
"""True if this repository lives on a remote borg server (ssh://)."""
|
|
187
|
+
return is_remote_repository_path(self.path)
|
|
188
|
+
|
|
152
189
|
|
|
153
190
|
class Job(Base):
|
|
154
191
|
__tablename__ = "jobs"
|
|
@@ -19,6 +19,8 @@ class CreateRepositoryRequest:
|
|
|
19
19
|
passphrase: Optional[str] = None
|
|
20
20
|
cache_dir: Optional[str] = None
|
|
21
21
|
keyfile_content: Optional[str] = None # Keyfile content as text
|
|
22
|
+
ssh_private_key: Optional[str] = None # For remote ssh:// repositories
|
|
23
|
+
remote_borg_path: Optional[str] = None # BORG_REMOTE_PATH
|
|
22
24
|
|
|
23
25
|
|
|
24
26
|
@dataclass
|
|
@@ -31,6 +33,8 @@ class ImportRepositoryRequest:
|
|
|
31
33
|
passphrase: Optional[str] = None
|
|
32
34
|
keyfile_content: Optional[str] = None # Keyfile content as text
|
|
33
35
|
cache_dir: Optional[str] = None
|
|
36
|
+
ssh_private_key: Optional[str] = None # For remote ssh:// repositories
|
|
37
|
+
remote_borg_path: Optional[str] = None # BORG_REMOTE_PATH
|
|
34
38
|
|
|
35
39
|
|
|
36
40
|
@dataclass
|
|
@@ -8,6 +8,10 @@ import json
|
|
|
8
8
|
from borgitory.custom_types import ConfigDict
|
|
9
9
|
from borgitory.services.hooks.hook_config import validate_hooks_json
|
|
10
10
|
from borgitory.models.enums import EncryptionType
|
|
11
|
+
from borgitory.utils.security import (
|
|
12
|
+
is_remote_repository_path,
|
|
13
|
+
validate_remote_repository_url,
|
|
14
|
+
)
|
|
11
15
|
|
|
12
16
|
|
|
13
17
|
def validate_patterns_json(patterns_json: str) -> tuple[bool, Optional[str]]:
|
|
@@ -91,6 +95,31 @@ def validate_patterns_json(patterns_json: str) -> tuple[bool, Optional[str]]:
|
|
|
91
95
|
ABSOLUTE_PATH_PATTERN = r"^/.*"
|
|
92
96
|
|
|
93
97
|
|
|
98
|
+
def validate_repository_path(v: str) -> str:
|
|
99
|
+
"""Accept an absolute local path or a remote ssh://user@host[:port]/path URL."""
|
|
100
|
+
if is_remote_repository_path(v):
|
|
101
|
+
return validate_remote_repository_url(v)
|
|
102
|
+
if not re.match(ABSOLUTE_PATH_PATTERN, v):
|
|
103
|
+
raise ValueError(
|
|
104
|
+
"Repository path must be an absolute path or an ssh://user@host/path URL"
|
|
105
|
+
)
|
|
106
|
+
return v
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
def normalize_remote_borg_path(v: Optional[str]) -> Optional[str]:
|
|
110
|
+
"""Validate the remote borg executable name/path (sent as BORG_REMOTE_PATH)."""
|
|
111
|
+
if v is None:
|
|
112
|
+
return None
|
|
113
|
+
v = v.strip()
|
|
114
|
+
if v == "":
|
|
115
|
+
return v
|
|
116
|
+
if not re.match(r"^[A-Za-z0-9._/-]+$", v):
|
|
117
|
+
raise ValueError(
|
|
118
|
+
"Remote borg path may only contain letters, digits, '.', '_', '-' and '/'"
|
|
119
|
+
)
|
|
120
|
+
return v
|
|
121
|
+
|
|
122
|
+
|
|
94
123
|
def normalize_source_paths(v: object) -> Optional[list[str]]:
|
|
95
124
|
"""Normalize source paths submitted as a single string or a list of strings.
|
|
96
125
|
|
|
@@ -176,13 +205,29 @@ class RepositoryBase(BaseModel):
|
|
|
176
205
|
)
|
|
177
206
|
path: str = Field(
|
|
178
207
|
min_length=1,
|
|
179
|
-
|
|
180
|
-
description="Absolute path to repository",
|
|
208
|
+
description="Absolute path to repository, or ssh://user@host[:port]/path",
|
|
181
209
|
)
|
|
182
210
|
cache_dir: Optional[str] = Field(
|
|
183
211
|
None,
|
|
184
212
|
description="Custom cache directory path (optional, absolute path)",
|
|
185
213
|
)
|
|
214
|
+
ssh_private_key: Optional[str] = Field(
|
|
215
|
+
None, description="SSH private key for remote (ssh://) repositories"
|
|
216
|
+
)
|
|
217
|
+
remote_borg_path: Optional[str] = Field(
|
|
218
|
+
None,
|
|
219
|
+
description="Borg executable on the remote server (BORG_REMOTE_PATH)",
|
|
220
|
+
)
|
|
221
|
+
|
|
222
|
+
@field_validator("path")
|
|
223
|
+
@classmethod
|
|
224
|
+
def validate_path(cls, v: str) -> str:
|
|
225
|
+
return validate_repository_path(v)
|
|
226
|
+
|
|
227
|
+
@field_validator("remote_borg_path")
|
|
228
|
+
@classmethod
|
|
229
|
+
def validate_remote_borg_path(cls, v: Optional[str]) -> Optional[str]:
|
|
230
|
+
return normalize_remote_borg_path(v)
|
|
186
231
|
|
|
187
232
|
@field_validator("passphrase")
|
|
188
233
|
@classmethod
|
|
@@ -224,11 +269,34 @@ class RepositoryUpdate(BaseModel):
|
|
|
224
269
|
name: Optional[str] = Field(
|
|
225
270
|
None, min_length=1, max_length=128, pattern=r"^[A-Za-z0-9-_\s]+$"
|
|
226
271
|
)
|
|
227
|
-
path: Optional[str] = Field(None, min_length=1
|
|
272
|
+
path: Optional[str] = Field(None, min_length=1)
|
|
228
273
|
passphrase: Optional[str] = Field(None)
|
|
229
274
|
cache_dir: Optional[str] = Field(
|
|
230
275
|
None, description="Custom cache directory path (optional, absolute path)"
|
|
231
276
|
)
|
|
277
|
+
ssh_private_key: Optional[str] = Field(
|
|
278
|
+
None,
|
|
279
|
+
description="New SSH private key (None or empty keeps the current key)",
|
|
280
|
+
)
|
|
281
|
+
clear_ssh_private_key: bool = Field(
|
|
282
|
+
False, description="Remove the stored SSH private key"
|
|
283
|
+
)
|
|
284
|
+
remote_borg_path: Optional[str] = Field(
|
|
285
|
+
None,
|
|
286
|
+
description="Borg executable on the remote server (empty string clears it)",
|
|
287
|
+
)
|
|
288
|
+
|
|
289
|
+
@field_validator("path")
|
|
290
|
+
@classmethod
|
|
291
|
+
def validate_path(cls, v: Optional[str]) -> Optional[str]:
|
|
292
|
+
if v is None:
|
|
293
|
+
return v
|
|
294
|
+
return validate_repository_path(v)
|
|
295
|
+
|
|
296
|
+
@field_validator("remote_borg_path")
|
|
297
|
+
@classmethod
|
|
298
|
+
def validate_remote_borg_path(cls, v: Optional[str]) -> Optional[str]:
|
|
299
|
+
return normalize_remote_borg_path(v)
|
|
232
300
|
|
|
233
301
|
@field_validator("passphrase")
|
|
234
302
|
@classmethod
|
|
@@ -273,6 +341,7 @@ class RepositoryResponse(BaseModel):
|
|
|
273
341
|
encryption_type: EncryptionType
|
|
274
342
|
created_at: datetime
|
|
275
343
|
cache_dir: Optional[str] = None
|
|
344
|
+
remote_borg_path: Optional[str] = None
|
|
276
345
|
|
|
277
346
|
model_config = {
|
|
278
347
|
"from_attributes": True,
|
|
@@ -108,6 +108,7 @@ class ProcessExecutorProtocol(Protocol):
|
|
|
108
108
|
force_prune: bool = False,
|
|
109
109
|
dry_run: bool = False,
|
|
110
110
|
output_callback: Optional[Callable[[str], None]] = None,
|
|
111
|
+
environment_overrides: Optional[Dict[str, str]] = None,
|
|
111
112
|
) -> "ProcessResult":
|
|
112
113
|
"""Execute a borg prune task."""
|
|
113
114
|
...
|
|
@@ -117,6 +118,7 @@ class ProcessExecutorProtocol(Protocol):
|
|
|
117
118
|
repository_path: str,
|
|
118
119
|
passphrase: str,
|
|
119
120
|
output_callback: Optional[Callable[[str], None]] = None,
|
|
121
|
+
environment_overrides: Optional[Dict[str, str]] = None,
|
|
120
122
|
) -> "ProcessResult":
|
|
121
123
|
"""Execute a borg compact task."""
|
|
122
124
|
...
|
|
@@ -16,6 +16,9 @@ from borgitory.config.command_runner_config import CommandRunnerConfig
|
|
|
16
16
|
from borgitory.models.database import Repository
|
|
17
17
|
from borgitory.services.archives.archive_models import ArchiveEntry
|
|
18
18
|
from borgitory.protocols.command_executor_protocol import CommandExecutorProtocol
|
|
19
|
+
from borgitory.services.repositories.repository_environment import (
|
|
20
|
+
build_repository_env_overrides,
|
|
21
|
+
)
|
|
19
22
|
from borgitory.utils.security import (
|
|
20
23
|
create_borg_command,
|
|
21
24
|
validate_archive_name,
|
|
@@ -220,6 +223,7 @@ class ArchiveManager:
|
|
|
220
223
|
passphrase=repository.get_passphrase(),
|
|
221
224
|
base_command="borg extract",
|
|
222
225
|
additional_args=borg_args,
|
|
226
|
+
environment_overrides=build_repository_env_overrides(repository),
|
|
223
227
|
)
|
|
224
228
|
|
|
225
229
|
logger.info(f"Extracting file {file_path} from archive {archive_name}")
|
|
@@ -314,6 +318,7 @@ class ArchiveManager:
|
|
|
314
318
|
repository_path="",
|
|
315
319
|
passphrase=repository.get_passphrase(),
|
|
316
320
|
additional_args=additional_args,
|
|
321
|
+
environment_overrides=build_repository_env_overrides(repository),
|
|
317
322
|
)
|
|
318
323
|
|
|
319
324
|
try:
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import asyncio
|
|
2
1
|
import json
|
|
3
2
|
import logging
|
|
4
3
|
import re
|
|
5
|
-
from borgitory.models.job_results import JobStatusEnum
|
|
6
4
|
from borgitory.services.archives.archive_models import ArchiveEntry
|
|
7
5
|
from typing import List
|
|
8
6
|
|
|
@@ -19,19 +17,14 @@ from borgitory.protocols import (
|
|
|
19
17
|
from borgitory.protocols.command_executor_protocol import CommandExecutorProtocol
|
|
20
18
|
from borgitory.protocols.path_protocols import PathServiceInterface
|
|
21
19
|
from borgitory.protocols.repository_protocols import ArchiveServiceProtocol
|
|
20
|
+
from borgitory.services.repositories.repository_environment import (
|
|
21
|
+
build_repository_env_overrides,
|
|
22
|
+
)
|
|
22
23
|
from borgitory.utils.security import create_borg_command
|
|
23
24
|
|
|
24
25
|
logger = logging.getLogger(__name__)
|
|
25
26
|
|
|
26
27
|
|
|
27
|
-
def _build_repository_env_overrides(repository: "Repository") -> dict[str, str]:
|
|
28
|
-
"""Build environment overrides for a repository, including cache directory."""
|
|
29
|
-
env_overrides = {}
|
|
30
|
-
if repository.cache_dir:
|
|
31
|
-
env_overrides["BORG_CACHE_DIR"] = repository.cache_dir
|
|
32
|
-
return env_overrides
|
|
33
|
-
|
|
34
|
-
|
|
35
28
|
class BorgService:
|
|
36
29
|
def __init__(
|
|
37
30
|
self,
|
|
@@ -76,7 +69,7 @@ class BorgService:
|
|
|
76
69
|
repository_path=repository.path,
|
|
77
70
|
passphrase=repository.get_passphrase(),
|
|
78
71
|
additional_args=["--encryption=" + repository.encryption_type.value],
|
|
79
|
-
environment_overrides=
|
|
72
|
+
environment_overrides=build_repository_env_overrides(repository),
|
|
80
73
|
)
|
|
81
74
|
|
|
82
75
|
result = await self.command_runner.run_command(
|
|
@@ -116,7 +109,7 @@ class BorgService:
|
|
|
116
109
|
repository_path=repository.path,
|
|
117
110
|
passphrase=repository.get_passphrase(),
|
|
118
111
|
additional_args=["--json"],
|
|
119
|
-
environment_overrides=
|
|
112
|
+
environment_overrides=build_repository_env_overrides(repository),
|
|
120
113
|
)
|
|
121
114
|
|
|
122
115
|
result = await self.command_runner.run_command(
|
|
@@ -157,7 +150,7 @@ class BorgService:
|
|
|
157
150
|
repository_path=f"{repository.path}::{archive_name}",
|
|
158
151
|
passphrase=repository.get_passphrase(),
|
|
159
152
|
additional_args=[],
|
|
160
|
-
environment_overrides=
|
|
153
|
+
environment_overrides=build_repository_env_overrides(repository),
|
|
161
154
|
)
|
|
162
155
|
|
|
163
156
|
result = await self.command_runner.run_command(
|
|
@@ -193,34 +186,19 @@ class BorgService:
|
|
|
193
186
|
repository_path=repository.path,
|
|
194
187
|
passphrase=repository.get_passphrase(),
|
|
195
188
|
additional_args=["--json"],
|
|
189
|
+
environment_overrides=build_repository_env_overrides(repository),
|
|
196
190
|
)
|
|
197
191
|
|
|
198
|
-
|
|
199
|
-
|
|
192
|
+
# run_command kills borg if it exceeds the timeout, so a stalled
|
|
193
|
+
# remote connection can't block verification indefinitely.
|
|
194
|
+
command_result = await self.command_runner.run_command(
|
|
195
|
+
result.command, result.environment, timeout=30
|
|
200
196
|
)
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
status = self.job_manager.get_job_status(job_id)
|
|
207
|
-
|
|
208
|
-
if not status:
|
|
209
|
-
return False
|
|
210
|
-
|
|
211
|
-
if (
|
|
212
|
-
status.status == JobStatusEnum.COMPLETED
|
|
213
|
-
or status.status == JobStatusEnum.FAILED
|
|
214
|
-
):
|
|
215
|
-
success = status.return_code == 0
|
|
216
|
-
|
|
217
|
-
self.job_manager.cleanup_job(job_id)
|
|
218
|
-
return bool(success)
|
|
219
|
-
|
|
220
|
-
await asyncio.sleep(0.5)
|
|
221
|
-
wait_time += 0.5
|
|
222
|
-
|
|
223
|
-
return False
|
|
197
|
+
if not command_result.success:
|
|
198
|
+
logger.info(
|
|
199
|
+
f"Repository access verification failed: {command_result.stderr.strip() or command_result.error}"
|
|
200
|
+
)
|
|
201
|
+
return bool(command_result.success)
|
|
224
202
|
|
|
225
203
|
except Exception as e:
|
|
226
204
|
logger.error(f"Failed to verify repository access: {e}")
|
|
@@ -215,6 +215,8 @@ class JobDatabaseManager(JobDatabaseManagerProtocol):
|
|
|
215
215
|
"passphrase": repo.get_passphrase(),
|
|
216
216
|
"keyfile_content": repo.get_keyfile_content(),
|
|
217
217
|
"cache_dir": repo.cache_dir,
|
|
218
|
+
"ssh_private_key": repo.get_ssh_private_key(),
|
|
219
|
+
"remote_borg_path": repo.remote_borg_path,
|
|
218
220
|
}
|
|
219
221
|
|
|
220
222
|
except Exception as e:
|