Translated by AI model Qwen/Qwen3-8B.
Source Language: Simplified Chinese, Target Language: english, Translation Time: 2026-05-01 14:57
.AI translation is for reference only. Accuracy is not guaranteed, please refer to the original text.
Preface
Umami Cloud has two obvious limitations
- The free version only retains 1 year of data
- Only 3 websites can be added
1 year of data retention is definitely not enough, I want to record for several years.
It seems that data import/export functionality is only available in Umami Cloud, while self-hosted versions lack this option. I hope the Umami development team can add import/export functionality.
This article guides you through exporting data from Umami Cloud and migrating it to self-hosted Umami.
Much of the content in this article references 《How to Import a CSV from Umami Cloud to Self-Hosted Umami》
Exporting Umami Cloud Data
In the left sidebar of Umami Cloud, open Data, click the Export button, select the website you want to export, and click export to receive a download link in your email. Note that the download link may require some magic to open.

Data Processing
You need to use a Python script to process the data, which can be downloaded from GitHub script or used via Huggingface Space.
Follow the instructions in the script or website, replacing the old site ID with the new site ID.
GitHub uses umami_import_pandas.py or umami_import.py to process data
After processing the data, you will see two generated files: website_event.csv and session.csv.
Then use the code at the bottom of the umami_import_no_duplicates.ipynb file to remove duplicate values from session.csv
Finish
Finally, open your Umami and you will see that the imported data is correctly displayed.
If you enjoyed this, leave a comment~