Description
The path flag of the save command is defined as:
--path string Path to save data from. Default will save all buckets, scopes and collections. '/bucket' will save all scopes and collection in Couchbase bucket 'bucket'. '/bucket/scope' will save all collections in Couchbase bucket 'bucket' and Couchbase scope 'scope'. (default "/") |
The default as mentioned is "/".
This default value is helpful when --path argument is not provided in the command.
However, when the same value is given explicitly in the command, the save command gives out error as:
Error: invalid argument "/" for "--path" flag: parameter error: path elements must be non empty |
Save Command:
./cao save --cluster test-couchbase-386ta --path / --namespace test-2km8m --filename save.yaml
|
This is in a way expected I guess? My only concern here was whatever the default is mentioned in the description should work as part of the command as well.