Automated Rsync Backup with Password Auth & Alert System — n8n ワークフロー

複雑度 トリガー14個のノード💎 Other作成者:Vigh Sandor

概要

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

使用ノード

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

ワークフロープレビュー

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

仕組み

  1. 1

    トリガー

    このワークフローは トリガー トリガーで開始します。

  2. 2

    処理

    データは 14 個のノードを流れます, connecting executecommand, if, manualtrigger。

  3. 3

    出力

    ワークフローは自動化を完了し、設定された宛先に結果を配信します。

ノード詳細 (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

このワークフローのインポート方法

  1. 1右側の JSONをダウンロード ボタンをクリックしてワークフローファイルを保存します。
  2. 2n8nインスタンスを開き、ワークフロー → 新規 → ファイルからインポート に進みます。
  3. 3ダウンロードした automated-rsync-backup-with-password-auth-alert-system ファイルを選択し、インポートをクリックします。
  4. 4各サービスノードの 認証情報(APIキー、OAuthなど)を設定します。
  5. 5ワークフローをテスト をクリックして動作確認し、有効化します。

またはn8nの JSONからインポート に直接貼り付け:

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

インテグレーション

executecommandifmanualtriggerscheduletriggerset

このワークフローを取得

ワンクリックでダウンロード&インポート

JSONをダウンロードn8n.ioで見る
ノード14
複雑度medium
トリガーtrigger
カテゴリOther

作成者

Vigh Sandor

Vigh Sandor

@vighsandor

タグ

executecommandifmanualtriggerscheduletriggerset

n8n初めてですか?

n8nは無料のオープンソースワークフロー自動化ツールです。セルフホストまたはクラウド版をご利用いただけます。

n8nを無料で始める →