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

Moyen complexité Déclencheur14 nœuds💎 Otherpar Vigh Sandor

Aperçu

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

Nœuds utilisés

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

Aperçu du workflow

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

Comment ça fonctionne

  1. 1

    Déclencheur

    Le workflow démarre avec un déclencheur déclencheur.

  2. 2

    Traitement

    Les données transitent par 14 nœuds, connecting executecommand, if, manualtrigger.

  3. 3

    Sortie

    Le workflow termine son automatisation et livre le résultat à la destination configurée.

Détails des nœuds (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

Comment importer ce workflow

  1. 1Cliquez sur le bouton Télécharger JSON à droite pour enregistrer le fichier du workflow.
  2. 2Ouvrez votre instance n8n. Accédez à Workflows → Nouveau → Importer depuis un fichier.
  3. 3Sélectionnez le fichier automated-rsync-backup-with-password-auth-alert-system téléchargé et cliquez sur Importer.
  4. 4Configurez les identifiants pour chaque nœud de service (clés API, OAuth, etc.).
  5. 5Cliquez sur Tester le workflow pour vérifier que tout fonctionne, puis activez-le.

Ou collez directement dans n8n → Importer depuis JSON :

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

Intégrations

executecommandifmanualtriggerscheduletriggerset

Obtenir ce workflow

Téléchargez et importez en un clic

Télécharger JSONVoir sur n8n.io
Nœuds14
Complexitémedium
Déclencheurtrigger
CatégorieOther

Créé par

Vigh Sandor

Vigh Sandor

@vighsandor

Tags

executecommandifmanualtriggerscheduletriggerset

Nouveau sur n8n ?

n8n est un outil d'automatisation de workflows gratuit et open-source. Hébergez-le vous-même ou utilisez la version cloud.

Obtenir n8n gratuitement →