Performing backups to couchbase 2.x server via command line. The couchbase server commands are stored in the opt directory. The shell for cbbackup command is located in the bin folder.
cd /opt/couchbase/bin/ ./cbbackup http://YOUR_IP:8091 /home/BACKUP_NAME -u YOUR_USERNAME -p YOUR_PASSWORD
To restore the data you specify the backup folder that you created above, then call the bucket name from that backup your want to recover.
./cbrestore /home/BACKUP_FOLDER http://YOUR_IP:8091 -u YOUR_USERNAME -p YOUR_PASSWORD -b BUCKET_NAME