Git backup of workflows and credentials — n8n ワークフロー
概要
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
トリガー
このワークフローは トリガー トリガーで開始します。
- 2
処理
データは 7 個のノードを流れます, connecting cron, executecommand, manualtrigger。
- 3
出力
ワークフローは自動化を完了し、設定された宛先に結果を配信します。
ノード詳細 (7)
ON#1
On clicking 'execute'
manualTrigger
GI#2
git push
executeCommand
CR#3
Cron
cron
このワークフローのインポート方法
- 1右側の JSONをダウンロード ボタンをクリックしてワークフローファイルを保存します。
- 2n8nインスタンスを開き、ワークフロー → 新規 → ファイルからインポート に進みます。
- 3ダウンロードした
git-backup-of-workflows-and-credentialsファイルを選択し、インポートをクリックします。 - 4各サービスノードの 認証情報(APIキー、OAuthなど)を設定します。
- 5ワークフローをテスト をクリックして動作確認し、有効化します。
またはn8nの JSONからインポート に直接貼り付け:
{ "name": "Git backup of workflows and credentials", "nodes": [...], ...}
インテグレーション
cronexecutecommandmanualtrigger
作成者
Allan Daemon
@allandaemon
タグ
cronexecutecommandmanualtrigger