{"id":19281272,"url":"https://github.com/zouloux/umami-import-csv","last_synced_at":"2025-02-23T22:19:10.574Z","repository":{"id":213755228,"uuid":"734854135","full_name":"zouloux/umami-import-csv","owner":"zouloux","description":"Import CSV from Umami Cloud into any custom Umami instance.","archived":false,"fork":false,"pushed_at":"2023-12-22T21:22:10.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-05T16:45:47.263Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zouloux.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-12-22T20:18:25.000Z","updated_at":"2023-12-22T20:21:28.000Z","dependencies_parsed_at":"2023-12-22T21:27:41.858Z","dependency_job_id":"b7c4183e-f36d-4168-8896-3b0a6ebb8c4c","html_url":"https://github.com/zouloux/umami-import-csv","commit_stats":null,"previous_names":["zouloux/umami-import-csv"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zouloux%2Fumami-import-csv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zouloux%2Fumami-import-csv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zouloux%2Fumami-import-csv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zouloux%2Fumami-import-csv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zouloux","download_url":"https://codeload.github.com/zouloux/umami-import-csv/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240385731,"owners_count":19793062,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T21:22:12.718Z","updated_at":"2025-02-23T22:19:10.546Z","avatar_url":"https://github.com/zouloux.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Umami import CSV\n\nImport CSV from Umami Cloud into any custom Umami instance.\n\n## Why\n\nThis is script can be used to import CSV from **Umami Cloud** into your **custom Umami instance**.\nThere is an export button on Umami Cloud but this feature does not exists in the open-source version.\nSo, if you need to migrate from **Umami Cloud** to an **On-Premise** version, here is a script helping you to do it.\n\n\n## Usage\n\n#### Install\n- `git pull git@github.com:zouloux/umami-import-csv.git`\n- `cd umami-import-csv`\n- `npm i`\n\n#### Export your CSV\n\nGo to **Umami Cloud**, login and export the website you want to import as CSV.\nAdd this file into the script's directory.\n\n#### Create website\n\nGo to your **On-Premise Umami instance**, and create a new Website which will be imported.\nKeep the created website id.\n\n#### Setup\n\n- Copy default config file `cp config.default.js config.js`\n- Set file name or rename your CSV to match config\n- Set `website.from`, it should be the exact website id in Umami Cloud ( the one you exported )\n- Set `website.to`, it should be the exact website id you just created from your Umami instance\n- Set postgres parameters. The script will check connection before continuing.\n\n#### Run\n\n- `node index.js` and follow instructions\n\n\n## Known issues\n\nNode process keeps running. I maybe forgot to remove some handler or the postgres connection is still running.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzouloux%2Fumami-import-csv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzouloux%2Fumami-import-csv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzouloux%2Fumami-import-csv/lists"}