# Recover workflow from old sqlite

**URL:** <https://community.n8n.io/t/recover-workflow-from-old-sqlite/64167>\
**Category:** Questions\
**Created:** [December 5, 2024, 1:13pm UTC](https://community.n8n.io/t/recover-workflow-from-old-sqlite/64167 "2024-12-05T13:13:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Edmunds\_Priede](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/edmunds_priede/32/14912_2.png) [@Edmunds\_Priede](https://community.n8n.io/u/Edmunds_Priede)\
**Post date:** [December 5, 2024, 1:13pm UTC](https://community.n8n.io/t/recover-workflow-from-old-sqlite/64167/1 "2024-12-05T13:13:21Z")

</div>

old selfhosted n8n  
ubuntu 18

can i recover workflow from sqlite database? i see all data in nodes field.

it starts with

```auto
[{"parameters":{},"id":"2e50f7bc-e795-4b7d-9c72-c52c0a142167","name":"Start","type":"n8n-nodes-base.start","typeVersion":1,"position":[-520,120]},{"p

```

---

<div class="post-metadata">

**Author:** ![n8n](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/n8n/32/196425_2.png) [@n8n](https://community.n8n.io/u/n8n)\
**Post date:** [December 5, 2024, 1:13pm UTC](https://community.n8n.io/t/recover-workflow-from-old-sqlite/64167/2 "2024-12-05T13:13:39Z")

</div>

It looks like your topic is missing some important information. Could you provide the following if applicable.

- **n8n version:**
- **Database (default: SQLite):**
- **n8n EXECUTIONS\_PROCESS setting (default: own, main):**
- **Running n8n via (Docker, npm, n8n cloud, desktop app):**
- **Operating system:**

---

<div class="post-metadata">

**Author:** ![ria](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/ria/32/99251_2.png) [@ria](https://community.n8n.io/u/ria)\
**Post date:** [December 6, 2024, 3:18am UTC](https://community.n8n.io/t/recover-workflow-from-old-sqlite/64167/4 "2024-12-06T03:18:43Z")

</div>

Hi @Edmunds_Priede

You should be able to extract the workflow json simply by copy-pasting it.  
But you can also spin up a local version of n8n and move the database to your n8n directory (`.n8n/`) or use the [env option](https://docs.n8n.io/hosting/configuration/environment-variables/database/) to set the home path to where the database is.

You could then use the CLI to export your workflows.

> **[Export workflows and credentials - CLI commands | n8n Docs](https://docs.n8n.io/hosting/cli-commands/#export-workflows-and-credentials)**
>
> The Server CLI is a built-in command-line interface that runs on the same machine as your n8n installation. It provides direct database access for administrative tasks and can execute most commands even when n8n isn't running. | Commands available in...

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/system/32/195824_2.png) [@system](https://community.n8n.io/u/system)\
**Post date:** [March 6, 2025, 3:18am UTC](https://community.n8n.io/t/recover-workflow-from-old-sqlite/64167/5 "2025-03-06T03:18:58Z")

</div>

Closed on March 6, 2025, 3:18am UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
