Web GUI Implementation:
- Backup.vue: Storage dashboard + Snapshot management + Scheduler config
- Router: Add /backup route
- Home.vue: Add Backup management card
- Tauri commands: 10 backup API endpoints
Features:
- Storage stats (total/used/free, dedup/compression ratios)
- Snapshot list with create/delete/restore actions
- Backup scheduler configuration (enabled, interval, max_snapshots)
- Run backup now button
- Send/Receive placeholders
Tauri Commands:
- get_storage_stats, list_snapshots
- create_snapshot, delete_snapshot, restore_snapshot
- get_backup_stats, get_backup_config, set_backup_config
- run_backup
Build: cargo build (Tauri) ✅ 5 warnings
Tests: 495 markbase-core + 201 smb-server = 696 total
49 lines
1.3 KiB
Rust
49 lines
1.3 KiB
Rust
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
|
|
|
|
mod commands;
|
|
|
|
use commands::*;
|
|
|
|
fn main() {
|
|
tauri::Builder::default()
|
|
.invoke_handler(tauri::generate_handler![
|
|
get_tree,
|
|
list_files,
|
|
upload_file,
|
|
search_files,
|
|
download_file,
|
|
open_file,
|
|
check_system_environment,
|
|
initialize_database,
|
|
create_service_account,
|
|
start_services,
|
|
load_config,
|
|
save_config,
|
|
reset_config,
|
|
run_diagnostic,
|
|
run_full_diagnostic,
|
|
apply_diagnostic_repairs,
|
|
start_all_services,
|
|
stop_all_services,
|
|
restart_all_services,
|
|
get_service_status,
|
|
create_backup,
|
|
restore_backup,
|
|
list_backups,
|
|
list_users,
|
|
run_health_check,
|
|
get_monitor_data,
|
|
get_storage_stats,
|
|
list_snapshots,
|
|
create_snapshot,
|
|
delete_snapshot,
|
|
restore_snapshot,
|
|
get_backup_stats,
|
|
get_backup_config,
|
|
set_backup_config,
|
|
run_backup,
|
|
])
|
|
.run(tauri::generate_context!())
|
|
.expect("error while running tauri application");
|
|
}
|