Removed Misuzu support.

This commit is contained in:
flash 2023-09-04 15:00:08 +02:00
parent 866bd93afa
commit 9178cd5e14
2 changed files with 0 additions and 33 deletions

View file

@ -7,7 +7,5 @@
public string MySqlUser { get; set; }
public string MySqlPass { get; set; }
public string MySqlExcludeDatabases { get; set; } = @"mysql information_schema performance_schema";
public string MisuzuPath { get; set; }
}
}

View file

@ -139,22 +139,6 @@ namespace BackupManager
Log($@"MariaDB dump done.");
File.Delete(sqldefaults);
if(!string.IsNullOrWhiteSpace(Config.MisuzuPath)
&& Directory.Exists(Config.MisuzuPath)) {
Log(@"Filesystem backup...");
string mszConfig = Path.Combine(Config.MisuzuPath, @"config/config.ini");
if(!File.Exists(mszConfig))
Error(@"Could not find Misuzu config.");
string mszStore = Path.Combine(Config.MisuzuPath, @"store");
if(!Directory.Exists(mszStore))
Error(@"Could not find Misuzu storage directory.");
CreateMisuzuDataBackup(archive, mszConfig, mszStore);
}
}
string targetPath = Path.Combine(BackupStore, BackupName);
@ -197,21 +181,6 @@ namespace BackupManager
Environment.Exit(exit);
}
public static void CreateMisuzuDataBackup(ZipArchive archive, string configPath, string storePath) {
Log(@"Storing non-volatile Misuzu data...");
archive.CreateEntryFromFile(configPath, @"misuzu/config/config.ini", CompressionLevel.Optimal);
string[] storeFiles = Directory.GetFiles(storePath, @"*", SearchOption.AllDirectories);
foreach(string file in storeFiles)
archive.CreateEntryFromFile(
file,
@"misuzu/store/" + file.Replace(storePath, string.Empty).Trim('/'),
CompressionLevel.Optimal
);
}
public static void CreateDbDump(ZipArchive archive, string defaults, string database) {
Log($@"Dumping {database}...");