Automated Rsync Backup with Password Auth & Alert System — n8n Workflow

Medium complexity Trigger14 nodes💎 Otherby Vigh Sandor

Overview

Automated Rsync Backup with Password Auth & Alert System

Overview This n8n workflow provides automated rsync backup capabilities between servers using password authentication. It automatically installs required dependencies, performs the backup operation from a source server to a target server, and sends status notifications via Telegram and SMS.

Features Password-based SSH authentication (no key management required) Automatic dependency installation (sshpass, rsync) Cross-platform support (Ub

Nodes used

Manual TriggerBackup FailedProcess Finish Report --- Telegam & SMSSuccess?Sticky Note6Schedule Trigger

Workflow Preview

Automated Rsync Backup
Password-based SSH backup between servers using rsync.
Automatically installs dependencies, performs backup fr
SERVER CONFIGURATION REQUIRED
Source Server:
- source_host, source_port, source_user
- source_password, source_folder
Target Server:
- target_host, target_port, target_user
Dependency Management
Automatically checks and installs sshpass and rsync:
1. Check if sshpass installed locally
2. Install if missing (apt/yum/dnf/apk)
3. Check sshpass on source server
4. Instal
Backup Execution
Connects to source server via SSH and executes rsync co
Data transfers directly between source and target serve
Uses password authentication for both c
Status Handling
Checks rsync exit code:
- Exit 0: Success - captures stdout
- Non-zero: Failure - captures exit code and stderr
Both paths generate detailed status report with timesta
NOTIFICATION CONFIGURATION
Replace placeholders:
- YOUR-TELEGRAM-BOT-TOKEN
- YOUR-TELEGRAM-CHANNEL-ID
- +36301234567 (phone numbers)
- YOUR-TEXTBELT-API-KEY
Scheduling
Currently manual trigger and Schedule Trigger.
M
Manual Trigger
S
Server Parameters
C
Check Sshpass Local
I
Is Installed Local?
I
Install Sshpass Local
C
Check Sshpass on Source
I
Is Installed on Source?
I
Install Sshpass on Source
E
Execute Rsync Backup
S
Success?
B
Backup Successful
B
Backup Failed
P
Process Finish Report --…
S
Schedule Trigger
14 nodes16 edges

How it Works

  1. 1

    Trigger

    The workflow starts with a trigger trigger.

  2. 2

    Process

    Data flows through 14 nodes, connecting executecommand, if, manualtrigger.

  3. 3

    Output

    The workflow completes its automation and delivers the result to the configured destination.

Node Details (14)

MA

Manual Trigger

manualTrigger

#1
BA

Backup Failed

set

#2
PR

Process Finish Report --- Telegam & SMS

executeCommand

#3
SU

Success?

if

#4
ST

Sticky Note6

stickyNote

#5
SC

Schedule Trigger

scheduleTrigger

#6

How to Import This Workflow

  1. 1Click Download JSON button on the right to save the workflow file.
  2. 2Open your n8n instance. Go to Workflows → New → Import from file.
  3. 3Select the downloaded automated-rsync-backup-with-password-auth-alert-system file and click Import.
  4. 4Set up credentials for each service node (API keys, OAuth, etc.).
  5. 5Click Test Workflow to verify everything works, then activate it.

Or paste directly in n8n → Import from JSON:

{ "name": "Automated Rsync Backup with Password Auth & Alert System", "nodes": [...], ...}

Integrations

executecommandifmanualtriggerscheduletriggerset

Get This Workflow

Download and import in one click

Download JSONView on n8n.io
Nodes14
Complexitymedium
Triggertrigger
CategoryOther

Created by

Vigh Sandor

Vigh Sandor

@vighsandor

Tags

executecommandifmanualtriggerscheduletriggerset

New to n8n?

n8n is a free, open-source workflow automation tool. Self-host it or use the cloud version.

Get n8n Free →