prova hex blob da testare..
This commit is contained in:
@@ -138,12 +138,15 @@ namespace EgtBEAMWALL.DataLayer
|
||||
{
|
||||
File.Delete(zipFilePath);
|
||||
}
|
||||
// 2024.06.28 aggiunto --hex-blob x dati binary
|
||||
// creazione SQL, tramite script esterno... importante parametro "--skip-extended-insert" altrimenti problemi con restore (anche se + verboso e lento in backup...)
|
||||
string callScript = $"\"{mysqlDumpPath}\" -u{DATABASE_USER} -p{DATABASE_PWD} {dbName} {exportOpt} > {tempSqlPath}";
|
||||
string callScript = $"\"{mysqlDumpPath}\" -u{DATABASE_USER} -p{DATABASE_PWD} {dbName} {exportOpt} --hex-blob > {tempSqlPath}";
|
||||
ExecuteCommand(callScript);
|
||||
// compressione con pwd!
|
||||
using (ZipFile zip = new ZipFile())
|
||||
{
|
||||
//zip.CompressionMethod = CompressionMethod.BZip2;
|
||||
//zip.UseUnicodeAsNecessary = true;
|
||||
// aggiungo pwd
|
||||
zip.Password = ZIP_PWD;
|
||||
// inserisco file
|
||||
|
||||
Reference in New Issue
Block a user