Re: Lost grdb
dsblank <dblank <at> cs.brynmawr.edu>
2007-11-28 03:55:20 GMT
Matt,
I wrote a quick-n-dirty html scraper that is about 75% of the way there... I
see some obvious errors (looks like a person becomes their own child) and I
didn't handle events (the CSV importer doesn't do events, yet). There are
probably other major things... ran out of time.
Here it is:
http://bubo.brynmawr.edu/~dblank/getnarrative.py
and you run it like:
python getnarrative.py http://somewebsite.com/myfamily/ > import.csv
Then, in GRAMPS you should be able to import the file "import.csv" into a
blank database.
If you (or any one else) fix up the script, please share it back with us.
Good luck,
-Doug
dsblank wrote:
>
> Matt Anderson wrote:
>> Unfortunetally, I destroyed the partition, not just rm'ed one file.
>> Thankfully my webserver is far away and I'm smart enough to not
>> reinstall that on a whim.
>>
>> I know all the information isn't in the exported website, but the
>> relationships are, the locations are, and some of the birthdays are.
>> Also the pictures are associated with the people already, that's all the
>> stuff I'm hoping to save. I don't suppose this is something that could
>> be done up in a simple script and a Berkeley db module?
>>
>> -matt
>
> Your data could be retrieved from the website, but you don't need to go
> down to the level of a particular database. Perhaps the easiest way
> might be to work the data into a CSV (comma separated values) file and
> do an import into a new GRAMPS database. See:
>
> http://emergent.brynmawr.edu/emergent/GrampsCSVImport
>
> Is your website public? I'd be glad to take a look at see what a Python
> script might look like.
>
> -Doug
>
>>
>> On Mon, Nov 26, 2007 at 04:57:28PM +0100, Benny Malengier wrote:
>>> If you used a recent version of gramps, the directory with your grdb
>>> contains a file with .backup extension.
>>> You can open that then.
>>> Otherwise, I think everything is gone.
>>> If you read:
>>> http://www.gramps-project.org/wiki/index.php?title=Recover_corrupted_grdb
>>> you see that loosing the environment is recoverable, but loosing the
>>> database is, for obvious reasons, not.
>>>
>>> Benny
>>>
>>> 2007/11/26, Matt Anderson <mra <at> malloc.org>:
>>>> I did at least two dumb things this past holiday weekend. One was
>>>> delete my grdb file, the other was to not have a back-up of it.
>>>> Thankfully I still have it all exported to a website, so no one can
>>>> tell
>>>> that its all gone, but I'd really rather not load that all in by hand
>>>> again if I don't have to. Is there anyway to re-create a gramps
>>>> database from a gramps exported website?
>>>>
>>>> -matt
>>>>
>>>>
>>>> -------------------------------------------------------------------------
>>>> This SF.net email is sponsored by: Microsoft
>>>> Defy all challenges. Microsoft(R) Visual Studio 2005.
>>>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>>>> _______________________________________________
>>>> Gramps-users mailing list
>>>> Gramps-users <at> lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/gramps-users
>>>>
>>
>> -------------------------------------------------------------------------
>> This SF.net email is sponsored by: Microsoft
>> Defy all challenges. Microsoft(R) Visual Studio 2005.
>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>> _______________________________________________
>> Gramps-users mailing list
>> Gramps-users <at> lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gramps-users
>>
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Gramps-users mailing list
> Gramps-users <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gramps-users
>
>
--
--
View this message in context: http://www.nabble.com/Lost-grdb-tf4875942.html#a13985469
Sent from the GRAMPS - User mailing list archive at Nabble.com.
-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell. From the desktop to the data center, Linux is going
mainstream. Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4