Febooti, Ltd.

Synchronize local folder with SFTP server

Suppose that there is an e-commerce website that generates PDF invoices for the customers. These files must be transferred to accounting department hourly. When synchronization is finished, an email report must be sent containing information about work done.

Overview

The Synchronize remote directories Action automatically scans for new, modified and deleted files, and detects which files must be transferred, thus reducing the time and data amount needed for automatic sync. The job is launched by built-in Task scheduler Trigger, that must be added to the Task.

Task scheduler · Recur every 1 hour

How to setup the automated file transfer? Add Connect to SFTP Action, and enter your server DNS name or IP address, along with a username and password. Then add Synchronize directories Action, and set the local and remote server directories. The Transfer mode must be set to Download, as we want our invoice files to be transferred from the remote server to the local machine.

Connect to SFTP and Synchronize directories · Download

The last step is to add Send email Action. Using Variable Wizard feature, we add current date and time to the email subject, and two dynamic variables containing the count and the list of files transferred. Each time the email is sent, the message body contains data from the last download session.

Send email with a list of downloaded files

Summary

The task is ready and running. Task scheduler Trigger starts the task every hour. Synchronize directories Action automatically looks for new files on the remote server (similarly like WinSCP or robocopy command, but for SFTP), and when found, transfers them securely to the local computer or server. Send email Action sends messages to accounting department with information about invoices from the last hour.

Further fine-tune…

In the example above, an email is always sent, even when there are no new files to synchronize. By adding If Action, the sending of email can be suppressed if no files were transferred.

In this example the invoices can be accessed via SFTP server. However, Automation Workshop can access FTP & FTPS, WebDAV, Amazon S3 storage servers, or UNC network shares automatically.

Task scheduler Trigger can be configured to not send emails during night-time or on weekends, to prevent clutter in the inbox.

Assistance is here…

If you have any questions, please do not hesitate to contact our support team.

1,282,548
We're growing fast. Thank you!

Video · Monitor an FTP server & send invoice via email

Automate awesome!
Recent news
  • January 7, 2020
    Automation Workshop v4.0.0 introduces SFTP, FTP, Amazon S3 and WebDAV watchers. 15 new Cloud & FTP Actions. Entirely new and redesigned user experience across entire product.
  • March 14, 2019
    Automation Workshop v3.2.0 ensure smooth For each Action execution. Also, improves Task opening speed.
  • January 3, 2019
    Automation Workshop v3.1.0 with Windows Server 2019 support and multiple UX and UI improvements.
With Automation Workshop it is much easier to organize collaboration in our company.—Olivia A.
Last updated: April 2, 2020
Mar 30, 2020 · 15:32
0.006 · 0.000
0.3 · 3.9