mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-14 01:25:40 -05:00
Update restore service to return default backup folder (#475)
* Fix restore to return default backup folder * fix break * fix tests * fix file validator for invalid filepath
This commit is contained in:
@@ -142,7 +142,7 @@ namespace Microsoft.SqlTools.ServiceLayer.DisasterRecovery
|
||||
{
|
||||
BackupConfigInfo configInfo = new BackupConfigInfo();
|
||||
configInfo.RecoveryModel = GetRecoveryModel(databaseName);
|
||||
configInfo.DefaultBackupFolder = GetDefaultBackupFolder();
|
||||
configInfo.DefaultBackupFolder = CommonUtilities.GetDefaultBackupFolder(this.serverConnection);
|
||||
configInfo.LatestBackups = GetLatestBackupLocations(databaseName);
|
||||
configInfo.BackupEncryptors = GetBackupEncryptors();
|
||||
return configInfo;
|
||||
@@ -338,11 +338,6 @@ namespace Microsoft.SqlTools.ServiceLayer.DisasterRecovery
|
||||
return recoveryModel.ToString();
|
||||
}
|
||||
|
||||
public string GetDefaultBackupFolder()
|
||||
{
|
||||
return this.backupRestoreUtil.GetDefaultBackupFolder();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Return the latest backup locations
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user