Sync FTP files to PostgreSQL
File TransferData ParserMarketingUtilitiesDatabase
What it does
When a new or updated file lands in an FTP directory, this automation downloads and parses it. The parsed data inserts into PostgreSQL so the database reflects incoming files.
Who it's for
Data and analytics teams who load FTP data into PostgreSQL without manual file transfers.
How teams use this
Load daily reports from FTP
Automatically pull JSON reports from an FTP folder each day and insert them into PostgreSQL. The team gets fresh data in the database without opening FTP clients or running manual scripts.
Sync vendor data feeds
Monitor an FTP directory where vendors drop JSON files, parse them, and load into PostgreSQL. This keeps vendor records current and reduces the need for batch imports.
Filter records before insert
Add a condition after parsing so only JSON records matching certain criteria are inserted into PostgreSQL. This ensures the table contains only relevant data and reduces noise.
How it works
- Monitor FTP directory for files. Watch an FTP/FTPS server directory for new or updated files that signal data is ready to load into the database.
- Download file from FTP server. Retrieve the full file contents from the FTP/FTPS server so the data can be processed and prepared for the database.
- Parse the JSON file. Extract and structure the JSON data from the downloaded file into fields and values ready for database insertion.
- Insert row in PostgreSQL. Write the parsed data as a new row in the public.eaiesb table so it joins the rest of your database records.