Removed Misuzu support.
This commit is contained in:
parent
866bd93afa
commit
9178cd5e14
2 changed files with 0 additions and 33 deletions
|
@ -7,7 +7,5 @@
|
||||||
public string MySqlUser { get; set; }
|
public string MySqlUser { get; set; }
|
||||||
public string MySqlPass { get; set; }
|
public string MySqlPass { get; set; }
|
||||||
public string MySqlExcludeDatabases { get; set; } = @"mysql information_schema performance_schema";
|
public string MySqlExcludeDatabases { get; set; } = @"mysql information_schema performance_schema";
|
||||||
|
|
||||||
public string MisuzuPath { get; set; }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -139,22 +139,6 @@ namespace BackupManager
|
||||||
|
|
||||||
Log($@"MariaDB dump done.");
|
Log($@"MariaDB dump done.");
|
||||||
File.Delete(sqldefaults);
|
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);
|
string targetPath = Path.Combine(BackupStore, BackupName);
|
||||||
|
@ -197,21 +181,6 @@ namespace BackupManager
|
||||||
Environment.Exit(exit);
|
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) {
|
public static void CreateDbDump(ZipArchive archive, string defaults, string database) {
|
||||||
Log($@"Dumping {database}...");
|
Log($@"Dumping {database}...");
|
||||||
|
|
||||||
|
|
Reference in a new issue