protected virtual void BackupDatabase(DisconnectedMachineEntity machine, Lite <DisconnectedExportEntity> export, Connector newDatabase) { string backupFileName = Path.Combine(DisconnectedLogic.BackupFolder, BackupFileName(machine, export)); FileTools.CreateParentDirectory(backupFileName); var isPostgres = Schema.Current.Settings.IsPostgres; DisconnectedTools.BackupDatabase(new DatabaseName(null, newDatabase.DatabaseName(), isPostgres), backupFileName); }
public virtual void BackupDatabase(DatabaseName databaseName, string backupFile) { DisconnectedTools.BackupDatabase(databaseName, Absolutize(backupFile)); }