Files
n8n/flows/33.json

141 lines
2.6 KiB
JSON
Raw Normal View History

2022-06-15 07:08:13 +00:00
{
"id": 33,
"name": "Git backup of ESPHOME",
2022-06-15 21:00:48 +00:00
"active": true,
2022-06-15 07:08:13 +00:00
"nodes": [
{
"parameters": {},
"name": "Start",
"type": "n8n-nodes-base.start",
"position": [
2022-06-15 21:00:48 +00:00
180,
620
2022-06-15 07:08:13 +00:00
],
"typeVersion": 1
},
{
"parameters": {
"triggerTimes": {
"item": [
{
2022-06-15 21:00:48 +00:00
"hour": 23
2022-06-15 07:08:13 +00:00
}
]
}
},
"name": "Cron",
"type": "n8n-nodes-base.cron",
"position": [
200,
2022-06-15 21:00:48 +00:00
260
2022-06-15 07:08:13 +00:00
],
"typeVersion": 1
},
{
"parameters": {
2022-06-15 21:00:48 +00:00
"command": "=git commit -m \"Auto backup ({{ new Date().toISOString() }})\"",
"cwd": "/opt/esphome/config"
2022-06-15 07:08:13 +00:00
},
2022-06-15 21:00:48 +00:00
"name": "git commit1",
"type": "n8n-nodes-base.ssh",
2022-06-15 07:08:13 +00:00
"typeVersion": 1,
"position": [
2022-06-15 21:00:48 +00:00
720,
260
2022-06-15 07:08:13 +00:00
],
"credentials": {
2022-06-15 21:00:48 +00:00
"sshPassword": {
"id": "33",
"name": "automation"
2022-06-15 07:08:13 +00:00
}
}
},
{
"parameters": {
2022-06-15 21:00:48 +00:00
"command": "git push https://nia:4159b2141ce710381857585e10f643c40ea613e3@lab.cynic.club/nia/esphome.git --all ",
"cwd": "/opt/esphome/config"
2022-06-15 07:08:13 +00:00
},
2022-06-15 21:00:48 +00:00
"name": "git push1",
"type": "n8n-nodes-base.ssh",
2022-06-15 07:08:13 +00:00
"typeVersion": 1,
"position": [
2022-06-15 21:00:48 +00:00
940,
260
],
"credentials": {
"sshPassword": {
"id": "33",
"name": "automation"
}
}
2022-06-15 07:08:13 +00:00
},
{
"parameters": {
2022-06-15 21:00:48 +00:00
"command": "git add .",
"cwd": "/opt/esphome/config"
2022-06-15 07:08:13 +00:00
},
2022-06-15 21:00:48 +00:00
"name": "git add",
2022-06-15 07:08:13 +00:00
"type": "n8n-nodes-base.ssh",
"typeVersion": 1,
"position": [
2022-06-15 21:00:48 +00:00
480,
260
2022-06-15 07:08:13 +00:00
],
"credentials": {
"sshPassword": {
"id": "33",
"name": "automation"
}
}
}
],
"connections": {
"Cron": {
"main": [
[
{
2022-06-15 21:00:48 +00:00
"node": "git add",
2022-06-15 07:08:13 +00:00
"type": "main",
"index": 0
}
]
]
},
2022-06-15 21:00:48 +00:00
"git commit1": {
2022-06-15 07:08:13 +00:00
"main": [
[
{
2022-06-15 21:00:48 +00:00
"node": "git push1",
2022-06-15 07:08:13 +00:00
"type": "main",
"index": 0
}
]
]
},
"git add": {
"main": [
[
{
2022-06-15 21:00:48 +00:00
"node": "git commit1",
2022-06-15 07:08:13 +00:00
"type": "main",
"index": 0
}
]
]
}
},
"createdAt": "2022-06-15T06:06:51.257Z",
2022-06-21 21:00:40 +00:00
"updatedAt": "2022-06-21T03:20:36.367Z",
2022-06-15 07:08:13 +00:00
"settings": {
"errorWorkflow": "25"
},
"staticData": null,
"tags": [
{
"id": "2",
"name": "my",
"createdAt": "2022-05-19T09:37:15.931Z",
"updatedAt": "2022-05-19T09:37:15.931Z"
}
]
}