Git backup of workflows and credentials — n8n Workflow

Mittel Komplexität Auslöser7 Knoten💎 Other👁 13,433 Aufrufevon Allan Daemon

Ü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

On clicking 'execute'git pushCron

Workflow-Vorschau

O
On clicking 'execute'
E
Export Workflows
E
Export Credentials
G
git add
G
git commit
G
git push
C
Cron
7 nodes6 edges

So funktioniert es

  1. 1

    Auslöser

    Der Workflow startet mit einem auslöser-Auslöser.

  2. 2

    Verarbeitung

    Die Daten fließen durch 7 Knoten, connecting cron, executecommand, manualtrigger.

  3. 3

    Ausgabe

    Der Workflow schließt seine Automatisierung ab und liefert das Ergebnis an das konfigurierte Ziel.

Knotendetails (7)

ON

On clicking 'execute'

manualTrigger

#1
GI

git push

executeCommand

#2
CR

Cron

cron

#3

So importieren Sie diesen Workflow

  1. 1Klicken Sie rechts auf die Schaltfläche JSON herunterladen, um die Workflow-Datei zu speichern.
  2. 2Öffnen Sie Ihre n8n-Instanz. Gehen Sie zu Workflows → Neu → Aus Datei importieren.
  3. 3Wählen Sie die heruntergeladene Datei git-backup-of-workflows-and-credentials und klicken Sie auf Importieren.
  4. 4Richten Sie Anmeldedaten für jeden Dienstknoten ein (API-Schlüssel, OAuth usw.).
  5. 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:

{ "name": "Git backup of workflows and credentials", "nodes": [...], ...}

Integrationen

cronexecutecommandmanualtrigger

Diesen Workflow holen

Herunterladen und mit einem Klick importieren

JSON herunterladenAuf n8n.io ansehen
Knoten7
Komplexitätmedium
Auslösertrigger
Aufrufe13,433
KategorieOther

Erstellt von

Allan Daemon

Allan Daemon

@allandaemon

Tags

cronexecutecommandmanualtrigger

Neu bei n8n?

n8n ist ein kostenloses Open-Source-Workflow-Automatisierungstool. Selbst hosten oder die Cloud-Version nutzen.

n8n kostenlos holen →