Git backup of workflows and credentials — n8n Workflow
Übersicht
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.
Verwendete Knoten
Workflow-Vorschau
So funktioniert es
- 1
Auslöser
Der Workflow startet mit einem auslöser-Auslöser.
- 2
Verarbeitung
Die Daten fließen durch 7 Knoten, connecting cron, executecommand, manualtrigger.
- 3
Ausgabe
Der Workflow schließt seine Automatisierung ab und liefert das Ergebnis an das konfigurierte Ziel.
Knotendetails (7)
On clicking 'execute'
manualTrigger
git push
executeCommand
Cron
cron
So importieren Sie diesen Workflow
- 1Klicken Sie rechts auf die Schaltfläche JSON herunterladen, um die Workflow-Datei zu speichern.
- 2Öffnen Sie Ihre n8n-Instanz. Gehen Sie zu Workflows → Neu → Aus Datei importieren.
- 3Wählen Sie die heruntergeladene Datei
git-backup-of-workflows-and-credentialsund klicken Sie auf Importieren. - 4Richten Sie Anmeldedaten für jeden Dienstknoten ein (API-Schlüssel, OAuth usw.).
- 5Klicken Sie auf Workflow testen, um zu überprüfen, ob alles funktioniert, und aktivieren Sie es dann.
Oder direkt in n8n → Aus JSON importieren einfügen:
Integrationen
Diesen Workflow holen
Herunterladen und mit einem Klick importieren
JSON herunterladenAuf n8n.io ansehenErstellt von
Allan Daemon
@allandaemon
Tags
Neu bei n8n?
n8n ist ein kostenloses Open-Source-Workflow-Automatisierungstool. Selbst hosten oder die Cloud-Version nutzen.
n8n kostenlos holen →