[#60] Services: Encrypt zip files for backup and upload
Test / Run tests (push) Successful in 2m12s
Test / Run tests (push) Successful in 2m12s
This commit is contained in:
1 parent
f388ddbe41
commit
4bb13dbb06
10 files changed
+116
-73
No files matched your search
@@ -28,7 +28,7 @@ namespace Elwig.Services {
|
||||
}
|
||||
|
||||
public static async Task BackupDatabase() {
|
||||
await Database.ExportSql(Path.Combine(App.Config.BackupPath, $"{File.GetLastWriteTime(App.Config.DatabaseFile):yyyy-MM-dd_HH-mm-ss}.sql.zip"), true);
|
||||
await Database.ExportSql(Path.Combine(App.Config.BackupPath, $"{File.GetLastWriteTime(App.Config.DatabaseFile):yyyy-MM-dd_HH-mm-ss}.sql.zip"), true, App.Config.BackupEncryptionKey);
|
||||
}
|
||||
|
||||
public static void PruneBackups() {
|
||||
@@ -122,7 +122,7 @@ namespace Elwig.Services {
|
||||
if (!InteractionService.AskContinue("Datenbank wiederherstellen", "Soll die Datenbank wirklich unwiederruflich durch die wiederhergestellte Version ersetzt werden?"))
|
||||
return;
|
||||
Mouse.OverrideCursor = Cursors.Wait;
|
||||
await App.ReplaceDatabase(d.FileName);
|
||||
await App.ReplaceDatabase(d.FileName, App.Config.BackupDecryptionKeys);
|
||||
}
|
||||
} catch (Exception exc) {
|
||||
InteractionService.ShowException(exc);
|
||||
|
||||
Reference in new issue
Block a user