Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [11:18] <aeharding> Does anyone have any insight on this stackoverflow question? https://stackoverflow.com/questions/40429306/copying-shards-for-backup-in-couchdb-2
- [11:18] <aeharding> I would really appreciate it :)
- [11:20] <ks> rnewson: so if database was deleted and I have a backup of db folder with views and data, all I need to do is to shutdown couchdb and cp a backup folder into /lib?
- [11:21] <aeharding> Basically. I have a DO instance with a periodic job to tar /opt/couchdb/data (docker-couchdb) and upload it to s3. I'd like to ensure that I'll be able to restore the data dir like in couchdb 1 w/o corruption, etc
- [11:22] <aeharding> It's easier for me than replication for such a small project
- [11:26] == patrek [~quassel@shbkpq4068w-lp130-02-69-156-164-44.dsl.bell.ca] has quit [Ping timeout: 252 seconds]
- [11:27] == patrek [~quassel@shbkpq4068w-lp130-02-69-156-164-222.dsl.bell.ca] has joined #couchdb
- [11:39] <+rnewson> aeharding: I posted a thing to SO a while back on how to rebalance a bigcouch cluster, that is also broadly the same for couchdb 2.0 and might help you.
- [11:42] == s1lv3r40 [~vlady@2a02:a03f:2622:3b00:a14a:1803:5a49:2b57] has joined #couchdb
- [11:44] <aeharding> rnewson: I believe you're talking about this? https://stackoverflow.com/questions/6676972/moving-a-shard-from-one-bigcouch-server-to-another-for-balancing
- [11:44] <aeharding> I'm still a little confused since I only have one 'node' in the couchdb 'cluster'
- [11:56] == timmak [54091c07@gateway/web/freenode/ip.84.9.28.7] has quit [Ping timeout: 260 seconds]
- [11:59] == enquora [~enquora@S0106306023d6dab3.cg.shawcable.net] has quit [Quit: Textual IRC Client: www.textualapp.com]
- [12:09] <+rnewson> aeharding: you can safely copy the .couch files out to make a backup
- [12:10] <aeharding> Cool :)
- [12:10] <+rnewson> be careful of using zip though, it might delete the source file
- [12:11] <aeharding> Do I need to save any configuration of the couchdb? I use the default sharding config (p & n values I believe?).
- [12:12] <aeharding> Sorry, still trying to wrap my head around clusters/shards w/ couchdb
- [12:13] <+rnewson> the shard map is stored in the 'dbs.couch' file.
- [12:13] <+rnewson> I assumed you were backing up the whole of the database directory tree.
- [12:14] <aeharding> gotcha. Yes, I'm backing up shards/ along with _dbs.couch, etc
- [12:15] <aeharding> Thanks for your help
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement