HappenApps / Quiver

Quiver documentation and issue tracker
2.26k stars 109 forks source link

Is the a way to restore notes form cache.db or index-v2.dat files? #1484

Open sapkus opened 2 years ago

sapkus commented 2 years ago

I was attempting to move my library to another machine, and all the notes are lost. Can't find library on my local machine, in the cloud just default initial notes.

Reading issues, found some files, which i manage to find on my machine: ~/Library/Containers/com.happenapps.Quiver/Data/Library/Application\ Support/Quiver/cache.db ~/Library/Containers/com.happenapps.Quiver/Data/Library/Application\ Support/Quiver/index-v2.dat

Opening it in text editor, looks like these are my missing notes.

Questions: Is there a way to restore these files and get notes back?

macdevign commented 2 years ago

First of all, it is useful to understand that quiver file is really just directory of notebook and note files for example: in myqv.qvlibrary , it is just a directory, consisting of many notebook directories, which in turn containing note files (in json text file) as documented in https://github.com/HappenApps/Quiver/wiki/Quiver-Data-Format

therefore it is important to recover the original qvlibrary
The cache.db does not hold any content just metadata (information about the qvfile as I show below

image

and index-v2.dat is a binary not text file , hence it is impossible to recover them using the cache file and index file, you need the library file that contains the actual notes.