|
1 | | -# How to migrate your data |
| 1 | +# HowAzure Storage Explorer is a free tool to manage your Azure cloud storage resources (aka your short URLs) from your desktop. It's cross-platform and can be downloaded [here](https://azure.microsoft.com/en-us/products/storage/storage-explorer/). |
2 | 2 |
|
| 3 | +In the resources deployed to Azure, there will be 2 storage accounts. One for the redirect service (azfunc-light) and one acting as the data store. That last one is the one you want to use for the data migration. The name of that storage account should start with `urldata`. migrate your data |
3 | 4 |
|
4 | | -The easiest way to migrate your data between account or from an ealier version of AzUrlShortener is to use the **Azure Storage Explorer** to export the data as a CSV files and use the TinyBlazorAdmin to import the files . |
5 | | - |
| 5 | +The easiest way to migrate your data between accounts or from an earlier version of AzUrlShortener is to use the **Azure Storage Explorer** to export the data as CSV files and use the TinyBlazorAdmin to import the files. |
6 | 6 |
|
7 | 7 | Azure Storage Explorer is a free tool to manage your Azure cloud storage resources (aka your short URLs) from your desktop. It’s a cross-platform and can be downloaded [here](https://azure.microsoft.com/en-us/products/storage/storage-explorer/). |
8 | 8 |
|
9 | 9 | In the resources deployed to Azure there will be 2 storage accounts. One for the redirect service (azfunc-light) and one acting as the data store. That last one is the one you want to use for the data migration. The name of that storage account should start wirh `urldata`. |
10 | 10 |
|
11 | | -You need to expot to CSV the following tables: |
| 11 | +You need to export to CSV the following tables: |
12 | 12 | - UrlsDetails: This table contains the details of the short URLs, including the original URL, the short URL, schedules, etc. |
13 | | -- ClickStats: This table contains the clicks informations. |
| 13 | +- ClickStats: This table contains the click information. |
| 14 | + |
| 15 | +The best settings to export when planning to import using the TinyBlazorAdmin are: |
14 | 16 |
|
| 17 | + |
15 | 18 |
|
16 | 19 | To import the data use the Import button in the Settings page. |
| 20 | + |
| 21 | +If you have customized the structure of the tables by adding custom columns, you will need to import the data using Azure Storage Explorer instead to keep those columns. |
| 22 | + |
| 23 | +Here are the settings to use when importing using Azure Storage Explorer: |
| 24 | +- Make sure you use the same column delimiters as used in the export. |
| 25 | +- You need to select the data type for each column. |
| 26 | +- Uncheck the checkbox *Ignore empty string values*. |
| 27 | + |
| 28 | + |
0 commit comments