Sync files between on-prem folders with error retry

Document/FileRecipe Tools

What it does

When a new file arrives in the source directory, this automation uploads it to the target directory and runs a script. If a timeout error occurs, it retries up to three times before escalating to the team.

Who it's for

Operations teams who need reliable file transfers between on-prem systems without manual intervention.

How teams use this

Automate daily batch file transfers

Move files from one on-prem folder to another each day with automatic retry on network timeouts. The team no longer monitors transfers manually or reruns failed jobs.

Route files to different targets by type

Redirect files to separate target directories based on file name or type instead of a single target. The retry logic and error handling remain the same.

Add notification on persistent errors

Include a Slack or email alert when an error persists after all retries so the team knows to investigate. Filter the notification to only trigger when the error does not contain timeout.

How it works

  1. Monitor source directory for new files. Watch the source directory in Onprem Files for any new file that arrives and starts this automation.
  2. Upload file to target directory. Write the new file into the target directory in Onprem Files Secondary so it is available downstream for processing.
  3. Execute the Open Notepad script. Run the script in Onprem Command Line Scripts to process the file after it is uploaded to the target location.
  4. Retry on timeout or wait and rerun. If the error message contains timeout, retry the upload and script up to three times. Otherwise, wait and rerun the specified batch jobs in Onprem Files Secondary.