Couchbase Technologies

Backup / Restore Couchbase document

Backup binary/normal(json) document : using cbbackup

Syntax  : 
=========
/opt/couchbase/bin/cbbackup http://<IP_ADDRESS>:8091 <BACKUP_LOCATION> -u Administrator -p 'Pa$$word' -b  <BUCKET_NAME> -k '<DOCUMENT_NAME>' 

Example : 
=========
/opt/couchbase/bin/cbbackup http://111.111.111.111:8091 /tmp/kishore -u Administrator -p 'Pa$$word' -b  beer-sample -k '70006007'

Restore binary/normal(json) document :cbrestore

Syntax  : 
=========
/opt/couchbase/bin/cbrestore <BACKUP_DUMP_LOCATION> http://<IP_ADDRESS>:8091/ -u Administrator -p 'Pa$$word' --bucket-source=<SOURCE_BUCKET_NAME> --bucket-destination=<TARGET_BUCKET_NAME>

Example : 
=========
/opt/couchbase/bin/cbrestore /couchbase/backup/kishore/ http://111.111.111.112:8091/ -u Administrator -p 'Pa$$word' --bucket-source=beer-sample --bucket-destination=travel-sample

For more information, please check the Couchbase documentation here : cbbackup , cbresore

Comments Rating 0 (0 reviews)

About the author

BestTechReads

Add Comment

Click here to post a comment

Sending

Categories

Categories