Implement a robust n8n workflow for scheduled FTP/SFTP file migration, smart filtering, source cleanup, and success email notifications. Deploy this reliable n8n template for data automation.
Download this n8n workflow template and start using it instantly.
Manual FTP file migration is time-consuming, prone to human error, and lacks robust logging. This comprehensive n8n workflow eliminates those issues by providing a fully automated, scheduled solution. Using a specific n8n trigger, this workflow reliably connects to a source FTP, filters files based on criteria (currently TXT, CSV, JSON, XML), securely transfers them to a destination FTP, and then, crucially, deletes the source file only after successful upload verification. This ensures data integrity and prevents duplicate processing. This advanced n8n template includes logging via a Set n8n node and provides immediate success notifications via email, making it a professional-grade automation solution built entirely within n8n.
This automation is initiated by a scheduled n8n trigger and executes a complex sequence of file operations:
To utilize this n8n workflow template, follow these steps:
Daily Schedule (2 AM) [n8n Trigger]: Initiates the entire n8n workflow execution daily using the cron expression 0 2 . This is the fundamental n8n trigger for all operations.
List Files - Source FTP [n8n Node]: Connects to the source server to list available files in the specified source directory (/source/directory/).
Filter Files [n8n Node]: A Core Logic n8n node that applies a regex filter (\.(txt|csv|json|xml)$) to ensure only data and text files are selected for the migration process.
Download File [n8n Node]: Performs the file download from the source, saving the binary data to the property file_data for transfer.
Upload to Destination [n8n Node]: Connects to the target FTP server and uploads the binary content, placing it in the destination path (/destination/directory/{{ $json.name }}).
Upload Success? [n8n Node]: A Filter n8n node used for conditional routing. It checks the output of the upload operation to ensure the transfer completed successfully before proceeding to cleanup.
Delete Source File [n8n Node]: The critical cleanup step. This FTP n8n node deletes the file from the source server only if the transfer was validated as successful, preventing re-processing.
Log Success [n8n Node]: A Set n8n node that creates structured data containing metadata about the successful transfer (timestamp, filename, size) for internal logging or later database insertion.
Send Email Success Alert [n8n Node]: Final action using the Email Send n8n node to notify administrators of the successful migration, including the subject line with the completion timestamp.
Analyze weekly WhatsApp group transcripts using GPT-4 via this robust n8n workflow. Automatically identify frequent questions and generate an organized FAQ document in Google Docs. Get started with powerful n8n templates.

Use this powerful n8n workflow to automatically parse bank transaction emails (Gmail) and manual entries (Telegram) using Gemini AI, logging all expenses and budgets directly into Google Sheets. Simplify finance tracking with this advanced n8n template.

Use this advanced n8n workflow to automate expense approvals using GPT-4 for analysis, Airtable for data management, and Pinecone for auditable vector storage. Explore powerful n8n templates.

Automate Facebook comment replies using an advanced n8n workflow powered by GPT-4o and LangChain AI agents. Leverage this powerful n8n template for dynamic social media management and automated responses.

Use this comprehensive n8n workflow to automatically scrape Facebook Group posts, comments, and sub-comments via Apify and seamlessly synchronize the structured data into a Supabase database.








































