Sync on-prem files to SFTP on schedule

Recipe ToolsMarketingDocument/FileFile TransferData ParserUtilitiesDatabase

What it does

When a scheduled time arrives, this automation lists files in an on-prem folder and uploads each one to SFTP. Someone receives an email with the transfer log so they know which files moved.

Who it's for

Operations teams who need to move files from on-prem storage to SFTP on a recurring schedule.

How teams use this

Move daily backups to SFTP

Run the sync every night so backup files from on-prem storage reach the SFTP server without manual work. The team wakes up to a log showing all transfers completed.

Archive files to a remote location

Point the automation at a different on-prem folder so archived records move to SFTP on the same schedule. Only the folder path changes and the rest of the flow stays the same.

Filter files by name before upload

Add a condition to the file list step so only files matching a pattern, such as those ending in .bak, are uploaded to SFTP. That narrows what gets transferred each run.

Log transfer results to a database

Include a step that writes each file transfer result to a database table so the team can query history and audit compliance. The email log still goes out and the database keeps a permanent record.

How it works

  1. Run on a custom schedule. The automation starts at the scheduled time you set, such as daily at 2 AM or weekly on Monday.
  2. List files in the on-prem folder. Retrieve all files from the on-prem folder path so the automation knows which ones to transfer to SFTP.
  3. Download and upload each file. For each file found, download it from on-prem storage and upload it to the SFTP server in sequence.
  4. Build a transfer log. Parse the file list and transfer results into a structured log that shows which files moved and any errors.
  5. Send the log via email. Email the transfer log to the team so they have a record of what was synced and can spot any failures.