Hi, I have a problem when I use the export and import commands, I would like to know if it is possible to export including the original keys and then import with these keys.
Thank you in advance for your reply
Hi, I have a problem when I use the export and import commands, I would like to know if it is possible to export including the original keys and then import with these keys.
Thank you in advance for your reply
Yes, it is possible to export the keys. There is an optional parameter --include-key
in cbexport.
And cbimport has the generate key option, --generate-key %key%
that can be supplied with a field in the export.
Hello thanks for your answare, this is the command I send:
cbexport json --cluster http://address:8091/ --username username --password pass12345 --bucket fidelity --output fidelity.json --format lines --include-key
this is the error:
Expected argument for option: --include-key
because --include-key expected argument
I use couchbase-server-7.0.1
If you check the documentation link provided, you need to specify the field name with the --include-key option. This field will be added to the document with the key value. Try:
cbexport json --cluster http://address:8091/ --username username --password pass12345 --bucket fidelity --output fidelity.json --format lines --include-key key_field
HTH.
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.