Error restoring cluster: scope ‘eventing’ with id 0x8 exists with a different name/id on the cluster, a manual remap using ‘–map-data’ is required
there is bucket1 we have with data, indexes we are restoring from other cluster.
bucket1 have scope1 and collection1 is there. while we are doing restore only for indexes we are facing this error.
i could not understnd what done wrong here.
cbbackupmgr restore -u Admin -p pass -a path -r repo -c [ip]:8091 --include-data bucket1 --disable-data.
inside that collection1 we are saving eventing services output. there is no indexes also there for that scope and collection.
have done below one as well but it is not helping
eg :
1. --map-data bucket1._default.collection1=bucket1._default.collection1
2. --map-data bucket1.scope1.collection1=bucket1.scope1.collection1
both the eg are not worked for me.
i just dropped that collection and triggered the same index restore --disable-data this time it has worked and also it has created dropped collection in previous step with data, this behaviour we could not able to understand totally.
Using the
--map-data
flag with the argumentbucket._default.collection1=bucket._default.collection1
would causecbbackupmgr
to treatcollection1
(with id 8) ascollection1
(with the id it exists with in the target).