04-27-2011, 01:59 AM | #1 |
eDGe User
Posts: 51
Karma: 88
Join Date: Mar 2011
Location: FL, USA
Device: Entourage eDGe
|
eDGe Library files and backup structure
The entourage forum site appears to be having issues. It's currently insanely slow and sometimes never responds. So, I'm creating this thread here.
There was recently a thread on the entourage site about a request to tech support to extract the backed up library contents to a different edge. Per entourage tech support it could not be done. Excluding DRM'd files the regular content created by the user -- annotations, journals, etc. -- are retrieveable. This thread is a work in progress to identify the contents of the backup and explain how the Library databases work. |
04-27-2011, 02:01 AM | #2 |
eDGe User
Posts: 51
Karma: 88
Join Date: Mar 2011
Location: FL, USA
Device: Entourage eDGe
|
eDGe Library files and backup structure
This is an attempt to document the structure of the eDGe library and the files that are backed up by the Local Backup application. Since this is undocumented by entourage, most of what is written here is based on supposition from looking at the file contents and analyzing data made visible with tools. In some places the purpose is just guess work, because the actual content can't be precisely identified.
Local backup of the library creates a file ending in .esi which is actually just a plain zip file. Rename the file extension to .zip and the zip/unzip utilities on Linux and Windows should be able to examine and manipulate the file. There is no password and no apparent encryption of the file itself. My edge has the library moved to the external SD card. The .esi/.zip file produced contains two *absolute* paths, /fridge/ and /sdcard/. (This absolute path part may be an issue later when restoring a backup that has had the contents manipulated with zip/unzip on a PC.) Here is a list of all the directories containing one or more files in the .esi/.zip file: Code:
/fridge/.edge/.esi-data/.databases/ /fridge/.edge/.esi-data/.edb/ /fridge/.edge/.esi-system/ /fridge/.edge/.esi-system/.fontconfig/ /sdcard/.edge/.esi-content/ /sdcard/.edge/.esi-content/.esa/ All the real content -- PDFs, annotations, Journals -- are stored under the /sdcard/ path. Both /fridge/ and /sdcard/ contain only the directory named /.edge/ Several directories contain a file called ".nomedia": Code:
/sdcard/.edge/.esi-content/.nomedia /fridge/.edge/.esi-system/.nomedia /fridge/.edge/.esi-data/.databases/.nomedia /fridge/.edge/.esi-data/.edb/.nomedia |
Advert | |
|
04-27-2011, 02:03 AM | #3 |
eDGe User
Posts: 51
Karma: 88
Join Date: Mar 2011
Location: FL, USA
Device: Entourage eDGe
|
/fridge/.edge/.esi-system
/fridge/.edge/.esi-system>
.esi-system/ appears to be the base for system configuration. Code:
/fridge/.edge/.esi-system> -rw-r--r-- 1 kenjen users 44 2011-04-26 20:58 calib_values drwxr-xr-x 2 kenjen users 4096 2011-04-26 23:49 .fontconfig/ -rw-r--r-- 1 kenjen users 18 2011-04-26 20:58 .nomedia Code:
90 19 3876 -404792 -3858 8 78557968 65536^@6^@ Code:
/fridge/.edge/.esi-system/.fontconfig> -rw-r--r-- 1 kenjen users 12456 2011-04-26 20:58 3336a65c52528c9c368e942d3dd307f8-arm.cache-2 -rw-r--r-- 1 kenjen users 72 2011-04-26 20:58 f430392a5d118517a13e2b04e09d101a-arm.cache-2 Code:
^Dü^Bü^B^@^@^@¨0^@^@ ^@^@^@0^@^@^@^@^@^@^@0^@^@^@^F±ûL/system/fonts^@^@^@^H^@^@^@^H^@^@^@^Q^@^@^@^@^@^@^@1^@^@^@Q^F^@^@É ^@^@©^^^@^@)"^@^@É%^@^@i)^@^@^A-^@^@^T^@^@^@^T^@^@^@^P^@^@^@ÿÿÿÿ^A^@^@^@¡^@^@^@^B^@^@^@É^@^@^@^C^@^@^@é^@^@^@^D^@^@^@ ^A^@^@^E^@^@^@!^A^@^@^F^@^@^@I^A^@^@^G^@^@^@a^A^@^@^H^@^@^@y^A^@^@ ^@^@^@<91>^A^@^@^N^@^@^@©^A^@^@^U^@^@^@É^A^@^@^V^@^@^@ ^B^@^@^X^@^@^@!^B^@^@^Y^@^@^@9^B^@^@!^@^@^@Q^B^@^@"^@^@^@¹^D^@^@#^@^@^@ñ^D^@^@$^@^@^@ ^E^@^@%^@^@^@1^E^@^@(^@^@^@Y^E^@^@^@^@^@^@^@^@^@^@^C^@^@^@^@^@^@^@^Y^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@Droid Sans^@^@^@^@^@^@^@^@^@^@^@^@^@^@^C^@^@^@^@^@^@^@^Y^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@en^@^@^@^@^@^@^@^@^@^@^@^@^@^@^C^@^@^@^@^@^@^@^Y^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@Bold^@^@^@^@^@^@^@^@^@^@^@^@^C^@^@^@^@^@^@^@Éÿÿÿ^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^C^@^@^@^@^@^@^@^Y^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@Droid Sans Bold^@^@^@^@^@^@^@^@^@^C^@^@^@^@^@^@^@yÿÿÿ^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^A^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^A^@^@^@^@^@^@^@È^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^A^@^@^@^@^@^@^@d^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^C^@^@^@^@^@^@^@^Y^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@unknown^@^@^@^@^@^@^@^@^@^C^@^@^@^@^@^@^@^Y^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@/system/fonts/DroidSans-Bold.ttf^@^@^@^@... |
04-27-2011, 02:05 AM | #4 |
eDGe User
Posts: 51
Karma: 88
Join Date: Mar 2011
Location: FL, USA
Device: Entourage eDGe
|
/fridge/.edge/.esi-data
/fridge/.edge/.esi-data>
.esi-data contains two directories, both contain a series of sqlite databases: Code:
/fridge/.edge/.esi-data> drwxr-xr-x 2 kenjen users 4096 2011-04-26 23:49 .databases/ drwxr-xr-x 2 kenjen users 4096 2011-04-26 23:49 .edb/ The .edb/ directory contains individual database files relating to the documents added to the library. .databases/ Code:
/fridge/.edge/.esi-data/.databases> -rw-r--r-- 1 kenjen users 153600 2011-04-26 21:00 library.db -rw-r--r-- 1 kenjen users 18 2011-04-26 20:58 .nomedia -rw-r--r-- 1 kenjen users 334 2011-04-26 20:58 recent-files -rw-r--r-- 1 kenjen users 1 2011-04-26 20:58 state.check -rw-r--r-- 1 kenjen users 139264 2011-04-26 20:58 state.db Code:
/fridge/.edge/.esi-data/.databases> file library.db state.db library.db: SQLite 3.x database, user version 10 state.db: SQLite 3.x database, user version 2 Code:
/fridge/.edge/.esi-data/.databases> cat state.check 0 Code:
/fridge/.edge/.esi-data/.databases> cat recent-files /sdcard/.edge/.esi-content/jrnl_4db6f4d2.esj jrnl_test2 112 /sdcard/.edge/.esi-content/jrnl_4db6f4f5.esj jrnl_test 113 /sdcard/.edge/.esi-content/jrnl_4da30bc0.esj 2011-04-11_StaffMeeting -1 /sdcard/.edge/.esi-content/jrnl_4d99d342.esj 2011-04-04_StaffMeeting -1 /sdcard/.edge/.esi-content/jrnl_4d909853.esj 2011-03-28StaffMeeting -1 |
04-27-2011, 02:14 AM | #5 |
eDGe User
Posts: 51
Karma: 88
Join Date: Mar 2011
Location: FL, USA
Device: Entourage eDGe
|
/fridge/.edge/.esi-data/.databases>
If you have sqlite3 available check out the Library database contents: Code:
/fridge/.edge/.esi-data/.databases> sqlite3 library.db SQLite version 3.6.23 Enter ".help" for instructions Enter SQL statements terminated with a ";" sqlite> .database seq name file --- --------------- ---------------------------------------------------------- 0 main /home/kenjen/Desktop/edge_backup/fridge/.edge/.esi-data/.d Code:
sqlite> .tables android_metadata esibookmarks esihighlights esinotes esiannotations esicontent esiimages esirecent esiattachments esicontenttag esimeta esitags Code:
sqlite> .schema android_metadata CREATE TABLE android_metadata (locale TEXT); sqlite> select count(*) from android_metadata ; 1 sqlite> select * from android_metadata ; en_US Code:
sqlite> .schema esibookmarks CREATE TABLE "esibookmarks" ( "_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" INTEGER, "contentId" INTEGER, "sectionId" INTEGER, "location" TEXT, "page" INTEGER, "title" TEXT, "previewText" TEXT, "guid" TEXT, "version" TEXT, "created" INTEGER, "modified" INTEGER, "backup" INTEGER, "dirty" INTEGER ); sqlite> select count(*) from esibookmarks ; 0 sqlite> select * from esibookmarks ; Let's see what has records and what doesn't. It seems I'm not big on making bookmarks or attachments: Code:
sqlite> select count(*) from esibookmarks ; 0 sqlite> select count(*) from esihighlights ; 49 sqlite> select count(*) from esinotes ; 3 sqlite> select count(*) from esiannotations ; 114 sqlite> select count(*) from esicontent ; 104 sqlite> select count(*) from esiimages ; 13 sqlite> select count(*) from esirecent ; 10 sqlite> select count(*) from esiattachments ; 0 sqlite> select count(*) from esicontenttag ; 82 sqlite> select count(*) from esimeta ; 1 sqlite> select count(*) from esitags ; 25 Code:
sqlite> .schema esimeta CREATE TABLE "esimeta" ( "_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "libraryName" TEXT, "device" TEXT); sqlite> select * from esimeta ; 1|My Library|F303082002AF esiimages is an interesting table. It stores an image directly in the record in "blob" format. It would be interesting to know how these records are created and what needs to be stored here: Code:
sqlite> .schema esiimages CREATE TABLE "esiimages" ( "_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" BLOB); sqlite> select * from esiimages ; 1|�PNG ^Z 2| 3| 4| 5|�PNG ^Z . . . etc, more of the same TO BE CONTINUED |
Advert | |
|
04-29-2011, 06:13 PM | #6 |
Armed with a smile :)
Posts: 1,421
Karma: 2463560
Join Date: Sep 2009
Location: California, USA
Device: enTourage eDGe & Pocket eDGe, Samsung Galaxy Note II
|
Thank you, ken_jennings!!
I hope I never need to fully understand what you've posted, but I am very grateful that you have gone to the trouble. I always figure knowing where to find the answer is as good (or better! ) than actually knowing the answer. So, thanks to you, I know where to look if I need it! |
04-30-2011, 10:58 AM | #7 |
Gadget Freak
Posts: 1,169
Karma: 1043832
Join Date: Nov 2007
Location: US
Device: EE, Note 8
|
ken_jennings!
@ken_jennings
Most excellent! |
05-08-2011, 03:32 AM | #8 |
Lurker in the Dark
Posts: 125
Karma: 11760
Join Date: Apr 2011
Location: Bristol, UK
Device: Asus Transformer Prime, Sony PRS-T1, HTC Sensation
|
I've done some work on this:
http://andy.aspellclark.org.uk/eDGeLibraryNotes.doc My edge has been faulty since Feb, but I may be getting a replacement next week. I don't know if I'll use it though (I now have an Advent Vega and a Blackberry Playbook). |
05-08-2011, 04:15 AM | #9 |
Armed with a smile :)
Posts: 1,421
Karma: 2463560
Join Date: Sep 2009
Location: California, USA
Device: enTourage eDGe & Pocket eDGe, Samsung Galaxy Note II
|
Welcome, mrspaceman!
I saw you were back in the entourageedge.com forum. Sorry about your eDGe. Have you done any more work/thinking about Bibliotecha (did I spell that right?)? |
07-08-2011, 10:16 AM | #10 |
PE User
Posts: 11
Karma: 10
Join Date: Jun 2011
Device: Pocket Edge
|
I tried modifying the library.db file with the other device's S/N but did not have any luck getting it to restore from backup. Any other ideas?
|
Tags |
android, backup, entourage edge, library files |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[old thread] filename and library structure /author and titel structure | tscamera | Library Management | 4 | 05-31-2011 05:44 PM |
Changing the Library Structure? | Logan06 | Library Management | 13 | 04-26-2011 09:22 PM |
Want to change folder structure or file names in the Calibre library? | Manichean | Library Management | 0 | 01-30-2011 10:51 AM |
BACKUP FILES | trident | Sony Reader | 4 | 09-28-2010 01:40 AM |
Backup Sony ebook Library? | erasure25 | Reading and Management | 1 | 10-20-2009 06:09 PM |