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

Mittel Komplexität Auslöser14 Knoten💎 Othervon Vigh Sandor

Übersicht

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

Verwendete Knoten

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

Workflow-Vorschau

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

So funktioniert es

  1. 1

    Auslöser

    Der Workflow startet mit einem auslöser-Auslöser.

  2. 2

    Verarbeitung

    Die Daten fließen durch 14 Knoten, connecting executecommand, if, manualtrigger.

  3. 3

    Ausgabe

    Der Workflow schließt seine Automatisierung ab und liefert das Ergebnis an das konfigurierte Ziel.

Knotendetails (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

So importieren Sie diesen Workflow

  1. 1Klicken Sie rechts auf die Schaltfläche JSON herunterladen, um die Workflow-Datei zu speichern.
  2. 2Öffnen Sie Ihre n8n-Instanz. Gehen Sie zu Workflows → Neu → Aus Datei importieren.
  3. 3Wählen Sie die heruntergeladene Datei automated-rsync-backup-with-password-auth-alert-system und klicken Sie auf Importieren.
  4. 4Richten Sie Anmeldedaten für jeden Dienstknoten ein (API-Schlüssel, OAuth usw.).
  5. 5Klicken Sie auf Workflow testen, um zu überprüfen, ob alles funktioniert, und aktivieren Sie es dann.

Oder direkt in n8n → Aus JSON importieren einfügen:

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

Integrationen

executecommandifmanualtriggerscheduletriggerset

Diesen Workflow holen

Herunterladen und mit einem Klick importieren

JSON herunterladenAuf n8n.io ansehen
Knoten14
Komplexitätmedium
Auslösertrigger
KategorieOther

Erstellt von

Vigh Sandor

Vigh Sandor

@vighsandor

Tags

executecommandifmanualtriggerscheduletriggerset

Neu bei n8n?

n8n ist ein kostenloses Open-Source-Workflow-Automatisierungstool. Selbst hosten oder die Cloud-Version nutzen.

n8n kostenlos holen →