Sync CSV data to Google Drive on a schedule

Recipe ToolsDocument/FileData ParserDeveloper Tool

What it does

When a scheduled time arrives, this automation downloads CSV files from Google Drive and parses them with Ruby code to append unique values. The result uploads back to Google Drive so someone can set the interval and the automation runs without manual steps.

Who it's for

Data and analytics teams who need to consolidate CSV files on a regular schedule without manual uploads.

How teams use this

Consolidate daily sales reports

Download CSV exports from multiple sources each morning, deduplicate rows with Ruby logic, and upload a single master file. The team opens one file instead of many.

Merge customer data weekly

Run the automation every Monday to combine customer CSVs from different regions, remove duplicate entries by ID, and store the result in a shared folder. Only the schedule and file names change.

Filter records by a condition before upload

Extend the Ruby step to check a date field and only append rows from the last month. This keeps the master file current and prevents old records from being re-added to the consolidated dataset.

How it works

  1. Run on a specified interval. The automation starts at the time and frequency someone configures, such as daily or weekly.
  2. Find and download CSV files. Search Google Drive for CSV files and download their contents so the data is ready to process in the next step.
  3. Parse the CSV data. Parse each CSV file into structured data that can be compared and combined with other records using the Csv Parser.
  4. Append unique values with Ruby. Run Ruby code to identify and add only new rows to the dataset so duplicates are not created in the consolidated file.
  5. Upload the merged file. Upload the consolidated CSV back to Google Drive so the latest data is always available to the team.