8
n8n 中文网amn8n.com

n8n备份管家v3

高级

这是一个DevOps领域的自动化工作流,包含 21 个节点。主要使用 If, Code, Gmail, Telegram, HttpRequest 等节点。 工作流自动备份至GitHub,支持邮件/Telegram通知

前置要求
  • Google 账号和 Gmail API 凭证
  • Telegram Bot Token
  • 可能需要目标 API 的认证凭证
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "CoZQfRWF6W1aefv3",
  "meta": {
    "instanceId": "2d4b97f52377b00080bd41b0ce66bd68553d32852974b6b1df9d5b8b439728d9",
    "templateCredsSetupCompleted": true
  },
  "name": "n8n BackupButler v3",
  "tags": [
    {
      "id": "GviYgVwcOV5jZvGf",
      "name": "tool agents",
      "createdAt": "2025-05-19T16:06:57.753Z",
      "updatedAt": "2025-05-19T16:06:57.753Z"
    },
    {
      "id": "8fLouiGmzDJLJsrG",
      "name": "n8n management",
      "createdAt": "2025-06-13T08:55:51.766Z",
      "updatedAt": "2025-06-13T08:55:51.766Z"
    }
  ],
  "nodes": [
    {
      "id": "89c33815-0a95-40e5-ae6c-3a53fca73ad1",
      "name": "当点击\"测试工作流\"时",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        1220,
        360
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "7b770371-ea6e-4388-a91c-6ab290473219",
      "name": "创建_备份_包",
      "type": "n8n-nodes-base.code",
      "position": [
        1320,
        -580
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "1f27b64d-bdec-4701-b2a4-38b1d9cc0e5f",
      "name": "获取_工作流",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        880,
        -580
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "6e44ca90-eb57-40b2-973f-553db43e9316",
      "name": "检查_仓库_是否存在",
      "type": "n8n-nodes-base.httpRequest",
      "onError": "continueRegularOutput",
      "position": [
        1540,
        -580
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "5fc2401f-20ab-4bd1-a340-2d6bca4fffe2",
      "name": "如果_仓库_不存在",
      "type": "n8n-nodes-base.if",
      "position": [
        1760,
        -580
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "aa48b4df-8a1e-404a-8ff5-66c6af85f6b4",
      "name": "清理_工作流",
      "type": "n8n-nodes-base.code",
      "position": [
        1100,
        -580
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "0b59f796-e563-47f5-9c0b-e8b4741ff1f3",
      "name": "创建_仓库",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2060,
        -520
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "076fad7a-28c3-4090-93cb-3ce167a2bb49",
      "name": "分割_工作流_文件",
      "type": "n8n-nodes-base.code",
      "position": [
        1240,
        -300
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "225c9fbb-23a6-4c1b-ba53-3b304a1c6688",
      "name": "备份_完成_摘要",
      "type": "n8n-nodes-base.code",
      "position": [
        1680,
        40
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "1994f553-a8a0-4137-8130-e33d85782afc",
      "name": "上传_工作流_文件",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1660,
        -240
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "26625ff2-662b-47bb-99f2-9ac9e2394150",
      "name": "上传_README",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1080,
        -300
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "f10321d3-ce4b-4a54-b661-3d2cc396822c",
      "name": "上传_清单",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        920,
        -300
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "99d76a2d-1756-4912-bf67-75c71d1a3900",
      "name": "循环_工作流_上传",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        1460,
        -300
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "57cd3b4a-0f1a-4f8d-928c-fb2d39a9932c",
      "name": "发送_备份_通知",
      "type": "n8n-nodes-base.telegram",
      "position": [
        2080,
        360
      ],
      "webhookId": "11b90b62-96a3-4810-9e6f-91a04bc882dd",
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "a2392c3a-e96d-49c4-a397-97154fd6ff37",
      "name": "备份_配置",
      "type": "n8n-nodes-base.code",
      "position": [
        200,
        -40
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "1ede5cc3-6b2e-4eb9-80ba-ff5ea269d7b8",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -540,
        -620
      ],
      "parameters": {
        "content": "Emelia 触发器"
      },
      "typeVersion": 1
    },
    {
      "id": "637a98e0-1c84-4e58-a0e9-cdc6c6a1e3b2",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        780,
        260
      ],
      "parameters": {
        "content": "Emelia 触发器"
      },
      "typeVersion": 1
    },
    {
      "id": "31c3c069-ab0a-45a1-94e6-a9aaa664dfa0",
      "name": "每日",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        1220,
        580
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "fd4e9a4c-37bc-4cc4-b159-947f7697aea2",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1580,
        260
      ],
      "parameters": {
        "content": "Emelia 触发器"
      },
      "typeVersion": 1
    },
    {
      "id": "b65879f5-b95c-4035-a7d3-7dea9892fca8",
      "name": "Gmail - 通知",
      "type": "n8n-nodes-base.gmail",
      "position": [
        2080,
        580
      ],
      "webhookId": "943165b9-6d5e-44d2-8602-25c27519c282",
      "parameters": {},
      "typeVersion": 2.1
    },
    {
      "id": "431ebde2-1a24-419a-8e1a-008d6053f43c",
      "name": "便签3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        560,
        -620
      ],
      "parameters": {
        "content": "Emelia 触发器"
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "5a871447-511e-4710-aea7-a40656ca7947",
  "connections": {
    "Backup_Config": {
      "main": [
        [
          {
            "node": "Get_Workflows",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get_Workflows": {
      "main": [
        [
          {
            "node": "Clean_Workflows",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload_README": {
      "main": [
        [
          {
            "node": "Split_Workflow_Files",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Clean_Workflows": {
      "main": [
        [
          {
            "node": "Create_Backup_Package",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload_Manifest": {
      "main": [
        [
          {
            "node": "Upload_README",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create_Repository": {
      "main": [
        [
          {
            "node": "Upload_Manifest",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If_Repo_Not_Exists": {
      "main": [
        [
          {
            "node": "Create_Repository",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Upload_Manifest",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split_Workflow_Files": {
      "main": [
        [
          {
            "node": "Loop_Workflow_Uploads",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create_Backup_Package": {
      "main": [
        [
          {
            "node": "Check_Repository_Exists",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop_Workflow_Uploads": {
      "main": [
        [
          {
            "node": "Backup_Complete_Summary",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Upload_Workflow_Files",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload_Workflow_Files": {
      "main": [
        [
          {
            "node": "Loop_Workflow_Uploads",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Backup_Complete_Summary": {
      "main": [
        [
          {
            "node": "Gmail - Notification",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check_Repository_Exists": {
      "main": [
        [
          {
            "node": "If_Repo_Not_Exists",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Test workflow’": {
      "main": [
        [
          {
            "node": "Backup_Config",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。

这个工作流适合什么场景?

高级 - 开发运维

需要付费吗?

本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。

工作流信息
难度等级
高级
节点数量21
分类1
节点类型9
难度说明

适合高级用户,包含 16+ 个节点的复杂工作流

外部链接
在 n8n.io 查看

分享此工作流