ES | EN
DevOps

Back Up Your n8n Workflows To Github

GitHubSlack
Nodes 4
Complexity Intermediate
Category DevOps
n8n popularity 80,446 views in n8n library

This workflow will backup your workflows to Github. It uses the public api to export all of the workflow data using the n8n node. It then loops over the data checks in Github to see if a file exists that uses the workflow name. Once checked it will then update the file on Github if it exists, Create a new file if it doesn't exist and if it's the same it will ignore the file. Config Options repo_owner - Github owner repo_name - Github repository name repo_path - Path within the Github repository >This workflow has been updated to use the n8n node and the code node so requires at least version 0.198.0 of n8n

Apps and nodes included

Step-by-Step Implementation Guide

Backup workflows n8n en Github

Este workflow realiza un backup automático de tus workflows n8n en un repositorio de GitHub.

Nodos Clave

  • GitHub: Para la interacción con el repositorio.
  • HTTP Request: Para obtener datos desde n8n.
  • Slack: Opcional, para notificaciones.
  • Code: Para la manipulación de datos y lógica.

Pasos de Configuración

  • Paso 1: Configura el nodo GitHub con tus credenciales y el nombre del repositorio.
  • Paso 2: Configura el nodo HTTP Request para exportar los workflows desde n8n.
  • Paso 3: Utiliza el nodo Code para verificar la existencia del archivo en GitHub, actualizarlo o crearlo.
  • Paso 4: Configura (opcionalmente) Slack para recibir notificaciones.
  • Paso 5: Ejecuta el workflow para respaldar tus workflows en GitHub.
⚡ 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.