first commit

This commit is contained in:
nia
2022-05-26 20:57:30 +03:00
commit 6947901454
48 changed files with 5240 additions and 0 deletions

257
flows/26.json Normal file
View File

@@ -0,0 +1,257 @@
{
"id": 26,
"name": "Git backup of workflows and credentials",
"active": false,
"nodes": [
{
"parameters": {},
"name": "Start",
"type": "n8n-nodes-base.start",
"position": [
200,
620
],
"typeVersion": 1
},
{
"parameters": {
"command": "npx n8n export:workflow --backup --output repo/workflows/"
},
"name": "Export Workflows",
"type": "n8n-nodes-base.executeCommand",
"position": [
440,
400
],
"typeVersion": 1
},
{
"parameters": {
"command": "npx n8n export:credentials --backup --output repo/credentials/"
},
"name": "Export Credentials",
"type": "n8n-nodes-base.executeCommand",
"position": [
590,
400
],
"typeVersion": 1
},
{
"parameters": {
"command": "git -C repo add ."
},
"name": "git add",
"type": "n8n-nodes-base.executeCommand",
"position": [
740,
400
],
"typeVersion": 1
},
{
"parameters": {
"command": "=git -C repo commit -m \"Auto backup ({{ new Date().toISOString() }})\""
},
"name": "git commit",
"type": "n8n-nodes-base.executeCommand",
"position": [
890,
400
],
"typeVersion": 1
},
{
"parameters": {
"command": "git -C repo push"
},
"name": "git push",
"type": "n8n-nodes-base.executeCommand",
"position": [
1040,
400
],
"typeVersion": 1
},
{
"parameters": {
"triggerTimes": {
"item": [
{
"hour": 0
},
{
"hour": 12
},
{
"hour": 6
},
{
"hour": 18
}
]
}
},
"name": "Cron",
"type": "n8n-nodes-base.cron",
"position": [
200,
400
],
"typeVersion": 1
},
{
"parameters": {
"command": "npx n8n export:workflow --backup --output /home/node/.n8n/backup/flows/"
},
"name": "Export Workflows1",
"type": "n8n-nodes-base.executeCommand",
"position": [
460,
620
],
"typeVersion": 1
},
{
"parameters": {
"command": "npx n8n export:credentials --backup --output /home/node/.n8n/backup/credentials/"
},
"name": "Export Credentials1",
"type": "n8n-nodes-base.executeCommand",
"position": [
640,
620
],
"typeVersion": 1
},
{
"parameters": {
"command": "git add ."
},
"name": "git add1",
"type": "n8n-nodes-base.executeCommand",
"position": [
1020,
620
],
"typeVersion": 1
},
{
"parameters": {
"command": "cd /home/node/.n8n/backup/ "
},
"name": "git add2",
"type": "n8n-nodes-base.executeCommand",
"position": [
840,
620
],
"typeVersion": 1
}
],
"connections": {
"Cron": {
"main": [
[
{
"node": "Export Workflows1",
"type": "main",
"index": 0
}
]
]
},
"Start": {
"main": [
[
{
"node": "Export Workflows1",
"type": "main",
"index": 0
}
]
]
},
"git add": {
"main": [
[
{
"node": "git commit",
"type": "main",
"index": 0
}
]
]
},
"git commit": {
"main": [
[
{
"node": "git push",
"type": "main",
"index": 0
}
]
]
},
"Export Workflows": {
"main": [
[
{
"node": "Export Credentials",
"type": "main",
"index": 0
}
]
]
},
"Export Credentials": {
"main": [
[
{
"node": "git add",
"type": "main",
"index": 0
}
]
]
},
"Export Workflows1": {
"main": [
[
{
"node": "Export Credentials1",
"type": "main",
"index": 0
}
]
]
},
"Export Credentials1": {
"main": [
[
{
"node": "git add2",
"type": "main",
"index": 0
}
]
]
},
"git add2": {
"main": [
[
{
"node": "git add1",
"type": "main",
"index": 0
}
]
]
}
},
"createdAt": "2022-05-26T17:20:27.486Z",
"updatedAt": "2022-05-26T17:43:02.120Z",
"settings": {},
"staticData": null
}