Sync on-prem files to SFTP on schedule

Recipe ToolsMarketingWorkatoDocument/FileFile Transfer

What it does

When a scheduled time arrives, this automation lists files in an on-prem folder. It downloads each file, checks for content, and uploads it to an SFTP server, stopping if the folder is empty or content is missing.

Who it's for

Operations teams who need to move on-prem files to SFTP on a recurring schedule without manual intervention.

How teams use this

Move files on a daily schedule

Set the clock to run every morning so files from the on-prem folder move to SFTP without anyone having to start it. The team wakes up to synced files.

Sync to a different SFTP destination

Point the upload step to a second SFTP server instead of the first one. The schedule and file checks stay the same, only the destination changes.

Filter files by name or type

Add a condition to the list step so only files matching a pattern, such as CSV files or names starting with a prefix, are synced. Other files stay in the folder.

Archive synced files after upload

Include a step after the SFTP upload to move each file to an archive folder on-prem. This keeps the source folder clean for the next run.

How it works

  1. Run on a custom schedule. This automation starts at the time and frequency someone sets, such as daily at 2 AM or every Friday at noon.
  2. List all files in folder. Retrieve the names and details of every file in the designated on-prem folder so the automation knows what to move next.
  3. Download and verify file. For each file found, download it from Onprem Files and check that the content is present. Stop with an error if content is missing.
  4. Upload to SFTP server. Send each downloaded file to the SFTP server so it is available in the remote location for the team to access.
  5. Log sync completion. Place a confirmation or log file in the on-prem folder to mark that the sync completed and track when files were last moved.