Wrapper around dataExportService that creates and verifies a full SREF backup before the v2->v1 categories migration. Throws on any failure to ensure migration aborts cleanly. - Generates filename <ProfileName>_avant-migration-<ISO8601>.sref - Writes to ~/Documents/Simpl-Resultat/backups/ (creates dir if missing) - Verifies integrity via re-read + SHA-256 checksum - Reuses profile PIN for encryption when protected - Adds two minimal Tauri commands: ensure_backup_dir, get_file_size - Stable error codes (BackupError) to map to i18n keys in the UI layer Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
20 lines
497 B
Rust
20 lines
497 B
Rust
pub mod account_cache;
|
|
pub mod auth_commands;
|
|
pub mod backup_commands;
|
|
pub mod entitlements;
|
|
pub mod export_import_commands;
|
|
pub mod feedback_commands;
|
|
pub mod fs_commands;
|
|
pub mod license_commands;
|
|
pub mod profile_commands;
|
|
pub mod token_store;
|
|
|
|
pub use auth_commands::*;
|
|
pub use backup_commands::*;
|
|
pub use entitlements::*;
|
|
pub use export_import_commands::*;
|
|
pub use feedback_commands::*;
|
|
pub use fs_commands::*;
|
|
pub use license_commands::*;
|
|
pub use profile_commands::*;
|
|
pub use token_store::*;
|