{
  "name": "Automated rsync backup with password auth & alert system",
  "nodes": [
    {
      "id": "5c38117c-4f04-4033-a570-cc3d55e78f17",
      "name": "Manual Trigger",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -2800,
        224
      ]
    },
    {
      "id": "f4d96789-441a-4152-b4d8-6922581dfe5b",
      "name": "Server Parameters",
      "type": "n8n-nodes-base.set",
      "position": [
        -2576,
        224
      ]
    },
    {
      "id": "2856d809-25ad-46ba-8056-84e78c7fd66c",
      "name": "Check Sshpass Local",
      "type": "n8n-nodes-base.executeCommand",
      "position": [
        -2352,
        224
      ]
    },
    {
      "id": "98869a56-7d59-4055-bbf8-d437f6d7ca12",
      "name": "Is Installed Local?",
      "type": "n8n-nodes-base.if",
      "position": [
        -2128,
        224
      ]
    },
    {
      "id": "5fdd117b-5e40-4f21-987c-7ca7fb5b2c8b",
      "name": "Install Sshpass Local",
      "type": "n8n-nodes-base.executeCommand",
      "position": [
        -1920,
        320
      ]
    },
    {
      "id": "2e5c2163-e384-4488-9fb6-68d74ce3e932",
      "name": "Check Sshpass on Source",
      "type": "n8n-nodes-base.executeCommand",
      "position": [
        -1696,
        224
      ]
    },
    {
      "id": "5916c184-5925-4fb4-8c8e-accc74e4df29",
      "name": "Is Installed on Source?",
      "type": "n8n-nodes-base.if",
      "position": [
        -1472,
        224
      ]
    },
    {
      "id": "b302372f-007c-4afa-89e1-a453e03064c8",
      "name": "Install Sshpass on Source",
      "type": "n8n-nodes-base.executeCommand",
      "position": [
        -1248,
        320
      ]
    },
    {
      "id": "93e5b9e9-5a31-404f-932c-ba050d10e5d5",
      "name": "Execute Rsync Backup",
      "type": "n8n-nodes-base.executeCommand",
      "position": [
        -1040,
        224
      ]
    },
    {
      "id": "e2b2ff1a-0d35-42ba-875d-8bb0e78dae8a",
      "name": "Success?",
      "type": "n8n-nodes-base.if",
      "position": [
        -816,
        224
      ]
    },
    {
      "id": "ae9e2524-1b95-4473-8679-1b42809583cd",
      "name": "Backup Successful",
      "type": "n8n-nodes-base.set",
      "position": [
        -592,
        128
      ]
    },
    {
      "id": "3d4ee816-96aa-4ac3-ab96-54f8ab220807",
      "name": "Backup Failed",
      "type": "n8n-nodes-base.set",
      "position": [
        -592,
        320
      ]
    },
    {
      "id": "f7d833ae-0003-48f8-8d13-4f22cb70f52f",
      "name": "Process Finish Report --- Telegam & SMS",
      "type": "n8n-nodes-base.executeCommand",
      "position": [
        -272,
        224
      ]
    },
    {
      "id": "4f541742-fac7-4d71-b236-c4bc65856f4a",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -3088,
        -240
      ],
      "parameters": {
        "width": 380,
        "height": 232,
        "content": "## Automated Rsync Backup\n\nPassword-based SSH backup between servers using rsync.\n\nAutomatically installs dependencies, performs backup from source to target server, and sends status notifications via"
      }
    },
    {
      "id": "b74c3604-78af-4a0c-a7df-b4bd0c1ecd71",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2576,
        384
      ],
      "parameters": {
        "width": 340,
        "height": 348,
        "content": "## SERVER CONFIGURATION REQUIRED\n\nSource Server:\n- source_host, source_port, source_user\n- source_password, source_folder\n\nTarget Server:\n- target_host, target_port, target_user\n- target_password, tar"
      }
    },
    {
      "id": "b6910e2a-f654-4918-a3e1-51bddbe9bb51",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2352,
        -64
      ],
      "parameters": {
        "width": 340,
        "height": 248,
        "content": "## Dependency Management\n\nAutomatically checks and installs sshpass and rsync:\n1. Check if sshpass installed locally\n2. Install if missing (apt/yum/dnf/apk)\n3. Check sshpass on source server\n4. Instal"
      }
    },
    {
      "id": "720d40a5-6799-4d92-8b2d-1b4e27e7408c",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1040,
        -64
      ],
      "parameters": {
        "width": 320,
        "height": 256,
        "content": "## Backup Execution\n\nConnects to source server via SSH and executes rsync command.\n\nData transfers directly between source and target servers, not through n8n.\n\nUses password authentication for both c"
      }
    },
    {
      "id": "55adad40-e782-4687-bd28-d99414754a2e",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -592,
        464
      ],
      "parameters": {
        "width": 300,
        "height": 224,
        "content": "## Status Handling\n\nChecks rsync exit code:\n- Exit 0: Success - captures stdout\n- Non-zero: Failure - captures exit code and stderr\n\nBoth paths generate detailed status report with timestamp and serve"
      }
    },
    {
      "id": "db8dbab3-3671-424e-b690-d82c56bed6c5",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -272,
        -96
      ],
      "parameters": {
        "width": 340,
        "height": 296,
        "content": "## NOTIFICATION CONFIGURATION\n\nReplace placeholders:\n- YOUR-TELEGRAM-BOT-TOKEN\n- YOUR-TELEGRAM-CHANNEL-ID\n- +36301234567 (phone numbers)\n- YOUR-TEXTBELT-API-KEY\n\nSends success or failure report with t"
      }
    },
    {
      "id": "0c19273d-a6a3-43c9-9f4a-a43f8a1029b1",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -3248,
        128
      ],
      "parameters": {
        "width": 388,
        "height": 112,
        "content": "## Scheduling\n\nCurrently manual trigger and  Schedule Trigger."
      }
    },
    {
      "id": "f5f0cb34-f5a9-4ad9-a2ee-54852328bc54",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -2800,
        32
      ]
    }
  ],
  "connections": {
    "Success?": {
      "main": [
        [
          {
            "node": "Backup Successful",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Backup Failed",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Backup Failed": {
      "main": [
        [
          {
            "node": "Process Finish Report --- Telegam & SMS",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Manual Trigger": {
      "main": [
        [
          {
            "node": "Server Parameters",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Server Parameters",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Backup Successful": {
      "main": [
        [
          {
            "node": "Process Finish Report --- Telegam & SMS",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Server Parameters": {
      "main": [
        [
          {
            "node": "Check Sshpass Local",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check Sshpass Local": {
      "main": [
        [
          {
            "node": "Is Installed Local?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Is Installed Local?": {
      "main": [
        [
          {
            "node": "Check Sshpass on Source",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Install Sshpass Local",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Execute Rsync Backup": {
      "main": [
        [
          {
            "node": "Success?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Install Sshpass Local": {
      "main": [
        [
          {
            "node": "Check Sshpass on Source",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check Sshpass on Source": {
      "main": [
        [
          {
            "node": "Is Installed on Source?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Is Installed on Source?": {
      "main": [
        [
          {
            "node": "Execute Rsync Backup",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Install Sshpass on Source",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Install Sshpass on Source": {
      "main": [
        [
          {
            "node": "Execute Rsync Backup",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}