Local Exports
Commands use Linux syntax. See Examples & Recipes for the Windows equivalents and the arguments every sync needs.
PostgreSQL Source
PostgreSQL to Local (SQL Server LakeXpress DB)
./LakeXpress config create \
-a credentials.json \
--lxdb_auth_id lxdb_mssql \
--source_db_auth_id source_postgres \
--source_db_name tpch \
--source_schema_name tpch_1 \
--fastbcp_p 2 \
--n_jobs 4 \
--output_dir /tmp/tpch/ \
--generate_metadata
./LakeXpress sync \
-a credentials.json \
--lxdb_auth_id lxdb_mssql \
--sync_id <SYNC_ID>
SQL Server Source
SQL Server to Local (PostgreSQL LakeXpress DB)
./LakeXpress config create \
-a credentials.json \
--lxdb_auth_id lxdb_postgres \
--source_db_auth_id source_mssql \
--source_db_name adventureworksdw \
--source_schema_name dbo \
--fastbcp_p 2 \
--n_jobs 4 \
--output_dir /tmp/tpch/ \
--generate_metadata
./LakeXpress sync \
-a credentials.json \
--lxdb_auth_id lxdb_postgres \
--sync_id <SYNC_ID>
SQL Server to Local (SQLite LakeXpress DB)
./LakeXpress config create \
-a credentials.json \
--lxdb_auth_id lxdb_sqlite \
--source_db_auth_id source_mssql \
--source_db_name adventureworksdw \
--source_schema_name dbo \
--fastbcp_p 2 \
--n_jobs 4 \
--output_dir /tmp/tpch/ \
--generate_metadata
./LakeXpress sync \
-a credentials.json \
--lxdb_auth_id lxdb_sqlite \
--sync_id <SYNC_ID>
SQL Server to Local (DuckDB LakeXpress DB)
./LakeXpress lxdb init -a credentials.json --lxdb_auth_id lxdb_duckdb
./LakeXpress config create \
-a credentials.json \
--lxdb_auth_id lxdb_duckdb \
--source_db_auth_id source_mssql \
--source_db_name adventureworksdw \
--source_schema_name dbo \
--fastbcp_p 2 \
--n_jobs 4 \
--output_dir /tmp/tpch/ \
--generate_metadata
./LakeXpress sync \
-a credentials.json \
--lxdb_auth_id lxdb_duckdb \
--sync_id <SYNC_ID>
SQL Server to Local (MySQL LakeXpress DB)
./LakeXpress config create \
-a credentials.json \
--lxdb_auth_id lxdb_mysql \
--source_db_auth_id source_mssql \
--source_db_name adventureworksdw \
--source_schema_name dbo \
--fastbcp_p 2 \
--n_jobs 4 \
--output_dir /tmp/tpch/ \
--generate_metadata
./LakeXpress sync \
-a credentials.json \
--lxdb_auth_id lxdb_mysql \
--sync_id <SYNC_ID>
MySQL Source
MySQL to Local (SQL Server LakeXpress DB)
./LakeXpress config create \
-a credentials.json \
--lxdb_auth_id lxdb_mssql \
--source_db_auth_id source_mysql \
--source_db_name tpch \
--source_schema_name tpch \
--fastbcp_p 2 \
--n_jobs 4 \
--output_dir /tmp/tpch/ \
--generate_metadata
./LakeXpress sync \
-a credentials.json \
--lxdb_auth_id lxdb_mssql \
--sync_id <SYNC_ID>
MariaDB Source
MariaDB to Local (SQL Server LakeXpress DB)
./LakeXpress config create \
-a credentials.json \
--lxdb_auth_id lxdb_mssql \
--source_db_auth_id source_mariadb \
--source_db_name tpch_mariadb \
--source_schema_name tpch_mariadb \
--fastbcp_p 2 \
--n_jobs 4 \
--output_dir /tmp/tpch/ \
--generate_metadata
./LakeXpress sync \
-a credentials.json \
--lxdb_auth_id lxdb_mssql \
--sync_id <SYNC_ID>
Teradata Source
Teradata to Local with Timepartition
./LakeXpress config create \
-a credentials.json \
--lxdb_auth_id lxdb_postgres \
--source_db_auth_id source_teradata \
--source_db_name DW \
--source_schema_name claims \
--fastbcp_table_config "CARRIER_CLAIMS:Timepartition:(CLM_FROM_DT,year,month):4" \
--fastbcp_table_config "PRESCRIPTION_DRUG_EVENTS:Timepartition:(SRVC_DT,year,month):4" \
--n_jobs 4 \
--output_dir /tmp/claims/ \
--generate_metadata
./LakeXpress sync \
-a credentials.json \
--lxdb_auth_id lxdb_postgres \
--sync_id <SYNC_ID>