WIP: backup fix
This commit is contained in:
@@ -41,7 +41,7 @@ public class AdminController : Controller
|
||||
const string formatMediaName = $"DatabaseToolkitBackup_{databaseName}";
|
||||
const string formatName = $"Full Backup of {databaseName}";
|
||||
|
||||
/*
|
||||
|
||||
var connection = new SqlConnection(_configuration.GetConnectionString("SQLDatabase"));
|
||||
|
||||
const string sql = """
|
||||
@@ -63,7 +63,7 @@ public class AdminController : Controller
|
||||
command.Parameters.AddWithValue("@formatName", formatName);
|
||||
|
||||
command.ExecuteNonQuery();
|
||||
*/
|
||||
|
||||
var body = new Google.Apis.Drive.v3.Data.File
|
||||
{
|
||||
Name = Path.GetFileName(localDatabasePath),
|
||||
@@ -71,7 +71,7 @@ public class AdminController : Controller
|
||||
MimeType = "application/octet-stream"
|
||||
};
|
||||
|
||||
var fsSource = new FileStream("/Users/mz/Projects/Diuna/diunabi-morska-9.bak", FileMode.Open, FileAccess.Read);
|
||||
var fsSource = new FileStream(localDatabasePath, FileMode.Open, FileAccess.Read);
|
||||
|
||||
if (_googleDriveHelper.Service is null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user