ES | EN
DevOps

Git backup of workflows and credentials

CronExecute Command
Nodes 7
Complexity Advanced
Category DevOps
n8n popularity 13,433 views in n8n library

This creates a git backup of the workflows and credentials. It uses the n8n export command with git diff, so you can run as many times as you want, but only when there are changes they will create a commit. Setup You need some access to the server. Create a repository in some remote place to host your project, like Github, Gitlab, or your favorite private repo. Clone the repository in the server in a place that the n8n has access. In the example, it's the ., and the repository name is repo. Change it in the commands and in the workflow commands (you can set it as a variable in the wokflow). Checkout to another branch if you won't use the master one. cd . git clone repository Or you could git init and then add the remote (git remote add origin YOUR_REPO_URL), whatever pleases you more. As the server, check if everything is ok for beeing able to commit. Very likely you'll need to setup the user email and name. Try to create a commit, and push it to upstream, and everything you nee

Apps and nodes included

Step-by-Step Implementation Guide

Backup Git de Workflows

Crea un backup Git de workflows y credenciales utilizando n8n export y git diff.

Pasos de Configuración

  • Este workflow necesita ser implementado mediante script, por lo tanto no tiene configuración en la interfaz gráfica.
  • Paso 1: Configurar repositorio Git remoto.
  • Paso 2: Configurar script de exportación de workflows y credenciales.
  • Paso 3: Automatizar la ejecución del script para el backup.
⚡ Open and edit in Scriflow ← Browse all n8n templates

Scriflow builds and adapts n8n workflows with AI. Open this template in the editor to get the import-ready JSON.