Use this robust n8n workflow to automate secure Rsync backups between source and target servers using password authentication (sshpass) and receive instant status alerts via Telegram and SMS.
Download this n8n workflow template and start using it instantly.
A Markdown-formatted string containing a bulleted list.
DevOps Engineers and System Administrators needing reliable, automated server backup solutions.
Users who require password-based SSH authentication for script execution, where SSH keys are not feasible.
Anyone looking for an advanced n8n template demonstrating complex external command execution and error handling.
Businesses requiring instant status alerts (success or failure) for critical server synchronization tasks.
Server backups are critical, but managing dependencies and executing complex, multi-stage commands can be challenging. This specialized n8n workflow solves this by fully automating the Rsync process. It intelligently checks if necessary tools (sshpass and rsync) are installed on both the local n8n machine and the source server, installing them automatically across various Linux distributions (Ubuntu, RHEL, Alpine) if missing. The core logic uses a double sshpass connection to execute rsync from the source server directly to the target server, ensuring data transfer efficiency. The entire operation is wrapped in robust error handling, guaranteeing that regardless of success or failure, a detailed status report is generated and delivered via Telegram and SMS. This powerful n8n node combination turns complex sysadmin tasks into reliable, hands-off automation.
A Markdown-formatted string containing a step-by-step explanation.
sshpass is installed locally on the machine hosting n8n. If the exit code is non-zero, the 'Install Sshpass Local' n8n node runs platform-specific commands to install both sshpass and rsync.sshpass to connect to the source server and checks for sshpass installation there. If needed, the 'Install Sshpass on Source' n8n node installs the dependencies remotely using sudo on the source server.sshpass and rsync to pull data from the source folder and push it directly to the target server, bypassing the n8n machine for data transfer.set n8n node structures.curl commands to send the resulting status message instantly via Telegram and SMS (Textbelt), completing the n8n template execution.A Markdown-formatted string containing installation instructions.
sourcehost, sourceuser, sourcepassword, targethost, targetuser, and targetpassword with your actual server credentials.Execute Command body and replace the following placeholders:YOUR-TELEGRAM-BOT-TOKEN and YOUR-TELEGRAM-CHANNEL-ID.+36301234567).YOUR-TEXTBELT-API-KEY (if using SMS). Alternatively, delete the Textbelt lines if only using Telegram.A Markdown-formatted string listing node details.
Schedule Trigger / Manual Trigger n8n trigger: Starts the n8n workflow execution, allowing for either scheduled recurring backups or manual runs.
Server Parameters (Set n8n node): Stores all configuration variables (usernames, passwords, IPs, paths) for the source and target servers. This makes configuration centralized and reusable throughout the n8n template.
Check Sshpass Local / Check Sshpass on Source (Execute Command n8n node): Executes which sshpass locally and remotely via SSH. These crucial steps determine if dependency installation is required before proceeding with the backup.
Install Sshpass Local / Install Sshpass on Source (Execute Command n8n node): Contains conditional logic using Bash if/elif statements to automatically install sshpass and rsync based on detected package managers (apt, yum, dnf, apk).
Execute Rsync Backup (Execute Command n8n node): The core mechanism. It uses a single command string to chain two sshpass authentications, executing the rsync command on the source server to transfer data directly to the target.
Success? (If n8n node): Checks the exitCode from the Rsync execution. If 0 (success), it follows the positive path; otherwise, it branches to failure reporting.
Backup Successful / Backup Failed (Set n8n node): Standardizes the output structure, collecting logs (stdout or stderr) and assigning a clear status label before sending the final alert.
Process Finish Report (Execute Command n8n node): Uses curl to send formatted alerts containing the full status report, ensuring administrators are immediately notified of the outcome of this complex n8n workflow.
Use this n8n workflow template to automate financial forecasting. Pull daily Stripe data, summarize it with a custom n8n node, and generate future revenue predictions using an OpenAI GPT-4 agent, logging results to Google Sheets and Supabase.

Automate personalized resume tailoring using this advanced n8n workflow. Input a LinkedIn URL via Telegram to scrape job details and use OpenRouter AI to generate a keyword-optimized, schema-valid PDF resume.

Implement an automated candidate screening n8n workflow using GPT-4o, Gmail, Google Drive, and Sheets. This robust n8n template features multi-stage error handling for reliable HR automation.

Use this powerful n8n workflow to automatically monitor SEC Form D filings. This n8n templates solution scrapes the EDGAR feed, filters new entries, and logs data to Google Sheets using a scheduled n8n trigger.

Automate your entire SEO blogging process using this powerful n8n workflow. Integrate Google Sheets, OpenAI, and WordPress for hands-off content planning, drafting, and publishing.

Use this comprehensive n8n workflow to automate your entire content creation pipeline. It identifies trending keywords, scrapes competitor content, and generates fully SEO-optimized articles using Anthropic AI, storing the final output directly in Supabase. Find more advanced n8n templates here.









































