Sync on-prem files on a schedule
Recipe ToolsMarketingDocument/File
What it does
Every 5 minutes, this automation lists all files in an on-prem folder and downloads each one to a test list. Errors are logged and the schedule continues without retry.
Who it's for
Operations teams who need to regularly sync on-prem files without manual intervention.
Apps used
How teams use this
Sync files on a regular cadence
Run the file sync every 5 minutes so new files from the on-prem folder are always available. The team gets consistent updates without manual checks.
Monitor sync errors in a channel
Send error notifications to a Slack channel when a file download fails so the team knows when to investigate. Only the notification step needs to be added.
Filter files by name pattern
Add a condition to only download files that match a specific naming pattern, such as those starting with a date. This reduces noise and focuses on relevant files.
How it works
- Run every 5 minutes. The automation starts on a schedule, running every 5 minutes to check for new files in the on-prem folder.
- List all files in the folder. Query the on-prem folder to retrieve all available files so each one can be processed in the next step.
- Download each file from the folder. For each file found, download it from the on-prem location and add it to the test list for further handling.
- Handle errors without retry. If an error occurs during the download process, Onprem Files logs it and stops retrying so the schedule can continue.