Currently we have thousands of documents in our Couchbase bucket and we want to export them to csv (or json) format for further use.
As the documents are huge in numbers, we want to split the exported data into multiple files instead of single large file.
Currently we are using cbtransfer utility and Couchbase documentation mentions that we can use extra options for splitting the file ‘-x cbb_max_mb=size’ if it exceeds particular size.
Command we used -
cbtransfer http://127.0.0.1:8091 csv:./data.csv -b bkt-customer -u Administrator -p password -x cbb_max_mb=100
With this, file is getting created but it’s not getting split into smaller chunks of 100 MB as we expected.
Can anyone guide how can we achieve that?