N8n Docker backup

Hello,
unfortunately I have not found anything that works for me via the search. I have installed n8n via Docker and would like to back up all data externally, as I have many workflows and credentials there.
As a Linux/Docker beginner, I accidentally deleted everything once when I first tried it out and had to rebuild a lot of things, so I would like to have an easy way to make a backup.
What is the best way to do this?


## Share the output returned by the last node
<!-- If you need help with data transformations, please also share your expected output. -->

## Information on your n8n setup
- **n8n version:** 1.29.1
- **Database (default: SQLite):** MySQL
- **n8n EXECUTIONS_PROCESS setting (default: own, main):**
- **Running n8n via (Docker, npm, n8n cloud, desktop app): Dpcker
- **Operating system:** Ubuntu

Hey @blurred,

You have a couple of options, You could follow whatever the docker recommended process is for backing up volumes assuming you are using one or you can use the n8n cli to export workflows / credentials (CLI commands | n8n Docs) then save them to a safe place.

You could even automate this using n8n if you wanted to.

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