Workflow Backup for n8n
Copia cada noche cada workflow de n8n en un archivo JSON en tu ordenador, con una clave que solo lista workflows. Restaura un archivo o un día entero. n8n 2.49.7 en Docker.
- n8n
- n8n Schedule Trigger node
- n8n node
- n8n Convert to File node
- n8n Read/Write Files from Disk node
Capturas de pantalla
Pago único
- 99 INR+ GST, 116,82 INR en total
- 2 US$
- Descárgalo desde tu biblioteca en cuanto se confirme tu pago.
- Incluye todas las versiones futuras de este proyecto, sin costo adicional.
- Última versión
- 1.0.0 · 27 nov 2026
- Licencia
- Source Code Licence
Descripción general
El código fuente completo de una copia de seguridad nocturna para n8n. A las 2:00 en tu zona horaria obtiene todos los workflows por la API de n8n con una clave que solo puede listarlos, y guarda cada uno como un archivo JSON con fecha en una carpeta de tu ordenador. Incluye el workflow, Docker Compose con n8n 2.49.7 y pasos de restauración probados. Probado en macOS.
Un workflow roto, un cambio desafortunado o un volumen de Docker perdido pueden borrar horas de trabajo. Workflow Backup for n8n guarda en tu propio ordenador una copia de cada workflow de n8n, renovada cada noche, para que siempre puedas volver atrás. Cada caso de abajo se probó en macOS con n8n 2.49.7 y Docker Desktop.
Qué hace
- Copia todos los workflows, cada noche. A las 2:00 en tu zona horaria obtiene todos tus workflows por la API de n8n y guarda cada uno como un archivo JSON en la carpeta
backups. - Pone nombres fáciles de encontrar. Cada archivo lleva el nombre del workflow, su ID y la fecha, como
Daily report (nYpK5qpnSoGjboNz) 2026-11-27.json. Dos workflows con el mismo nombre nunca se sobrescriben, y una/en un nombre se convierte en-. - Usa una clave que solo puede listar workflows. La clave de la API de n8n necesita un solo permiso, workflow:list, así que la copia lee tus workflows y no puede cambiar nada. La clave queda cifrada en n8n, y los archivos de copia nunca la contienen, ni el secreto de ninguna otra credencial.
- Se pone al día tras una parada. Si n8n está apagado a las 2:00, la copia se ejecuta una vez en cuanto n8n vuelve a arrancar.
- Restaura de dos maneras. Importa cualquier archivo suelto en el editor de n8n, o restaura todos los workflows de un día con un solo comando. Los workflows restaurados vuelven sin publicar, listos para revisarlos y publicarlos.
- Ejecuta n8n por ti si lo necesitas.
compose.ymlinicia n8n 2.49.7 en Docker, accesible solo desde tu ordenador, con la carpeta de copias montada donde n8n puede escribir archivos.
Instalación
- Descomprime el archivo y abre una terminal en su carpeta.
- Guarda tu zona horaria en
.enve inicia n8n condocker compose up -d. Si ya usas n8n 2 en Docker, añádele la carpeta de copias, como explica el README. - Abre
http://localhost:5678y crea tu cuenta de propietario. - Crea una clave de la API de n8n con el único permiso workflow:list.
- Importa
workflows/workflow-backup.json, conecta la clave en Get all workflows y haz clic en Execute workflow para la primera copia. - Publica el workflow.
Cada paso con capturas de pantalla (en inglés): How to Set Up and Run the Workflow Backup for n8n (se abre en una pestaña nueva).
Conviene saber
- Solo workflows. Cada archivo guarda los nodos, los ajustes, las etiquetas y los datos fijados de un workflow. Las credenciales aparecen solo por su nombre, y no incluye tablas de datos ni el historial de ejecuciones.
- Cambia la hora en un solo nodo. Nightly schedule se ejecuta a las 2:00 por defecto.
- Las copias antiguas se quedan hasta que las borres. Una segunda copia el mismo día reemplaza los archivos de ese día.
- n8n no va incluido.
compose.ymldescarga la imagen oficial de n8n, y a n8n se le aplica su propia licencia. - Probado en macOS con Docker Desktop.
Aprende cómo funciona
El n8n Tutorial for Beginners (se abre en una pestaña nueva) gratuito (en inglés) enseña n8n desde cero. Part 6: Credentials: Connect n8n to Your Apps (se abre en una pestaña nueva) crea la clave de la API y la credencial que usa este workflow, y How to Create an n8n API Key (se abre en una pestaña nueva) explica los permisos a fondo.
n8n es una marca de n8n GmbH. Docker es una marca de Docker, Inc. Los demás nombres son marcas de sus respectivos propietarios.
Serie de tutoriales gratuita
n8n Tutorial for Beginners
¿Prefieres aprender construyéndolo? Esta guía gratuita y paso a paso en nuestro blog muestra cómo se hace el proyecto.
Qué te llevas
Todo lo que hay en el archivo, de un vistazo.
- La versión 1.0.0 del código fuente completo: un workflow de n8n, un archivo de Docker Compose, un ejemplo de .env, una carpeta backups vacía y un README
- El workflow Workflow backup: una programación nocturna, un paso que obtiene todos los workflows por la API de n8n, otro que convierte cada uno en un archivo JSON y otro que guarda los archivos
- Nombres de archivo con el nombre del workflow, su ID y la fecha, seguros también para nombres con una barra
- Los pasos para crear una clave de API con el único permiso workflow:list
- compose.yml con n8n 2.49.7, privado en tu ordenador, con la carpeta de copias montada y el puerto y la zona horaria en .env
- Un README con los pasos de instalación, los archivos de copia, cómo restaurar un workflow o un día entero, ajustes, solución de problemas y limpieza
Construido con
Los entornos y las versiones exactos con los que se creó y se probó.
- n8n2.49.7
- n8n Schedule Trigger node1.4
- n8n node1
- n8n Convert to File node1.2
- n8n Read/Write Files from Disk node1.1
- Docker Compose5.7.1
- Docker Engine29.9.3
Qué contiene el archivo
El árbol de carpetas que obtienes al descomprimirlo.
workflow-backup-n8n/
- .env.example
- .gitattributes
- .gitignore
- README.md
- backups/
- .gitkeep
- compose.yml
- workflows/
- workflow-backup.json
Qué necesita de ti
Las cuentas y los servicios que espera encontrar, para que nada te sorprenda.
- n8n 2 que ejecutes tú mismo (basta con la Community Edition gratuita), o Docker para ejecutar el n8n incluido
- Docker Desktop en macOS o Windows, o Docker Engine en Linux, para usar compose.yml
- Un puerto libre en tu ordenador, el 5678 por defecto
- Con tu propio n8n en Docker: una carpeta montada en /home/node/.n8n-files/backups, como explica el README
Versiones
Todas las versiones hasta ahora, de la más reciente a la más antigua.
1.0.0Más reciente
Primera versión del código fuente completo.
- Una copia nocturna de todos los workflows de n8n a las 2:00, con un archivo JSON por workflow en la carpeta backups.
- Lee los workflows por la API de n8n con una clave que tiene el único permiso workflow:list.
- Se ejecuta una vez para ponerse al día cuando n8n estaba apagado a las 2:00.
- Pasos para restaurar un workflow (importándolo en el editor) o un día entero (con la línea de comandos de n8n).
- n8n 2.49.7 en Docker con compose.yml, probado en macOS.
Source Code Licence
Qué puedes hacer con él
What you may and may not do with the source code you buy.
Leer la licencia completa
- What this licence covers
This licence governs every file included in a product you buy from Dewiride Store: source code, configuration, database scripts, sample data, documentation and any other file in the download. It takes effect when your payment is confirmed and applies to every release of that product that reaches your library. Files that reach your library through an annual updates membership are governed in exactly the same way.
It forms part of the Terms of Sale and Use. Where a product page states different or additional licence terms for that product, those terms prevail for that product. The membership page may likewise state different or additional licence terms for the files a membership carries, and those terms then prevail for those files.
- The licence we grant you
We grant you a perpetual, worldwide, non-exclusive, non-transferable licence to use, reproduce, adapt, translate and modify the files, and to include the result in your own work, on the conditions set out below.
Perpetual means it does not expire. Worldwide means it is not limited to any country. Non-exclusive means we license the same product to other customers. Non-transferable means you cannot pass it on to someone else.
The licence is granted to you — either you personally, or the organisation you identified when buying. Everyone working within that organisation may use the files for that organisation’s projects. Nobody outside it may.
- What you may do
- Use and change the files in your own projects, commercial or otherwise, with no limit on the number of projects.
- Build a product or a service on them and charge your own customers for it.
- Deploy the result for a client, as part of work you are doing for that client.
- Distribute the result in compiled, deployed or otherwise non-source form.
- Keep as many back-up copies as you reasonably need.
- Study, observe and test how the code works, and obtain the information you need to make it work with your own software.
The last two are yours by law under sections 52(1)(aa) to (ac) of the Indian Copyright Act, 1957, and nothing in this licence is intended to take them away.
- What you may not do
- Resell, sublicense, redistribute or publish the files themselves, in whole or in substantial part, in source form.
- Include them in a template, starter kit, course, tutorial repository or component library that you sell or give away, where the code is the thing being supplied.
- Share your account, your download links or your invoices with anyone outside your organisation.
- Publish the files in a public repository, or in any other place where they can be obtained without buying them.
- Remove or obscure the copyright and attribution notices in the source files.
- Use the files to build something whose main purpose is to compete with Dewiride Store as a supplier of the same code.
The distinction that matters is simple: you may sell what you build with the code; you may not sell the code.
- Third-party components
Our products depend on open-source libraries, frameworks and services that we did not write. Those remain under their own licences, which we do not and cannot change. Where a product includes or requires such a component, its licence is named in the product’s documentation, and complying with it is your responsibility.
- Releases
Every release of a product you own is covered by this same licence and appears in your library at no extra cost. A release you have already downloaded remains licensed to you even if we later stop publishing the product. A release that reached your library through an annual updates membership is licensed to you on these same terms, and stays licensed after the period that carried it has ended.
- Ownership
We keep ownership of the files and of the copyright in them. You own whatever you create with them: your changes, your additions and the product you build are yours.
- If this licence ends
This licence ends if you materially breach it and do not put the breach right within thirty days of us asking you to in writing. It also ends if your payment is reversed or refunded, because the purchase it depends on no longer stands. Where a membership period is refunded or reversed, the licence ends for the releases that period carried and for nothing else: anything you bought separately, or that another period carried, is unaffected.
If it ends, you must stop using the files and delete the copies you hold. Work you had already delivered to a client before that point may continue in use, so that ending this licence never breaks something your own customer relies on.
- No warranty beyond the description
The warranties and limits in section 19 and section 20 of the Terms of Sale and Use apply to this licence as well.
- Governing law
This licence is governed by the law of India, and section 24 of the Terms of Sale and Use applies to any dispute about it. If a translation and the English version differ in meaning, the English version governs.
Workflow Backup for n8n
- 99 INR+ GST, 116,82 INR en total
- 2 US$