Skip to content
dbSlice®
Product Who it's for Performance Pricing Blog Guides Support Buy dbSlice

dbSlice / Automation

Database sync from the command line, on a schedule

Build a sync or an export once in the dbSlice app, save it as a job file, and run it every night from Windows Task Scheduler, a CI pipeline or any scheduler you already use. The command line runs the same engine as the app, so a job behaves the same way in both.

Try it free on the Microsoft Store ↗ See pricing

At a glance

  • What it does: runs saved sync, export and status jobs from a JSON job file, on Windows Task Scheduler, a CI pipeline or any scheduler.
  • Engines: the command line runs the same engine as the app, so a job behaves the same way in both; the examples use SQL Server into PostgreSQL.
  • Good to know: the Desktop license is for one named user on one machine; jobs that run unattended on a Windows Server use the Server edition.
  • Free or paid: try it in the free Microsoft Store version (no license key); writing to a target database needs a Desktop or Server license.

What a job can do

JobWhat it does
SyncCopies rows from a source to a target in one of six modes, including Postback: upsert, insert new, initial load, update only, full reload
ExportWrites a table or query to a file (CSV, JSON, Excel, SQL scripts and more)
StatusCompares source and target without writing: counts, missing keys, differences

Jobs can mask sensitive columns and filter rows with a WHERE clause, exactly as in the app.

dbSlice Job CLI Construction tab

Build it visually, run it anywhere

  1. In Tools → CLI jobs, create the job with the same screens you use for a manual sync: connect, pick tables and the key column, choose the mode.
  2. Run now to test it from the app.
  3. Copy CLI command and paste it into the scheduler:
    dbSlice "C:\jobs\orders-to-postgres.json" "C:\jobs\logs\orders.log"

Made for unattended runs

  • No passwords in the job file. Jobs refer to saved connections by environment and name; the credentials stay protected on the machine. The JSON can go into version control.
  • Exit codes a scheduler can act on: 0 success, 1 failure, 2 invalid job.
  • E-mail report when the job ends, through your SMTP server.
  • Webhooks on success and on failure: an HTTP POST with the job name, connections, row counts, duration and error. Point it at Slack, Teams, n8n or your own endpoint. A failed notification never fails the job.
  • OpenTelemetry (optional, off by default): rows, duration and errors of each run in your monitoring tool — an OpenTelemetry Collector, Datadog, Dynatrace, New Relic, Grafana Cloud or Elastic. No SQL and no data are sent; job and table names only if you allow it.
  • A log file per run, next to the history kept in the app.

Typical schedules

  • Nightly replica refresh: Upsert from SQL Server into a PostgreSQL reporting database, incremental by an updated_at column.
  • Morning reconciliation: a Status job compares source and target and e-mails the differences before anyone starts work.
  • Weekly masked staging refresh: sync jobs with masking for the tables that hold personal data.
  • Exports for BI or partners: a query exported to CSV or Excel at the same time every day.

Desktop or Server edition

The Desktop license is for one named user on one machine. For jobs that run unattended on a Windows Server, use the Server edition (one Windows Server installation).

Try it on your own data: the free Microsoft Store version needs no license key.

Try free on the Microsoft Store ↗Buy dbSlice

Related guides

  • Sync SQL Server to PostgreSQL
  • Sync Oracle to PostgreSQL
  • Export InterSystems Caché and IRIS data to PostgreSQL
dbSlice®

Professional data synchronization, migration and reconciliation — for Windows and Linux (Docker).

A Thinwork product

Product

Product Pricing Guides Linux (Docker) Release notes Free version (Microsoft Store) Support FAQ Renew maintenance CLI examples

Legal

Terms of Use Privacy Policy Refund Policy EULA

Company

THINWORK TECNOLOGIA DA INFORMACAO - LTDA
CNPJ 09.166.605/0001-21
Since 2007

Av. Paulista, 1471, Conj. 511, Anexo CP 1722
Bela Vista, São Paulo - SP, 01311-927, Brazil

Sales

+55 (11) 5197-7969 [email protected]

Support hours: Mon–Fri, 9:00–17:00 (UTC−3)

github.com/thinwork Follow @dbsliceapp
© 2026 dbSlice®. All rights reserved. Windows x64 · GUI + CLI · Linux (Docker) · Web

dbSlice® and the dbSlice pizza mascot logo are registered trademarks of Thinwork Tecnologia da Informação Ltda. with the Brazilian National Institute of Industrial Property (INPI).

All other product names, logos and brands are the property of their respective owners and appear here only to identify the systems dbSlice works with. dbSlice is an independent product, not affiliated with, sponsored or endorsed by them. Learn more