CouchBase : Backing up with cbbackup

Back up all nodes and all buckets

Backup ข้อมูลทุก buckets และจากทุกๆ node :

cbbackup http://HOST:8091 /backups/ -u Administrator -p password 
    [####################] 100.0% (231726/231718 msgs) 
bucket: default, msgs transferred...
:
total | last | per sec
batch : 5298 | 5298 | 617.1
byte : 10247683 | 10247683 | 1193705.5
msg : 231726 | 231726 | 26992.7
done
[####################] 100.0% (11458/11458 msgs)
bucket: loggin, msgs transferred...
:
total | last | per sec
batch : 5943 | 5943 | 15731.0
byte : 11474121 | 11474121 | 30371673.5
msg : 84 | 84 | 643701.2
done

Back up all nodes, single bucket

Back up เฉพาะ bucket default จากทุกๆ node :

cbbackup http://localhost:8091 /backups -u Administrator -p password 
-b default
      [####################] 100.0% (231726/231718 msgs)
bucket: default, msgs transferred...
: total | last | per sec
batch : 5294 | 5294 | 617.0
byte : 10247683 | 10247683 | 1194346.7
msg : 231726 | 231726 | 27007.2
done

Back up single node, all buckets

Back up ทุกๆ bucket จาก single node :

cbbackup http://localhost:8091 /backups/ \
-u Administrator -p password \
--single-node

Back up single node, single bucket

cbbackup http://localhost:8091 /backups/ \
-u Administrator -p password \
--single-node \
-b default
Like what you read? Give Chiwa Kantawong (Pea) a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.