Restoring design documents

Design documents are restored using the design_doc_only=1 option.

Using cbrestore for design documents

Design documents are restored to a server node with the option, design_doc_only=1. The documents are restored from a backup file (create with cbbackup).

cbrestore ~/backup http://10.3.1.10:8091 -x design_doc_only=1 -b a_bucket -B my_bucket

transfer design doc only. bucket msgs will be skipped.
done
This restores design documents from the backup file ~/backup/a_bucket to the destination bucket my_bucket in a cluster. If multiple source buckets were backed up, this command must be performed multiple times. For instance, if you backed up a cluster with two data buckets and have the following backup files:
~/backup/bucket_one/design.json
and
~/backup/bucket_two/design.jsonT
he following commands restore the design documents in both backup files to a bucket in a cluster named my_bucket.

cbrestore ~/backup http://10.3.1.10:8091 -x design_doc_only=1 -b bucket_one -B my_bucket

cbrestore ~/backup http://10.3.1.10:8091 -x design_doc_only=1 -b bucket_two -B my_bucket