feat(backup): add gzip compression and history filtering
This commit is contained in:
36 files changed
+1144
-137
No files matched your search
@@ -14,8 +14,15 @@ pub async fn begin_database_backup_snapshot(
|
||||
state: State<'_, Arc<AppState>>,
|
||||
connection_id: String,
|
||||
database: String,
|
||||
export_id: Option<String>,
|
||||
) -> Result<DatabaseBackupSnapshot, String> {
|
||||
dbx_core::database_export::begin_database_backup_snapshot_core(&state, &connection_id, &database).await
|
||||
dbx_core::database_export::begin_database_backup_snapshot_core_for_export(
|
||||
&state,
|
||||
&connection_id,
|
||||
&database,
|
||||
export_id.as_deref(),
|
||||
)
|
||||
.await
|
||||
}
|
||||
|
||||
#[tauri::command]
|
||||
@@ -66,6 +73,12 @@ pub async fn cancel_database_export(export_id: String) -> Result<(), String> {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
#[tauri::command]
|
||||
pub async fn clear_database_export_cancellation(export_id: String) -> Result<(), String> {
|
||||
dbx_core::database_export::clear_export_cancelled(&export_id).await;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
/// Records a scheduled backup destination's filesystem identity as soon as
|
||||
/// the schedule is saved, not just after its first successful export. See
|
||||
/// `record_export_destination_identity` for why this eager recording is
|
||||
|
||||
@@ -2446,6 +2446,7 @@ pub fn run() {
|
||||
commands::database_export::begin_database_backup_snapshot,
|
||||
commands::database_export::export_database_sql,
|
||||
commands::database_export::cancel_database_export,
|
||||
commands::database_export::clear_database_export_cancellation,
|
||||
commands::database_export::record_database_export_destination,
|
||||
commands::table_export::start_table_export,
|
||||
commands::table_export::cancel_table_export,
|
||||
|
||||
Reference in new issue
Block a user