The files land at midnight; the data has to be there by morning

DBLoader » Use cases » Nightly load of files

Download DBLoader Free Trial »     Buy DBLoader Now »

The situation

A nightly job dumps exports into a folder - from an ERP, a shop, a meter or an upstream system - and by the time anyone looks, those files should already be rows in the database. Nobody wants to log in at midnight to click through an import wizard, and nobody wants to discover at 9 a.m. that a night was skipped.

What you do

  1. Set the load up once in the GUI - source format, the folder or file, target database, table and column mapping - and save it as a session.
  2. Run that session from the command line and check the output once by hand.
  3. Give it to the scheduler: Windows Task Scheduler, cron, or your own pipeline. It runs headless - no window, no clicking.
  4. Read the log when something looks wrong. Each run says what it read and what it wrote.

A DBLoader import run, showing progress and the log

Windows, macOS and Linux are all supported, so the job can live on whichever machine can reach both the folder and the database. Nothing is sent to a cloud service - the machine running the task does the work.

What it will not do

Related

The nightly task recipe: command line, saved setup: sessions. The load itself: a folder into one table, a huge CSV. Exporting on a schedule instead: database to Excel or CSV.