I thought the hidden files might explain the loss of the view. Interestingly we lost a view in the design document, but not the design document itself.
We used the following script to do a backup: sudo tar -cf $DIRECTORYPATH/$COUCHDBFOLDER/$FILENAME.tar /etc/couchdb/ sudo tar -rf $DIRECTORYPATH/$COUCHDBFOLDER/$FILENAME.tar /var/lib/couchdb/ I ran this again on our db, and then ran tar -tvf. The design and views are present in the tar. Not sure how we lost the view. On 3/20/15, 1:19 PM, "Alexander Shorin" <[email protected]> wrote: >On Fri, Mar 20, 2015 at 11:15 PM, Alexander Shorin <[email protected]> wrote: >> Yes, indexes are stored in separate directory. >> See view_index_dir[1] config option for concrete location. >> >> [1]: >> http://docs.couchdb.org/en/latest/config/couchdb.html#couchdb/view_index_dir > >Update: I'd live too long with having them separated to forget that by >default view indexes and databases are stored by the same path. The >only difference between them that indexes direcotries are hidden >(names starts with dot). > >-- >,,,^..^,,,
