Restore a bucket without data and must have scopes and collections,indexes

Hi team ,

I am doing a bucket restore and I want to have only bucket schema like indexes , scopes and collections without data … Is there a way we can achieve this.

after I restore using this command I am not getting scopes and collections.

/opt/couchbase/bin/cbbackupmgr config --archive /home/backup --repo repo_allbuckets --disable-data

/opt/couchbase/bin/cbbackupmgr backup -a /home/backup -r repo_allbuckets -c http://nodename:8091 -u Administrator -p password

restore:

/opt/couchbase/bin/cbbackupmgr restore --archive /home/backup --repo repo_allbuckets -c http://nodename:8091 -u Administrator -p password --auto-create-buckets --disable-data

Thanks

Starting from Server 7.6, when you use the --disable-data option (like you did) with cbbackupmgr restore command, the scopes and collections information will be restored (but not data).
https://docs.couchbase.com/server/current/backup-restore/enterprise-backup-restore.html#whats-backed-up

You can download just the Server (dev) tools package which contains cbimport, cbexport, cbq, and cbbackupmgr – the latest 7.6.x cbbackupmgr is compatible with older 7.x versions.

https://docs.couchbase.com/server/current/cli/cli-intro.html#server-tools-packages

1 Like

Thank you @hyunjuV for your information, I have tried it is working and I was using earlier 7.2 backup manager which was not working , Many Thanks

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.