Delta update task for importing new/changed data from SLiMS.
Designed for incremental updates: place only the new CSV files (exported since the last import) into the standard csv_data folders, then run:
mix voile.updateThis runs three stages in order:
- Master data (authors, publishers) — safe to re-run, dedup by name
- Bibliography (collections) — safe to re-run, dedup by {unit_id, old_biblio_id}
- Items — continues item_code numbering from current DB state (no collisions)
Options
mix voile.update # Default: masters + biblio + items, skip images
mix voile.update --with-images # Download cover images during biblio import
mix voile.update --batch-size 2000 # Custom batch size (default 500)
mix voile.update --skip-masters # Skip author/publisher import
mix voile.update --skip-biblio # Skip bibliography importCSV file placement
Place CSV files in these directories (delete old files first):
scripts/csv_data/mst/ # mst_author*.csv, mst_publisher*.csv
scripts/csv_data/biblio/ # biblio_*.csv
scripts/csv_data/items/ # item_*.csvIn production (container):
/app/scripts/csv_data/