Cross-Environment Copy¶
Copy a database from one cluster to another (e.g. staging → local).
Consistency
crdb-dump takes a logical snapshot without AS OF SYSTEM TIME. Quiesce writes
on the source for a consistent copy. See
Migration & Limitations.
Export from the source¶
export CRDB_URL="cockroachdb://user@source-host:26257/mydb?sslmode=verify-full&..."
crdb-dump export --db=mydb --data --data-format=csv --chunk-size=1000 \
--out-dir=copy_out