docker exec -it couchbase_couchbase_ bin bash -c cbbackup http 127 809

1
2
3
4
5
6
7
8
9
docker exec -it couchbase_couchbase_1 /bin/bash -c \
'cbbackup http://127.0.0.1:8091 \
/default-backup-$(date +%Y%m%d) \
-u Administrator -p KadaL12345 \
--single-node -b default && tar -zcvf \
/backup-$(date +%Y%m%d).tar.gz \
/default-backup-$(date +%Y%m%d)'
docker cp couchbase_couchbase_1:/backup-$(date +%Y%m%d).tar.gz .