N8n self backup

This is a very basic question and I guess it’s been discussed before, couldn’t find references though.

How do I use n8n to regularly back up itself? I use the default Docker setup (n8n 1.14.2), but I don’t know much deeper than that

Simple hint to where to find the database file is good enough

Hey @mustafamohsen,

It all depends on how you are running n8n adn which database you are using. One option could be to use the CLI to export the workflows and save them to Git and export the credentials and store them somewhere else. You could also use the API to export the workflows and save them to git or other locations similar to the examples in the workflow templates.

To answer your question though… The n8n config and n8n database will be in the container under /home/node/.n8n which you may be using a bind / volume for depending on how you configured n8n.

1 Like

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