We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Migrate Data from Azure Server To Local Server for Dashboard Server

Migrate data from Azure to local server in the Dashboard Server

Follow the given steps to migrate data from Azure to local server in the Dashboard Server.

  1. Stop Azure App service.
  2. Log on to the Azure portal: https://portal.azure.com
  3. Select App Services.
  4. Choose the existing Syncfusion Dashboard Server site and then click the Get publish profile.

http://www.syncfusion.com/downloads/support/directtrac/185762/1616296008_df6dc932.PNG

  1. Save the “<App service name>.PublishSettings” file and open it.
  2. The file contains two <publishProfile> sections for Web Deploy and FTP.
  3. From the FTP <publishProfile> section, copy the following values:
  • Publish URL
  • User name
  • User password

http://www.syncfusion.com/downloads/support/directtrac/185762/1621949791_d1537cc5.PNG

  1. Use these credentials in FTP client FileZilla, simply plug these values into the host, username, and password fields as follows, and click Quickconnect.

http://www.syncfusion.com/downloads/support/directtrac/185762/1621443741_d246d963.PNG

 

  1. Download the “App_data” folder from “/site/wwwroot” from an Azure application.
  2. Move the downloaded App_Data folder to the following location of the local server.

                 C:\Syncfusion\Dashboard Server\DashboardServer.Web 

        

  1. Now, the resources are migrated from Azure to the local server.
  2. To change the database server, update the connection string that you are maintaining. To update the connection string, follow the given steps:

 

  1. Download the zip file from the following location.

http://www.syncfusion.com/downloads/support/directtrac/205881/ze/EncryptUtility2009485578-86137753

  1. Extract the zip file and run the following exe file 'DecryptUtility.exe' from the extracted one.
  2. Run the 'DecryptUtility.exe' utility and provide your new connection string. Now, you can get the encrypted connection string.

 

http://www.syncfusion.com/downloads/support/directtrac/190198/1891795537_a17b10db.PNG

  1. Then, you should update the encrypted connection string in the following files.                 

C:\Syncfusion\DashboardServer\DashboardServer.Web\App_Data\Configuration\Config.xml

 

http://www.syncfusion.com/downloads/support/directtrac/190198/1892561814_a325f05a.PNG

 

Migrate the Dashboard Server Azure app service to the Virtual Machine (VM)

Follow the given steps to migrate the Dashboard Server Azure app service to the VM,

  1. Migrate the database.
  2. Migrate datafiles from the blob storage by following the given steps:
  1. Import all resources from the blob storage into the VM machine.
  2. Extract the compressed Dashboards and widgets.

Database migration from SQL Server to SQL CE

Follow the given steps to migrate SQL Server into SQL CE in the Dashboard Server.

  1. Use the following tool to migrate the SQL Server to SQL CE.
  2. Download the following tool and run.

https://github.com/ErikEJ/SqlCeToolbox/releases/download/3.7.2.0/SqlCe40Toolbox.exe

  1. Choose ‘Export SQL Server to SQL Server Compact 4.0’ as below to export the SQL Server database to SQL Server Compact 4.0.

 

  cid:image007.png@01D3F9A8.F4E42250

  1. Provide the SQL Server credentials in the pop-up and press OK.

 

              cid:image008.png@01D3F9A8.F4E42250 

  1. The following pop-up will open. You can select all tables, and then click OK.

 

cid:image009.png@01D3F9A8.F4E42250

 

  1. Select the preferred file location and ‘DashboardServer.sdf’ as file name, and then click save.

The SQL Server is converted into SQL CE.

 

cid:image010.png@01D3F9A8.F4E42250

 

  1. Copy the embedded database file to the following location of the Dashboard Server that is installed in VM.

C:\Syncfusion\Dashboard Server\DashboardServer.Web\App_Data

 

Data files migration from the blob storage

Import all resources from the blob storage into VM machine

Follow the given steps to import all resources from the blob storage into VM machine.

  1. Use AzCopy tool to download all the resources from Azure blob to VM machine.

Download the AzCopy from the following link and install in your VM machine.

http://aka.ms/downloadazcopy

  1. Follow the below document to download a folder from the Azure blob.

https://docs.microsoft.com/en-us/azure/storage/common/storage-use-azcopy

 

The following command is used to download a folder from the Azure blob.

AzCopy /Source:"https://bloburl/containername/Syncfusion/Dashboard Server/Resources" /Dest:"C:\Syncfusion\Dashboard Server\DashboardServer.Web\App_Data\Resources" /SourceKey:blobkeyhere /S

 

cid:image011.png@01D3F9A8.F4E42250

After command is finished, all resources from the blob storage are copied to VM machine.

 

Extract the compressed Dashboard and widget files

Follow the given steps to extract the compressed Dashboard and widget files:

  1. Download extractor.exe from the below link and run that exe file.

http://www.syncfusion.com/downloads/support/directtrac/205881/ze/Extractor-57292859

  1. Provide the location as C:\Syncfusion\Dashboard Server\DashboardServer.Web\App_Data\Resources (This is the location where your blob files are migrated).

 

 

  1. Now, the downloaded compressed files are extracted in their respective locations.

 

 

 

Create an empty password protected .SDF file

 

Use the SQL Server Compact Toolbox for Runtime 4.0 which is already downloaded from the given link. https://github.com/ErikEJ/SqlCeToolbox/releases/download/3.7.2.0/SqlCe40Toolbox.exe

Open the SQL Server Compact Toolbox and right-click No SQL Compact Data Connections Found, and then select Add SQL Server Compact 4.0 Connection…

 

 

  1. Enter the password as “dashboardserver” for the Dashboard Server.
  2. After entering the password, click Create and give the name as DashboardServer, and then save in the desired location.
  3. Finally, click close at the bottom of the window.

 

 

Create Dashboard Server schema

 

  1. Right-click the data connection node and select “Add SQL Server Compact 4.0 Connection...”.

 

 

 

  1. Browse the already migrated SQLCE database file from the following location.

“C:\Syncfusion\Dashboard Server\DashboardServer.web\App_Data\DashboardServer.sdf”

 

  1. Right-click the migrated .SDF file, and select the Script Database Schema and Data.

 

 

 

 

  1. Now, save the filename for the script. The default extension is .sqlce.

 

 

  1. Now, ‘Select Tables to Script’ window will open as follows. Click OK.

 

 

 

 

Move the exported data into your new password protected SDF

 

  1. Right-click on your new password protected SQLCE DB that has been created at the left side of the toolbox and select Open SQL Editor.

 

 

  1. Select Open and navigate to the location of the created .SQLCE file.

 

 

  1. Now, you can see the text commands opened in the main window as follows. Click Execute, and wait for this operation to complete. After completed, the Dashboard Server tables will be created under the password protected DB.

 

 

  1. Copy the password protected SQLCE DB and replace that in the following location.

“C:\Syncfusion\Dashboard Server\DashboardServer.web\App_Data\DashboardServer.sdf”

 

 

 

          

 

Article ID: Published Date: Last Revised Date: Platform: Control:
8825 06/08/2018 09/18/2018 Dashboard Platform Dashboard Server
Did you find this information helpful?
Add Comment
You must log in to leave a comment

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon