Staging setup with couchdb

廉价感情. 提交于 2019-12-02 08:33:02
Jan Lehnardt

Your approach is what I would recommend. Copying DB and index files to a new name works as expected.

Check /_config/couchdb for your values of database_dir and view_index_dir and then

cd $database_dir
cp live_replica.couch local_copy_to_mess_with.couch

cd $view_index_dir # most likely the same dir
cp -r .live_replica_design .local_copy_to_mess_with_design

Make sure to run these commands as the owner of all the other files in these directories, e.g. couchbase, or else couchdb won't have the permissions to use the files you create. You can check correct owners and groups with ls -alR.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!