Git backup of workflows and credentials — n8n ワークフロー

複雑度 トリガー7個のノード💎 Other👁 13,433回閲覧作成者:Allan Daemon

概要

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.

使用ノード

On clicking 'execute'git pushCron

ワークフロープレビュー

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

仕組み

  1. 1

    トリガー

    このワークフローは トリガー トリガーで開始します。

  2. 2

    処理

    データは 7 個のノードを流れます, connecting cron, executecommand, manualtrigger。

  3. 3

    出力

    ワークフローは自動化を完了し、設定された宛先に結果を配信します。

ノード詳細 (7)

ON

On clicking 'execute'

manualTrigger

#1
GI

git push

executeCommand

#2
CR

Cron

cron

#3

このワークフローのインポート方法

  1. 1右側の JSONをダウンロード ボタンをクリックしてワークフローファイルを保存します。
  2. 2n8nインスタンスを開き、ワークフロー → 新規 → ファイルからインポート に進みます。
  3. 3ダウンロードした git-backup-of-workflows-and-credentials ファイルを選択し、インポートをクリックします。
  4. 4各サービスノードの 認証情報(APIキー、OAuthなど)を設定します。
  5. 5ワークフローをテスト をクリックして動作確認し、有効化します。

またはn8nの JSONからインポート に直接貼り付け:

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

インテグレーション

cronexecutecommandmanualtrigger

このワークフローを取得

ワンクリックでダウンロード&インポート

JSONをダウンロードn8n.ioで見る
ノード7
複雑度medium
トリガーtrigger
閲覧数13,433
カテゴリOther

作成者

Allan Daemon

Allan Daemon

@allandaemon

タグ

cronexecutecommandmanualtrigger

n8n初めてですか?

n8nは無料のオープンソースワークフロー自動化ツールです。セルフホストまたはクラウド版をご利用いただけます。

n8nを無料で始める →