Git backup of workflows and credentials — Workflow n8n

Moyen complexité Déclencheur7 nœuds💎 Other👁 13,433 vuespar Allan Daemon

Aperçu

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.

Nœuds utilisés

On clicking 'execute'git pushCron

Aperçu du workflow

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

Comment ça fonctionne

  1. 1

    Déclencheur

    Le workflow démarre avec un déclencheur déclencheur.

  2. 2

    Traitement

    Les données transitent par 7 nœuds, connecting cron, executecommand, manualtrigger.

  3. 3

    Sortie

    Le workflow termine son automatisation et livre le résultat à la destination configurée.

Détails des nœuds (7)

ON

On clicking 'execute'

manualTrigger

#1
GI

git push

executeCommand

#2
CR

Cron

cron

#3

Comment importer ce workflow

  1. 1Cliquez sur le bouton Télécharger JSON à droite pour enregistrer le fichier du workflow.
  2. 2Ouvrez votre instance n8n. Accédez à Workflows → Nouveau → Importer depuis un fichier.
  3. 3Sélectionnez le fichier git-backup-of-workflows-and-credentials téléchargé et cliquez sur Importer.
  4. 4Configurez les identifiants pour chaque nœud de service (clés API, OAuth, etc.).
  5. 5Cliquez sur Tester le workflow pour vérifier que tout fonctionne, puis activez-le.

Ou collez directement dans n8n → Importer depuis JSON :

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

Intégrations

cronexecutecommandmanualtrigger

Obtenir ce workflow

Téléchargez et importez en un clic

Télécharger JSONVoir sur n8n.io
Nœuds7
Complexitémedium
Déclencheurtrigger
Vues13,433
CatégorieOther

Créé par

Allan Daemon

Allan Daemon

@allandaemon

Tags

cronexecutecommandmanualtrigger

Nouveau sur n8n ?

n8n est un outil d'automatisation de workflows gratuit et open-source. Hébergez-le vous-même ou utilisez la version cloud.

Obtenir n8n gratuitement →