Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Copying shards for backup in CouchDB 2

Tags:

couchdb

I want to backup my CouchDB to S3.

In CouchDB 1.x, I simply tar the .couch files and upload the resulting file.

In CouchDB 2.x, sharding occurs.

Can I still safely backup CouchDB 2 by zipping up the data directory the same way?

like image 932
aeharding Avatar asked Oct 29 '22 17:10

aeharding


1 Answers

After discussing with people on the CouchDB IRC channel, it seems like it is safe to backup and restore a single node CouchDB 2 server by backing up /shards as long as _dbs.couch is also backed up (which contains the shard information).

For the full conversation, see this post: http://pastebin.com/MkudTeCY

like image 193
aeharding Avatar answered Dec 30 '22 17:12

aeharding