Files
n8n/flows/33.json

149 lines
3.0 KiB
JSON
Executable File

{
"createdAt": "2022-06-15T06:06:51.257Z",
"updatedAt": "2022-06-21T03:20:36.367Z",
"id": 33,
"name": "Git backup of ESPHOME",
"active": true,
"nodes": [
{
"parameters": {},
"name": "Start",
"type": "n8n-nodes-base.start",
"position": [
180,
620
],
"typeVersion": 1,
"id": "e3504cb1-5f4c-4326-b4e7-cf68a9d56099"
},
{
"parameters": {
"triggerTimes": {
"item": [
{
"hour": 23
}
]
}
},
"name": "Cron",
"type": "n8n-nodes-base.cron",
"position": [
200,
260
],
"typeVersion": 1,
"id": "acc80fd3-1340-4626-b471-d5254546efca"
},
{
"parameters": {
"command": "=git commit -m \"Auto backup ({{ new Date().toISOString() }})\"",
"cwd": "/opt/esphome/config"
},
"name": "git commit1",
"type": "n8n-nodes-base.ssh",
"typeVersion": 1,
"position": [
720,
260
],
"credentials": {
"sshPassword": {
"id": "33",
"name": "automation"
}
},
"id": "4b943ea6-e77b-4ec8-8541-80491de3c890"
},
{
"parameters": {
"command": "git push https://nia:4159b2141ce710381857585e10f643c40ea613e3@lab.cynic.club/nia/esphome.git --all ",
"cwd": "/opt/esphome/config"
},
"name": "git push1",
"type": "n8n-nodes-base.ssh",
"typeVersion": 1,
"position": [
940,
260
],
"credentials": {
"sshPassword": {
"id": "33",
"name": "automation"
}
},
"id": "2298f839-19af-453a-be8d-42defc0355cf"
},
{
"parameters": {
"command": "git add .",
"cwd": "/opt/esphome/config"
},
"name": "git add",
"type": "n8n-nodes-base.ssh",
"typeVersion": 1,
"position": [
480,
260
],
"credentials": {
"sshPassword": {
"id": "33",
"name": "automation"
}
},
"id": "a7e3f2f2-24dd-4780-84a4-d1195001c5f5"
}
],
"connections": {
"Cron": {
"main": [
[
{
"node": "git add",
"type": "main",
"index": 0
}
]
]
},
"git commit1": {
"main": [
[
{
"node": "git push1",
"type": "main",
"index": 0
}
]
]
},
"git add": {
"main": [
[
{
"node": "git commit1",
"type": "main",
"index": 0
}
]
]
}
},
"settings": {
"errorWorkflow": "25"
},
"staticData": null,
"dataLoaded": false,
"pinData": null,
"versionId": "4559663b-4176-4ec6-b57e-99983a9efa3c",
"tags": [
{
"createdAt": "2022-05-19T09:37:15.931Z",
"updatedAt": "2022-05-19T09:37:15.931Z",
"id": "2",
"name": "my"
}
]
}